List Info

Thread: Strange behaviour when debugging os.walk




Strange behaviour when debugging os.walk
country flaguser name
United States
2007-10-09 05:30:34
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4559732

By: ivan_zderadicka

Hi,

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.5 I think), I've
just recently upgraded
eclipse+pydev.


Any idea what might be wrong?

Thanks

Ivan




____________________________________________________________
__________
You are receiving this email because you elected to monitor
this forum.
To stop monitoring this forum, login to SourceForge.net and
visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=
293649

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Pydev-users mailing list
Pydev-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users


RE: Strange behaviour when debugging os.walk
country flaguser name
United States
2007-10-09 06:51:19
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4559830

By: ivan_zderadicka

Actually version where debugging this code works in 1.3.4
I.

____________________________________________________________
__________
You are receiving this email because you elected to monitor
this forum.
To stop monitoring this forum, login to SourceForge.net and
visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=
293649

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Pydev-users mailing list
Pydev-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users


RE: Strange behaviour when debugging os.walk
country flaguser name
United States
2007-10-18 06:36:59
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4575735

By: ivan_zderadicka

OK, I'll do
I.

____________________________________________________________
__________
You are receiving this email because you elected to monitor
this forum.
To stop monitoring this forum, login to SourceForge.net and
visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=
293649

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Pydev-users mailing list
Pydev-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )