File open problem?
William Dandreta
wjdandreta at worldnet.att.net
Mon Jun 11 13:55:28 EDT 2001
I am getting an error I do not understand.
1st line in script (/mnt/floppy/setup.py) is:
myfile = open('/etc/rc.d/rc.sysinit','r')
error is:
Traceback (innermost last):
File "/mnt/floppy/setup.py", line 5, in ?
myfile = open('/etc/rc.d/rc.sysinit','r')
TypeError: illegal argument type for built-in operation
What does it mean?
from Python 1.5.2 on Linux Mandrake 7.2.
A line like
myfile = open('test','r')
in the interpreter gives the same error.
The same line under Windows it OK.
Bill
More information about the Python-list
mailing list