Unable to run Python script on Linux - zope.interface module not found error

Swarochisha
Hi,
Here is the log trace while running my python script after installing kiteconnect module. I installed kiteconnect multiple times.

Also looking at the history of previous tickets on similar issue, I re-installed enum34, transaction, and etc.

However, the below error is not resolved. Could you please help ?

Traceback (most recent call last): File "lambda_function.py",
line 2, in from kiteconnect import KiteConnect File "/home/ec2-user/zerodha/kiteconnect/__init__.py",
line 111, in from kiteconnect.ticker import KiteTicker File "/home/ec2-user/zerodha/kiteconnect/ticker.py",
line 18, in from twisted.internet import reactor, ssl File "/home/ec2-user/zerodha/twisted/internet/reactor.py",
line 38, in from twisted.internet import default File "/home/ec2-user/zerodha/twisted/internet/default.py",
line 56, in install = _getInstallFunction(platform) File "/home/ec2-user/zerodha/twisted/internet/default.py",
line 52, in _getInstallFunction from twisted.internet.selectreactor import install File "/home/ec2-user/zerodha/twisted/internet/selectreactor.py", line 15, in from zope.interface import implementer ImportError: No module named zope.interface
  • rakeshr
    @Swarochisha
    zope.interface import implementer ImportError: No module named zope.interface
    Zope interface seems to be missing from your current environment. You need to install it using pip install zope.interface
  • Swarochisha
    @rakeshr I tried that also Rakesh. Is there an any sequence to installing these.
    I started off with kiteconnect, then looking at each of the error, I installed many as mentioned above followed by kiteconect again.
Sign In or Register to comment.