Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora 28's pipenv package 11.10.4 crashes No module named scandir #301

Closed
cben opened this issue Jul 15, 2018 · 2 comments
Closed

Fedora 28's pipenv package 11.10.4 crashes No module named scandir #301

cben opened this issue Jul 15, 2018 · 2 comments

Comments

@cben
Copy link
Member

cben commented Jul 15, 2018

Not really a problem, just need to use latest pipenv.
Opening & closing this only for troubleshooting documentation :-)

$ sudo dnf install pipenv
$ pipenv --version
pipenv, version 11.10.4
$ pipenv install
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
from .project import Project, SourceNotFound
  File "/usr/lib/python3.6/site-packages/pipenv/project.py", line 20, in <module>
    from pathlib2 import Path
  File "/usr/lib/python3.6/site-packages/pathlib2.py", line 45, in <module>
    from scandir import scandir as os_scandir
ImportError: No module named scandir

💔
I'm not sure what exactly causes this; same Pipfile in an otherwise empty dir passes pipenv install.

In any case this got resolved in latest pipenv, probably by pypa/pipenv#2368 that vendored scandir(?).

$ sudo dnf remove pipenv
$ pip install --user pipenv
$ pipenv install
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Updated Pipfile.lock (8c6a53)!
Installing dependencies from Pipfile.lock (8c6a53)...
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 12/12 — 00:00:12
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.

🎉

@cben cben closed this as completed Jul 15, 2018
@cben
Copy link
Member Author

cben commented Jul 15, 2018

rawhide has pipenv 11.10.4-2.fc29 which I think is too old, the presumed fix 2 version later in 2018.6.25 (they've switched numbering scheme — https://github.com/pypa/pipenv/releases).
In any case env LC_ALL=C sudo dnf install --enablerepo rawhide --releasever=29 --best pipenv wanted to pull in way too much stuff (and uninstall yum) so I gave up on it.
Just use pip install --user pipenv.

nirs added a commit to nirs/ROSE that referenced this issue Jul 15, 2018
@nirs
Copy link
Member

nirs commented Jul 15, 2018

@cben I think #305 solves this issue.

rollandf pushed a commit that referenced this issue Jul 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants