question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error during install while running tests:

    2019-12-16 13:55:36,353 [WARN ] W-9008-noop-stderr org.pytorch.serve.wlm.WorkerLifeCycle -     import psutil
    2019-12-16 13:55:36,353 [WARN ] W-9008-noop-stderr org.pytorch.serve.wlm.WorkerLifeCycle - ModuleNotFoundError: No module named 'psutil'

Looks like a Python dependency issue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
harshbafnacommented, Feb 13, 2020

@fbbradheintz this issue is because of conda. Where while installing psutil, conda downloads “.tar.gz” from “https://files.pythonhosted.org”, instead of downloading the “.whl” file. Due to this setuptools builds the wheel for psutil locally in parallel to “torchserve”. However, torchserve expects all the python packages provided in “install_requires” parameter in setup.py file to be pre-installed.

This issue is not observed in non-conda environment.

  • psutil installation log in conda-env
(torchenv) USL07109:serve harsh_bafna$ pip install psutil
Collecting psutil
  Using cached https://files.pythonhosted.org/packages/73/93/4f8213fbe66fc20cb904f35e6e04e20b47b85bee39845cc66a0bcf5ccdcb/psutil-5.6.7.tar.gz
Building wheels for collected packages: psutil
  Building wheel for psutil (setup.py) ... done
  Created wheel for psutil: filename=psutil-5.6.7-cp37-cp37m-macosx_10_14_x86_64.whl size=226873 sha256=96405693ec93dbabaa93d349999a4c46617020e2aa82e8449027d4c95d8f9955
  Stored in directory: /Users/harsh_bafna/Library/Caches/pip/wheels/52/41/b0/bf50409fe2b1d3b79afa3eed71b54b3e30fe5b695db2c7ba2e
Successfully built psutil
Installing collected packages: psutil
Successfully installed psutil-5.6.7
  • psutil installation log in non-conda-env
USL07109:serve harsh_bafna$ pip3 install psutil
Collecting psutil
Installing collected packages: psutil
Successfully installed psutil-5.6.7

We have already added the following steps in the README for conda environment which installs the psutil before installing torchserve using pip install . :

conda install psutil pytorch torchvision torchtext -c pytorch

0reactions
fbbradheintzcommented, Feb 12, 2020

env-before-install.txt pip-install-serve-output.txt pip-install-serve-errors.txt

Attached please find:

  • A file containing the starting config of my virtual environment prior to receiving the error from pip install .
  • A file containing output of pip install .
  • A file containing error output of pip install .

That should be plenty to repro.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Right-click the Windows Installer service, and then click Start. The service should start without errors. Try to install or to uninstall again.
Read more >
If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >
How to Fix Microsoft Windows 10 Installation Error Codes
This document covers the list of Windows 10 installation error codes with its corresponding Cause and Resolution. Learn how to Fix!
Read more >
Fix problems installing Chrome - Google Help
If you get an error message when you try to download and install Google Chrome, try these fixes. Fix most installation errors Make...
Read more >
General articles - Kaspersky Knowledge Base
Error 2771 when installing a Kaspersky application05 October 2022 · Error “Cannot connect to the application installation source”27 July 2022.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found