473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 3050
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Holly | last post by:
Hello List, My windows laptop configured as: XP, Python 1.5.2, MySQL 4.0.9 and Appache 1.3.17 A form ("Post" has been used) has a product list with about 400 products. The user checks each...
1
by: Mark Harrison | last post by:
Can somebody loan me a clue as to how to check the errno on an OSError, as described below? try: os.makedirs(d) except OSError: # if errno == 17 then silently ignore the error because the #...
7
by: Xah Lee | last post by:
Python doc problem: http://python.org/doc/2.4.2/lib/os-file-dir.html makedirs( path) Recursive directory creation function. Like mkdir(), but makes all intermediate-level directories needed...
10
by: k r fry | last post by:
Hi, I am new to this list and also programming with python. I have an error: oserror not a directory "katiescint.py" The piece of code causing the problem is: for subdir in...
4
by: David Hirschfield | last post by:
I know this should be obvious, but how does one raise a specific type of OSError? When I attempt to perform a file operation on a non-existent file, I get an OSError: , but what if I want to raise...
0
by: robert | last post by:
e.g. open/os module functions (os.path.getmtime...) and win32api/win32file functions fail on long paths (>~255 chars) even the '\\?\' trick from...
1
by: Lingo | last post by:
Hi all, I have a problem, i am running a batch file which will connect to oracle database via sqlplus. If i set whenever Oserror Exit and then try to connect it fails with the error message...
1
by: AswiniMothukuri | last post by:
Hi, Please guide me as to what the following error code means: cp_ins_cus.sql exited with a code of 150 cp_ins_cus.sql Code uses the follwoing lines : WHENEVER OSERROR EXIT OSCODE...
2
by: Michael George Lerner | last post by:
Hi, (Python 2.5, OS X 10.4.10) I have a program called pdb2pqr on my system. It is installed so that "pdb2pqr" is in my path and looks like: #\!/bin/zsh -f /sw/share/pdb2pqr/pdb2pqr.py "$@"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.