Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in paho.mqtt #5

Closed
kptkip opened this issue May 15, 2023 · 1 comment
Closed

Errors in paho.mqtt #5

kptkip opened this issue May 15, 2023 · 1 comment

Comments

@kptkip
Copy link

kptkip commented May 15, 2023

When I start the script I get the following errors:

Command
python3 pylon_to_mqtt.py --pylon_port /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_B0001B3W-if00-port0 --baud_rate 9600 --mqtt_host [MY_IP] --mqtt_port [;MY_PORT] --mqtt_root SmartHome/Jakiper

Error message:
Traceback (most recent call last):
File "pylon_to_mqtt.py", line 1, in
from paho.mqtt import client as mqttclient, error_string
ImportError: cannot import name 'error_string' from 'paho.mqtt' (/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/init.py)

@graham22
Copy link
Member

Updated reference to paho.mqtt client error_string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants