python:paho-mqtt 1.1 library on conduit

Home Forums Conduit: mLinux Model python:paho-mqtt 1.1 library on conduit

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11833
    David Taylor
    Participant

    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.

    • This topic was modified 8 years, 1 month ago by David Taylor.
    • This topic was modified 8 years, 1 month ago by David Taylor.
    • This topic was modified 8 years, 1 month ago by David Taylor.
    #11840
    Jeff Hatch
    Keymaster

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.