by: John J. Lee |
last post by:
Today, I wanted to do something like this:
def nr_files(dirName)
try:
return len(os.listdir(dirName))
except OSError, e:
if e.errno == errno.ENOENT:
return 0
else:
raise
|
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
#...
|
by: Alec Wysoker |
last post by:
Using Python 2.3.5 on Windows XP, I occasionally get OSError: Permission denied when calling os.remove(). This can occur with a
file that is not used by any other process on the machine, and is...
|
by: Joram Agten |
last post by:
Please put me in CC
When running the following program I get frequent errors like this one
Exception in thread Thread-4:
Traceback (most recent call last):
File...
|
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...
|
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...
|
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...
|
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...
|
by: SamG |
last post by:
Hi,
I do this on PowerPC..
And endup getting this ...
OSError: Input/output error:/usr/bin
I use python 2.4.4 (Framework edition)
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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...
|
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,...
|