[Eric] debugger and zipped eggs
Darren Dale
darren.dale at cornell.edu
Sat Feb 2 18:02:10 GMT 2008
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/014970.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