Skip to content

NameError: name 'file' is not defined #1

@omcdr

Description

@omcdr

Tested by Python3.3 and Twisted 14.0

C:\tmp_dj\PiIO.WS-master>python server.py
Traceback (most recent call last):
File "", line 560, in module_for_loader_wrapper
File "", line 868, in _load_module
File "", line 313, in _call_with_frames_removed
File "C:\Program Files (x86)\Python33\lib\site-packages\twisted-14.0.0-py3.3.e
gg\twisted\internet\reactor.py", line 38, in
from twisted.internet import default
File "C:\Program Files (x86)\Python33\lib\site-packages\twisted-14.0.0-py3.3.e
gg\twisted\internet\default.py", line 56, in
install = _getInstallFunction(platform)
File "C:\Program Files (x86)\Python33\lib\site-packages\twisted-14.0.0-py3.3.e
gg\twisted\internet\default.py", line 50, in _getInstallFunction
from twisted.internet.selectreactor import install
File "C:\Program Files (x86)\Python33\lib\site-packages\twisted-14.0.0-py3.3.e
gg\twisted\internet\selectreactor.py", line 18, in
from twisted.internet import posixbase
File "C:\Program Files (x86)\Python33\lib\site-packages\twisted-14.0.0-py3.3.e
gg\twisted\internet\posixbase.py", line 24, in
from twisted.internet import error, udp, tcp
File "C:\Program Files (x86)\Python33\lib\site-packages\twisted-14.0.0-py3.3.e
gg\twisted\internet\udp.py", line 51, in
from twisted.internet import base, defer, address
File "C:\Program Files (x86)\Python33\lib\site-packages\twisted-14.0.0-py3.3.e
gg\twisted\internet\base.py", line 23, in
from twisted.internet import fdesc, main, error, abstract, defer, threads
File "C:\Program Files (x86)\Python33\lib\site-packages\twisted-14.0.0-py3.3.e
gg\twisted\internet\defer.py", line 29, in
from twisted.python import lockfile, log, failure
File "C:\Program Files (x86)\Python33\lib\site-packages\twisted-14.0.0-py3.3.e
gg\twisted\python\lockfile.py", line 52, in
_open = file
NameError: name 'file' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "server.py", line 1, in
from twisted.internet import reactor, ssl
File "", line 1565, in _find_and_load
File "", line 1532, in _find_and_load_unlocked
File "", line 584, in _check_name_wrapper
File "", line 1022, in load_module
File "", line 1003, in load_module
File "", line 563, in module_for_loader_wrapper
KeyError: 'twisted.internet.reactor'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions