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.

pip install failures

See original GitHub issue

I recently started having swifter pip install failures.

It works if I run pip3 install -U numpy pandas pandas>=1.1.5 numpy>=1.22.2 dask>=2022.1.1 tqdm psutil before grep -v '^#' requirements.txt | xargs python3 -m pip install -U

But I don’t understand why

The xargs should be installing the required packages before swifter?

And before, I was just installing with python3 -m pip install -U -r requirements.txt and it was working fine.

requirements.txt

...
# datascience
pandas>=1.1.5
jupyterlab>=3.1.9
numpy>=1.22.2
dask>=2022.1.1
tqdm>=4.62.3
swifter>=1.1.1
...

ci.yml

      - name: Setup Python
        uses: actions/setup-python@v2
        with:
          python-version: 3.8
#      - run: pip3 install -U numpy pandas pandas>=1.1.5 numpy>=1.22.2 dask>=2022.1.1 tqdm psutil
      - name: Install python packages
        run: grep -v '^#' requirements.txt | xargs pip3 install -U

https://github.com/TheShellLand/automonisaur/runs/5089991392?check_suite_focus=true

Collecting numpy>=1.22.2
  Downloading numpy-1.22.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.8/16.8 MB 57.1 MB/s eta 0:00:00
Collecting dask>=2022.1.1
  Downloading dask-2022.1.1-py3-none-any.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 62.0 MB/s eta 0:00:00
Collecting tqdm>=4.62.3
  Downloading tqdm-4.62.3-py2.py3-none-any.whl (76 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 76.2/76.2 KB 18.5 MB/s eta 0:00:00
Collecting swifter>=1.1.1
  Downloading swifter-1.1.1.tar.gz (633 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 633.1/633.1 KB 51.8 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  Γ— python setup.py egg_info did not run successfully.
  β”‚ exit code: 1
  ╰─> [10 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-fifafnqu/swifter_09eb726c6b204f0a8f[46](https://github.com/TheShellLand/automonisaur/runs/5089991392?check_suite_focus=true#step:4:46)5d3690df00ce/setup.py", line 2, in <module>
          from swifter import __version__ as VERSION
        File "/tmp/pip-install-fifafnqu/swifter_09eb726c6b204f0a8f4[65](https://github.com/TheShellLand/automonisaur/runs/5089991392?check_suite_focus=true#step:4:65)d3[69](https://github.com/TheShellLand/automonisaur/runs/5089991392?check_suite_focus=true#step:4:69)0df00ce/swifter/__init__.py", line 5, in <module>
          from .swifter import SeriesAccessor, DataFrameAccessor
        File "/tmp/pip-install-fifafnqu/swifter_09eb[72](https://github.com/TheShellLand/automonisaur/runs/5089991392?check_suite_focus=true#step:4:72)6c6b204f0a8f465d3690df00ce/swifter/swifter.py", line 3, in <module>
          import numpy as np
      ModuleNotFoundError: No module named 'numpy'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
jmcarpenter2commented, Feb 7, 2022

Thanks for raising this! I will fix this immediately. Apologies!

1reaction
jmcarpenter2commented, Feb 7, 2022

Hey @naisanzaa , @jtmiclat, @dlangerm can you try 1.1.2 and let me know if that resolves it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install modules with PIP (and fix it when it fails) - Medium
Assuming that, the first thing to do is to check if the module exists. The main way to do this is to go...
Read more >
pip fails to install anything, error: invalid command 'egg_info'
This is when I began to have problems installing packages with pip. sudo pip install -vvv pygoogle. Will output the following:
Read more >
Pip install fails | Apple Developer Forums
Pip install fails Β· 1) apparently successful install of beta Β· 2) xcode command line tools installed via terminal Β· 3) python -V...
Read more >
Problem with "pip install" - Python Help
If you get an error with the pip install, first confirm pip is actually using the pip in your Anaconda env; pip --version...
Read more >
pip Install Third-Party Library Error
It indicates that the network has timed out, and there is a problem connecting to pypi.org . This is the website hosting the...
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