#592 Problem debbuging code with os.walk (on linux)

1.3.9
closed-duplicate
debugger (210)
5
2008-09-19
2007-10-18
Ivan Zderadicka
No

pydev 1.3.9
eclipse 3.3.1
python 2.4.3 on Ubuntu 6.06

when debugging following code:

import os, sys

if len(sys.argv)<2:
print >>sys.stderr, "need dir"
sys.exit(1)

dir = unicode(sys.argv[1])
for a,b,c in os.walk(dir,):
print a,b,c

os.walk fails - not dirs are listed (actually the os.listdir within os.walk throws following error - OSError: [Errno 11] Resource temporarily unavailable: '/home/ivan/music')

- when runs normally everything is ok, problem is only in the debbuger
- when dir is not unicode works fine
- also did worked in previous versions - 1.3.4 - I reverted back to that version and debugging of that code works fine there

Discussion

  • Fabio Zadrozny
    Fabio Zadrozny
    2008-01-04

    • summary: Problem debbuging code with os.walk --> Problem debbuging code with os.walk (on linux)
     
  • Fabio Zadrozny
    Fabio Zadrozny
    2008-09-19

    • status: open --> closed-duplicate