Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Websocket and Paho dependency #3

Open
Marmachine opened this issue Jun 28, 2021 · 0 comments
Open

Websocket and Paho dependency #3

Marmachine opened this issue Jun 28, 2021 · 0 comments

Comments

@Marmachine
Copy link

Marmachine commented Jun 28, 2021

Errors when running the script python3 gardena.py

File "gardena.py", line 1, in
import websocket
ModuleNotFoundError: No module named 'websocket'

Solution: sudo pip3 install websocket

Successfully installed gevent-21.1.2 greenlet-1.1.0 websocket-0.2.1 zope.event-4.5.0 zope.interface-5.4.0
Successfully installed websockets-9.1
Successfully installed websocket-client-1.1.0

Question: tested with this webversion version??

File "gardena.py", line 7, in
import paho.mqtt.client as mqtt
ModuleNotFoundError: No module named 'paho'

Solution: pip3 install paho-mqtt

Dependency to include is at least worth to mention (and how to solve it)...
I got a litle annoyed by using pip instead of pip3, when trying to install the websocket module... pip is used in case of Python 2, but we have Python 3 here, we should use pip3.

I've added some suggestions to the readme file already ;-)

@Marmachine Marmachine changed the title websocket websocket and paho dependency Jun 28, 2021
@Marmachine Marmachine changed the title websocket and paho dependency Websocket and Paho dependency Jun 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant