ioerror

python – specifically handle file exists exception

python – specifically handle file exists exception Question: I have come across examples in this forum where a specific error around files and directories is handled by testing the errno value in OSError (or IOError these days ?). For example, some discussion here – Python's "open()" throws different errors for "file not found" – how …

Total answers: 2

IOError: [Errno 2] No such file or directory

IOError: [Errno 2] No such file or directory Question: im having problems trying to run an iteration over many files in a folder, the files exist, if I print file from files I can see their names… Im quite new to programming, could you please give me a hand? kind regards! import os for path, …

Total answers: 2

What can lead to "IOError: [Errno 9] Bad file descriptor" during os.system()?

What can lead to "IOError: [Errno 9] Bad file descriptor" during os.system()? Question: I am using a scientific software including a Python script that is calling os.system() which is used to run another scientific program. While the subprocess is running, Python at some point prints the following: close failed in file object destructor: IOError: [Errno …

Total answers: 3

pip install PyQt IOError

pip install PyQt IOError Question: I’m trying to install PyQt package with pip, but I get this error: ~$ pip install PyQt Downloading/unpacking PyQt Downloading PyQt-x11-gpl-4.8.3.tar.gz (9.8Mb): 9.8Mb downloaded Running setup.py egg_info for package PyQt Traceback (most recent call last): File “<string>”, line 14, in <module> IOError: [Errno 2] No such file or directory: ‘/home/john/build/PyQt/setup.py’ …

Total answers: 6