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.

Installation Failure in Clean Environment

See original GitHub issue

I am getting the following error when trying to install my package in CI when it goes to install fxpmath:

 Collecting fxpmath>=0.3.5
   Downloading fxpmath-0.3.5.tar.gz (15 kB)
     ERROR: Command errored out with exit status 1:
      command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tbrstae7/fxpmath/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tbrstae7/fxpmath/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 /tmp/pip-pip-egg-info-bgv57lo5
          cwd: /tmp/pip-install-tbrstae7/fxpmath/
     Complete output (9 lines):
     Traceback (most recent call last):
       File "<string>", line 1, in <module>
       File "/tmp/pip-install-tbrstae7/fxpmath/setup.py", line 11, in <module>
         _version = __import__('fxpmath').__version__
       File "/tmp/pip-install-tbrstae7/fxpmath/fxpmath/__init__.py", line 6, in <module>
         from . import objects
       File "/tmp/pip-install-tbrstae7/fxpmath/fxpmath/objects.py", line 36, in <module>
         import numpy as np
     ModuleNotFoundError: No module named 'numpy'
     ----------------------------------------
 ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Due to the way that it is currently retrieving its version information, numpy must be installed prior to installing fxpmath. pip does not have a proper dependency resolver so in my situation fxpmath is installed before numpy, leading the numpy import in “objects.py” to fail during the installation.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
francof2acommented, Jun 19, 2020

Thanks for explanation. Sorry, but I answered without seeing merge request. The solution seems good! Thank you. I’m going to accept the merge request and update package in pip/conda soon. Don’t forget close the issue if you test and it’s ok for you.

0reactions
jcharlongcommented, Jun 19, 2020

No worries!

I tested locally & was able to install the package with no problems. I’ll go ahead & close out the issue.

Thanks for this awesome package and your quick response!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Right-click Windows Installer, and then click Properties. If the Startup type box is set to Disabled, change it to Manual. Click OK to...
Read more >
What is a clean install? - TechTarget
A clean install is a software installation in which any previous version is eradicated. The alternative to a clean install is an upgrade,...
Read more >
Cleaning up after a failed full installation - IBM
Determine the underlying cause, resolve issues, and then attempt to install integration service again. See Diagnosing and resolving an installation problem.For ...
Read more >
Trying to use conda install to get anaconda-clean but ...
I get that the initial frozen solve and the flexible solve both fail and that there are conflicts. Collecting package metadata (current_repodata ...
Read more >
[SOLVED] Windows 10 Could Not Complete the Installation + ...
If you come across the error Windows 10 installation has failed, you can choose to install Windows 10 in Clean Boot. Now, here...
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