I'm confused by the required loading of the VENV directory, which I've named foobar.
I the happy days before VENV I was used to install an MQTT package using the command:
sudo pip install paho-mqtt
And then for publisher include:
import paho.mqtt.publish as publish
and for the client:
import paho.mqtt.client as mqtt
In the tutorial I used for Venv installtion it has a domonstration of loading click with
pip install click
That worked
So for MQTT I dropped the sudo and loaded foobar with the command
pip install paho-mqtt
and that seemed to load
But now in an application which inludes the statement
import paho.mqtt.publish as publish
I get the message ModeuleNotFoundError: 'No module named 'paho'
I've no idea how to sort this out.
MOD split off from irrelevant topic
I the happy days before VENV I was used to install an MQTT package using the command:
sudo pip install paho-mqtt
And then for publisher include:
import paho.mqtt.publish as publish
and for the client:
import paho.mqtt.client as mqtt
In the tutorial I used for Venv installtion it has a domonstration of loading click with
pip install click
That worked
So for MQTT I dropped the sudo and loaded foobar with the command
pip install paho-mqtt
and that seemed to load
But now in an application which inludes the statement
import paho.mqtt.publish as publish
I get the message ModeuleNotFoundError: 'No module named 'paho'
I've no idea how to sort this out.
MOD split off from irrelevant topic
Statistics: Posted by Capell — Thu Aug 28, 2025 10:53 am