On my Windows Server 2003 system:
C:\Program Files\Wildfire\pyicq-t-0.7a>python pyicqt.py
Traceback (most recent call last):
File “pyicqt.py”, line 11, in ?
import main
File “C:\Program Files\Wildfire\pyicq-t-0.7a\src\main.py”, line 113, in ?
from twisted.internet import pollreactor as bestreactor
File "C:\Program Files\Wildfire\Python\lib\site-packages\twisted\internet\poll
reactor.py", line 29, in ?
poller = select.poll()
AttributeError: ‘‘module’’ object has no attribute ‘‘poll’’
C:\Program Files\Wildfire\pyicq-t-0.7a>
This is file with error: pollreactor.py
-
Copyright © 2001-2004 Twisted Matrix Laboratories.
-
See LICENSE for details.
“”"A poll() based implementation of the twisted main loop.
To install the event loop (and you should do this before any connections,
listeners or connectors are added)::
from twisted.internet import pollreactor
pollreactor.install()
API Stability: stable
Maintainer: U{Itamar Shtull-Trauringmailto:twisted@itamarst.org}
“”"
- System imports
import select, errno, sys
- Twisted imports
from twisted.python import log, threadable, failure
from twisted.internet import main, posixbase, error
- globals
reads = {}
writes = {}
selectables = {}
poller = select.poll() <----
string #29
How we can resolve this problem?