This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fabioz
Recipients amaury.forgeotdarc, fabioz
Date 2008-08-18.18:55:19
SpamBayes Score 5.7255756e-11
Marked as misclassified No
Message-id <1219085721.51.0.871838610856.issue3494@psf.upfronthosting.co.za>
In-reply-to
Content
I've pasted the output below... also, the trace function is called for
each function call after the settrace (not only in interpreter shutdown)
-- and the error happens in the listdir -- which is in the main thread,
so, it must happen before the interpreter shutdown.

Also, one thing: it works if you read an empty folder... And putting:
"print frame.f_code.co_filename, frame.f_lineno" in the 'func', it'll go
on and print
/usr/lib/python2.4/encodings/utf_8.py 15
/usr/lib/python2.4/encodings/utf_8.py 16
/usr/lib/python2.4/encodings/utf_8.py 16

For each file/dir available (so, it seems it's actually able to go on
and get all the contents, but before returning, that exception is thrown)

Output from running it:

-----------------------------------------


/usr/bin/python
Traceback (most recent call last):
  File "/home/fabioz/test workspace with spaces/test
project/src/mod1/mod2/listdir_problem.py", line 23, in ?
    print listdir(dir)
OSError: [Errno 11] Resource temporarily unavailable: '/home/fabioz/jython'
History
Date User Action Args
2008-08-18 18:55:21fabiozsetrecipients: + fabioz, amaury.forgeotdarc
2008-08-18 18:55:21fabiozsetmessageid: <1219085721.51.0.871838610856.issue3494@psf.upfronthosting.co.za>
2008-08-18 18:55:20fabiozlinkissue3494 messages
2008-08-18 18:55:19fabiozcreate