-
Notifications
You must be signed in to change notification settings - Fork 0
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
pipenv install mixes up system and project packages #8
Comments
If that happens again, could you:
|
The issue relates to this:
For some reason in @ginestra's environment the default behaviour does not work as expected. |
Error reproduced on a different machine when trying to upgrade django-kdl-wagtail. Looking at the long list for
|
I'm not sure system and project packages are mixed up... pip freeze on my projects is just as long due to all dependencies. If you want to check you can try these two commands: (vagrant) ➜ /vagrant git:(develop) ✗ deactivate Now you should get a short list without any project-related packages. To return to your environment, just |
This morning, after it was fixed (venv recreated) the list was much shorter. |
I can't make sense of the error message yet. But in the error stack you can see all the paths start with /vagrant/.venv/ so the problem seems internal to your vritual env. Which project is it? |
In case you can still reproduce the error. I'd be interested to see what happens when you try to import the module manually:
The weird thing is that the missing module is part of Django 2.1.7 which is clearly part of the packages listed by your pip freeze. I have installed exactly the same packages before running the above code. Then try: ls -lth /vagrant/.venv/lib/python3.5/site-packages/django/templatetags/static.py |
To add to the story: on the machine where everything seemed to be okay after recreating the venv, none of the |
That's just as mysterious... presumably the original Pipfile from the repo had fabric in the dev-packages section. Apart from Pipfile being removed or Fabric being uninstalled, I can't see how it would disappear from dev-packages. |
Sorry @geoffroy-noel-ddh I missed a bit while typing, I meant that none of the packages under dev-packages were installed (edited above), it's like that bit was ignored on that machine. Also, when I installed them manually, they are added to the packages list, as I assume a flag is needed to get them added under the dev-packages section? |
Just for info: |
Thanks, good to know. Just be aware that current (buggy) version of "pipenv update PACKAGE" tries to upgrade all packages! |
Fixed in 0.5.1. Was caused by a virtualbox shared folder issue. |
Technical note so we remember the decision to return to a set up where the venv is stored on the VM only, outside the shared folder: |
version: develop, 0.5
Issue happened on three different bare-bones vagrant instances on @ginestra's machine. From @jmiguelv, 27 Feb 2019:
Additional info: pipenv not run as sudo
The text was updated successfully, but these errors were encountered: