[Tutor] File open error
John Fouhy
john at fouhy.net
Mon Sep 4 23:59:59 CEST 2006
On 05/09/06, Magnus Wirström <asdlinux at yahoo.se> 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
Looks like you're redefining 'open' somewhere. Look through your
code; do you have anything like:
def open(...):
or
open =
or
from ... import open
or
from ... import *
?
--
John.
More information about the Tutor
mailing list