ModuleNotFoundError
-
Python38-32\lib\site-packages\smartapi\webSocket.py", line 12, in <module>
from twisted.internet import reactor, ssl
ModuleNotFoundError: No module named 'twisted'Error in--from smartapi import SmartConnect, SmartSocket
-
@A224819 said in ModuleNotFoundError:
Also, I am also a Linux user
thats a surprise. Error says No module named openssl. so find in the web how to install openssl python package and openssl libraries for your linux.
-
@rajanprabu Mate, I did think of it and tried uninstalling and re-installing the package:
Still the same issue:
Here is the debug:
Also, I am also a Linux user
-
@A224819 Make sure you have the latest smartapi-python. And install smartapi using pip and it will install all dependencies. In short looks like you dont have openssl as it says.. But I dont have much experience with windows.
-
@hardip Mate, I was installed 'twisted' as @rajanprabu said but I am getting another error. The package seems to have some module missing:
Is this something any of you encountered? If so, how were you able to get around it?
Thank you so much for the help guys :)
EDIT: I have also tried the other variant of import (from smartapi.smartConnect import SmartConnect) but still no luck.
-
@rajanprabu
Thanks to all , done -
@hardip You can install it through pip. pip install twisted
-
@hardip API is based on twisted and autobahn packages. If you have used pip both would be installed by default. One another issue could be that python is not able to see packagers due to multi installations.