By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,222 Members | 2,416 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,222 IT Pros & Developers. It's quick & easy.

OSError[Error 5]

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.