[Eric] debugger and zipped eggs
Darren Dale
darren.dale at cornell.edu
Sun Feb 3 15:37:35 GMT 2008
Hi Detlev,
I have setuptools 0.6c7 installed, it is a directory in site-packages, not a
zipped egg. pkg_resources is also installed in site packages. I have
eric4-4.1-snapshot-20080118 (r1832) installed.
I edited site-packages/pytz/__init__.py to comment out the block that imports
package resources.
Thanks,
Darren
On Sunday 03 February 2008 6:38:30 am Detlev Offenbach wrote:
> Hi Darren,
>
> which eric4 version are you using? If it is not the latest snapshot, please
> try this. I just remembered, that there was a problem with the debugger
> manipulating sys.path.
>
> Regards,
> Detlev
>
> On Samstag, 2. Februar 2008, Darren Dale wrote:
> > Do you have setuptools installed? If I comment out the following lines,
> > eric's debugger works fine (reasonable workaround for me):
> >
> > #try:
> > # from pkg_resources import resource_stream
> > #except ImportError:
> > # resource_stream = None
> >
> > On Saturday 02 February 2008 12:23:03 pm Detlev Offenbach wrote:
> > > Hi Darren,
> > >
> > > I just downloaded the pytz egg, installed it and tried this little
> > > script.
> > >
> > > import pytz
> > >
> > > print pytz.all_timezones
> > > print "Done"
> > >
> > > It works fine over here; I don't get any error (on openSUSE 10.3).
> > >
> > > Regards,
> > > Detlev
> > >
> > > On Samstag, 2. Februar 2008, Darren Dale wrote:
> > > > Hi Detlev,
> > > >
> > > > A one liner exposes the problem here (kubuntu gutsy):
> > > >
> > > > import pytz
> > > >
> > > > pdb completes without error, but eric's debugger yields the error I
> > > > reported below.
> > > >
> > > > Darren
> > > >
> > > > On Saturday 02 February 2008 11:18:43 am Detlev Offenbach wrote:
> > > > > Hi Darren,
> > > > >
> > > > > does the script run in the Python debugger (pdb)? Please provide a
> > > > > little script I can use to reproduce the problem.
> > > > >
> > > > > Regards,
> > > > > Detlev
> > > > >
> > > > > On Samstag, 2. Februar 2008, Darren Dale wrote:
> > > > > > This morning I was trying to use eric4 to debug a script on a
> > > > > > kubuntu box, and I got an error message during the import:
> > > > > >
> > > > > > The debugged program raised the exception OSError
> > > > > > "[Errno 2] No such file or directory: '/home/darren'"
> > > > > > File: /usr/lib/python2.5/site-packages/pkg_resources.py, Line:
> > > > > > 1659
> > > > > >
> > > > > > Eric runs the script fine without the debugger. It looks like the
> > > > > > debugger is unable to handle scripts that import a package that
> > > > > > was installed as a zipped egg:
> > > > > >
> > > > > > http://projects.scipy.org/pipermail/scipy-user/2007-December/0149
> > > > > >70 .h tm l
> > > > > >
> > > > > > The problem does not exist on my gentoo box at work. Is it
> > > > > > possible for eric's debugger to support zipped eggs?
> > > > > >
> > > > > > Thanks,
> > > > > > Darren
> > > > > > _______________________________________________
> > > > > > Eric mailing list
> > > > > > Eric at riverbankcomputing.com
> > > > > > http://www.riverbankcomputing.com/mailman/listinfo/eric
More information about the Eric
mailing list