05-26-2021 08:53 AM
I have the following script that im trying to run to generate an epg but getting an error on it. Im using python 3.8
Solved! Go to Solution.
05-26-2021 01:13 PM
Is it possible that you copied the Script from another machine to the machine you are trying to run it on now?
I guess it never worked on this machine before?
It looks like you are missing the websocket-client:
https://pythonrepo.com/repo/websocket-client-websocket-client-python-websocket
You should install pip3 (if not there already) and then run:
pip3 install websocket-client
Can you try that?
BR
Jules
05-26-2021 11:59 AM
Hey,
what is the response?
BR
Jules
05-26-2021 12:14 PM
here is the error response im getting:
Traceback (most recent call last):
File "aci_create_epg.py", line 6, in <module>
from acitoolkit import Credentials, Session, Tenant, AppProfile, BridgeDomain, EPG
File "<frozen zipimport>", line 259, in load_module
File "C:\Users\u28057\AppData\Local\Programs\Python\Python38-32\lib\site-packages\acitoolkit-0.4-py3.8.egg\acitoolkit\__init__.py", line 30, in <module>
File "<frozen zipimport>", line 259, in load_module
File "C:\Users\u28057\AppData\Local\Programs\Python\Python38-32\lib\site-packages\acitoolkit-0.4-py3.8.egg\acitoolkit\aciFaults.py", line 5, in <module>
File "<frozen zipimport>", line 259, in load_module
File "C:\Users\u28057\AppData\Local\Programs\Python\Python38-32\lib\site-packages\acitoolkit-0.4-py3.8.egg\acitoolkit\acibaseobject.py", line 38, in <module>
File "<frozen zipimport>", line 259, in load_module
File "C:\Users\u28057\AppData\Local\Programs\Python\Python38-32\lib\site-packages\acitoolkit-0.4-py3.8.egg\acitoolkit\acisession.py", line 55, in <module>
ImportError: cannot import name 'create_connection' from 'websocket' (C:\Users\u28057\AppData\Local\Programs\Python\Python38-32\lib\site-packages\websocket\__init__.py)
05-26-2021 01:13 PM
Is it possible that you copied the Script from another machine to the machine you are trying to run it on now?
I guess it never worked on this machine before?
It looks like you are missing the websocket-client:
https://pythonrepo.com/repo/websocket-client-websocket-client-python-websocket
You should install pip3 (if not there already) and then run:
pip3 install websocket-client
Can you try that?
BR
Jules
05-27-2021 07:57 AM
Awesome that helped. Thank You soo much.
05-27-2021 08:47 AM
Great to hear that!!
Can you mark my answer my last reply as solution? This would also help others if they search for the same problem in the future, and it also marks this discussion as solved.
Best regards
Juls
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide