[Tutor] File open error

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Tue Sep 5 05:24:38 CEST 2006



On Tue, 5 Sep 2006, John Fouhy wrote:
>> When i'm executing it i get this error (runtime)
>>
>> Traceback (most recent call last):
>>  File "C:\python\boa\backup\backupwin.py", line 135, in OnStartaButton
>>    config = open("backup.conf", "r")
>> TypeError: an integer is required


I agree with John: this is almost certainly os.open(), which takes 
integers, rather than the builtin open().


More information about the Tutor mailing list