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.

Problem installing any package

See original GitHub issue

There is some issue when pipenv trying to lock dependencies. I can’t troubleshoot it by myself. Here is my log:

$ pipenv install sklearn                                                             on git:master|…
Installing sklearn…
Collecting sklearn
Collecting scikit-learn (from sklearn)
  Using cached scikit_learn-0.19.0-cp36-cp36m-manylinux1_x86_64.whl
Installing collected packages: scikit-learn, sklearn
Successfully installed scikit-learn-0.19.0 sklearn-0.0

Adding sklearn to Pipfile's [packages]…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Traceback (most recent call last):
  File "/usr/local/bin/pipenv", line 11, in <module>
    load_entry_point('pipenv==8.2.7', 'console_scripts', 'pipenv')()
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/vendor/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/vendor/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/vendor/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/vendor/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/vendor/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/cli.py", line 1851, in install
    do_lock(system=system, pre=pre)
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/cli.py", line 1082, in do_lock
    pre=pre
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/utils.py", line 452, in resolve_deps
    resolved_tree.update(resolver.resolve(max_rounds=PIPENV_MAX_ROUNDS))
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/patched/piptools/resolver.py", line 102, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/patched/piptools/resolver.py", line 200, in _resolve_one_round
    for dep in self._iter_dependencies(best_match):
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/patched/piptools/resolver.py", line 296, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/patched/piptools/repositories/pypi.py", line 153, in get_dependencies
    result = reqset._prepare_file(self.finder, ireq)
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/patched/pip/req/req_set.py", line 639, in _prepare_file
    abstract_dist.prep_for_dist()
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/patched/pip/req/req_set.py", line 134, in prep_for_dist
    self.req_to_install.run_egg_info()
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/patched/pip/req/req_install.py", line 438, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/home/zhukovgreen/.local/lib/python3.6/site-packages/pipenv-8.2.7-py3.6.egg/pipenv/patched/pip/utils/__init__.py", line 707, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/tmp858iy8rtbuild/subprocess32/

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
vphilipponcommented, Oct 13, 2017

That’s a bug fixed in 8.2.7 (officially released). Make sure to clear your cache after upgrading (pipenv lock --clear) Was not respecting the platform when selecting wheels to compute dependencies, ending up, as an example, fetching subprocess32, which is a Py2 dependency, even on Py3, among other things.

0reactions
erinxoconcommented, Oct 18, 2017

Thanks for using pipenv @ZhukovGreen! and Thanks for the support @vphilippon!

Read more comments on GitHub >

github_iconTop Results From Across the Web

General problem installing any R package - Microsoft Support
Solution. This error will occur when you do not have the necessary file permissions to be able to write to the current R...
Read more >
Rstudio can´t install any package. I´m a beginner. How to fix?
I am taking a Data Science course at Coursera using R. I installed version 4.0.2 of R for Windows 10 (x64), then R...
Read more >
Problem Installing Packages in the RStudio IDE - Posit Support
If you are unable to install packages in the RStudio IDE, some common problems are outlined below: Are you able to install packages...
Read more >
Fixed: “There is a problem with this Windows installer package ...
Method 1: Make sure you have administrative permissions · Method 2: Use the Program Install and Uninstall troubleshooter · Method 3: Repair the...
Read more >
R | Unable to Install Packages RStudio Issue (SOLUTION)
Changing the configuration in R Studio to solve install packages issue. Go To Tools -> Global option -> Packages. Then uncheck the option...
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