Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8597

Python • Re: Python module hangs, keeping script from crashing

$
0
0
loop_start() is a valid approach.
More details? Then see https://pypi.org/project/paho-mqtt/#network-loop

It would help to see full code.
The error code points to some problem with socket-module. Be sure there is no file socket.py in module search path. Of course it should be in the python provided modules. But not in local directory.

Code:

""" show module search path """import sysprint(sys.path)

Statistics: Posted by ghp — Sat Aug 30, 2025 10:12 am



Viewing all articles
Browse latest Browse all 8597

Trending Articles