none
Module import error while building Python Module for edge RRS feed

  • Question

  • I was trying to get CPU usage of a ubuntu 16.04 LTS system , via edge python module -->

    • i was trying using psutil package 

    bellow is my retirement.txt 

    azure-iothub-device-client~=1.4.3
    setuptools~=41.2.0
    psutil~=5.6.3

    I added The setuploots as i was getting the bellow error -->

        ERROR: Command errored out with exit status 1:
         command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5t1df5hi/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5t1df5hi/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
             cwd: /tmp/pip-install-5t1df5hi/psutil/
        Complete output (3 lines):
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
        ImportError: No module named 'setuptools'
        ----------------------------------------
    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

    What would be possible fix ?


    Sunday, September 29, 2019 10:22 AM

All replies