[Eric] Re: debugger and zipped eggs
Detlev Offenbach
detlev at die-offenbachs.de
Sun Apr 13 09:24:18 BST 2008
On Samstag, 12. April 2008, G Jones wrote:
> Hello,
> I can recreate the problem with a file that simply contains:
> import pkg_resources
>
> The problem seems to be occuring on line 1659 of pkg_resources.py
> which looks like:
> for entry in os.listdir(path_item):
> ...
> This raises an OSError exception "(2, 'No such file or directory',
> '/home/glenn/Sample Project')"
Could the space in the pathname cause a problem?
>
> I added a print path_item statement and a print os.listdir(path_item)
> statement, and the first one shows my project directory (which
> certainly exists) and the second gives the same error, that my project
> directory does not exist. What really confuses me is that when I set a
> break point at the line in question, I can type os.listdir(path_item)
> into the shell and it gives me the correct listing of the directory.
> Is there some way that the shell can be in a different context than
> the running program even though the variables seem to be the same??
During debugging, everything entered in the shell will be executed in the
context of the current scope.
>
> Thanks for any help solving this problem.
> Glenn
>
> On 4/12/08, Detlev Offenbach <detlev at die-offenbachs.de> wrote:
> > On Freitag, 11. April 2008, G Jones wrote:
> > > I would be happy to help you debug this, but I first need to be able
> > >
> > > to tell what module is actually importing this pkg_resources business.
> > > Is there a way to trace where a module got imported from? In general,
> > > if I am debugging code, is there a way to see a trace of how I got
> > > into a certain function?
> >
> > The Local Variables viewer has a combobox, that shows the callframe. By
> > selecting a frame and pressing the Source button, that file will be
> > opened and the cursor place at the appropriate line.
> >
> >
> > Detlev
> >
> > > Glenn
> > >
> > > On 4/11/08, Detlev Offenbach <detlev at die-offenbachs.de> wrote:
> > > > On Freitag, 11. April 2008, G Jones wrote:
> > > > > I am having the same issue mentioned in this thread:
> > > > > http://www.mail-archive.com/eric@riverbankcomputing.com/msg00765.
> > > > >html I am not sure which package is importing pkg_resources, and
> > > > > thus causing the problem. Is there anyway to see a trace of where
> > > > > I am in the program, that is, what line of my code imported the
> > > > > package that imported pkg_resources?
> > > > > I am running eric4.1.2 r2105
> > > > > Thank you,
> > > > > Glenn
> > > > >
> > > > > _______________________________________________
> > > > >
> > > > > Eric mailing list
> > > > > Eric at riverbankcomputing.com
> > > > > http://www.riverbankcomputing.com/mailman/listinfo/eric
> > > >
> > > > Unfortunately Daren and myself were unabled to trace the problem so
> > > > far. Any help is highly appreciated.
> > > >
> > > > Regards,
> > > > Detlev
> > > >
> > > > --
> > > > Detlev Offenbach
> > > > detlev at die-offenbachs.de
> >
> > --
> >
> > Detlev Offenbach
> > detlev at die-offenbachs.de
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the Eric
mailing list