469,358 Members | 1,473 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,358 developers. It's quick & easy.

OSError[Error 5]

Hi,

I do this on PowerPC..
>>import os
os.listdir('/usr/bin')
And endup getting this ...

OSError: [Error 5] Input/output error:/usr/bin

I use python 2.4.4 (Framework edition)

Could anybody help

PS: I have clean listing with python 2.3.5 but my requirement is for
python 2.4.4.

Thanx in advance.

May 22 '07 #1
3 2820
Hello SamG,
I do this on PowerPC..
>import os
os.listdir('/usr/bin')

And endup getting this ...

OSError: [Error 5] Input/output error:/usr/bin
What happens when you run "ls /usr/bin" in the terminal?

HTH,
--
Miki <mi*********@gmail.com>
http://pythonwise.blogspot.com

May 22 '07 #2
Try adding a trailing slash?

On 22 May 2007 03:52:23 -0700, SamG <ma*******@gmail.comwrote:
Hi,

I do this on PowerPC..
>import os
os.listdir('/usr/bin')

And endup getting this ...

OSError: [Error 5] Input/output error:/usr/bin

I use python 2.4.4 (Framework edition)

Could anybody help

PS: I have clean listing with python 2.3.5 but my requirement is for
python 2.4.4.

Thanx in advance.

--
http://mail.python.org/mailman/listinfo/python-list
May 23 '07 #3
On May 23, 1:39 am, Miki <miki.teb...@gmail.comwrote:
Hello SamG,
I do this on PowerPC..
>>import os
>>os.listdir('/usr/bin')
And endup getting this ...
OSError: [Error 5] Input/output error:/usr/bin

What happens when you run "ls /usr/bin" in the terminal?

HTH,
--
Miki <miki.teb...@gmail.com>http://pythonwise.blogspot.com

I get a perfect listing of /usr/bin folder.

May 23 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Holly | last post: by
1 post views Thread by Mark Harrison | last post: by
7 posts views Thread by Xah Lee | last post: by
10 posts views Thread by k r fry | last post: by
4 posts views Thread by David Hirschfield | last post: by
1 post views Thread by AswiniMothukuri | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.