python:paho-mqtt 1.1 library on conduit
- This topic has 1 reply, 2 voices, and was last updated 10 years, 8 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You cannot reply to this topic.
Home › Forums › Conduit: mLinux Model › python:paho-mqtt 1.1 library on conduit
Tagged: python distutils
Hi,
I am attempting to install the python library paho-mqtt. I am git cloning the library source and running setup per the library instructions.
The first error was not being able to import distutils.core. I resolved that by doing:
$opkg upgrade
$opkg update
$opkg install python-distutils
This resolves the import distutilis.core error but then I get this.
$python setup.py install
Traceback (most recent call last):
File “setup.py”, line 5, in <module>
from distutils.core import setup
File “/usr/lib/python2.7/distutils/core.py”, line 20, in <module>
from distutils.dist import Distribution
File “/usr/lib/python2.7/distutils/dist.py”, line 10, in <module>
from email import message_from_file
ImportError: No module named email
Any ideas?
-david
After posting I found http://www.multitech.net/developer/forums/topic/distutils-on-conduit-device/ which seems related. Should I have not used opkg to install? Thanks.
David,
The setup.py is trying to import the python email module, but it is not installed. You will need to install the email module.
The link you posted is an alternative way to install the disutils module. It is probably the better way in that building it that way should pull in all the dependencies for the module also. Otherwise, you are going to have to install things one at a time and find out what the next missing dependency is.
Jeff