-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 works with --python 3.9 fails with 3.10 (error message like #5109) #5116
Comments
@g-vidal I am unable to reproduce this as it appears to work fine:
|
Thaks for testing, This is weird ! |
@g-vidal Are you able to test with the master branch? |
I run into a similar problem. Using Python 3.10, I run into the same Edit: On Pipenv version 2022.5.2 |
Please try again with |
You seem to have fixed the bug. Didn't run into any issues while installing 3.9 or 3.10 |
Thanks @MrEvilOnGitHub that is great to hear -- just want to call out that It was brilliantly understood and fixed by @torsava -- I only pushed the release out. |
Hi @matteius The fix worked perfectly with Manufacturer: Dell Inc.
Product Name: Precision WorkStation T3500
Linux Cerf-Volant 5.17.0-1-amd64 #1 SMP PREEMPT Debian 5.17.3-1 (2022-04-18) x86_64 GNU/Linux But in another one it failed with the same error: Manufacturer: Dell Inc.
Product Name: Precision 5820 Tower
Linux marjalahti 5.17.0-1-amd64 #1 SMP PREEMPT Debian 5.17.3-1 (2022-04-18) x86_64 GNU/Linux The installed packages differ from one workstation to the other. I started to compare but it is really a pain to tackle with brute force. Do you have any suggestion on how to trace out the origin of the discrepancy between the machines |
No I am not sure based on just that bit of information @g-vidal . Only thing I can say though is its advised to do a --user install of python packages such as pipenv and not a global sudo install. It does mean adding the local path to your PATH usually, like I will reopen this issue in case anyone else can help you. |
Thanks @matteius. I have solved the situation by reinstalling completely |
So are you set with this issue @g-vidal? |
yes @matteius evreything is OK, I cannot explain what happened but if anybody has the same issue my solution has been to clean everything related to python in '.local/lib' ' .local/bin' '/usr/local/bin' '/usr/local/lib' ; then rebuild properly last python version and dependencies on python (tricky exercise but efficient!) |
I'm still having issues with the FileNotFoundError: [Errno 2] after '✔ Successfully created virtual environment!'.. |
@molava1 It took me some time and some risky uninstall operations to succeed on my debian ! I would not suggest to follow the same path... The origin of the problem for me was a big mess between hazardous python 3.9 and 3.10 installations. There were more than one instance of python, python3, pip, pipenv executables and various python local-libs installations. Whenever things have been cleaned up it worked like a charm. You may try to see with |
same issue - though in my case the reason i think was logging out of user and back into root to do full-upgrade on a rolling edition - launching terminal showed me the traceback on pipenv - Traceback (most recent call last): ok it's 3:30am i'll fix it tmrw- it's probably what got me in this mess to start with |
@maximlomans I am currently at this moment working on a PR (unrelated to your comment) that would rely on the vendor'd version of Edit: though re-reading your stack trace I am less convinced that its what I say it is :-) |
thanks for the quick reply - i should have added the fact that i used get-pip.py script - |
@maximlomans You could check if installing this branch resolves your issue or not: #5190 |
I will do tomorrow - it's past 4;15 am where i am - thanks |
i found something on stackoverflow - it is indeed a 3.10 specific issue; "https://stackoverflow.com/questions/69512672/getting-attributeerror-module-collections-has-no-attribute-mutablemapping-w" ; ) |
It's OFFICIAL https://peps.python.org/pep-0632/ "The distutils module [1] has for a long time recommended using the setuptools package [2] instead. Setuptools has recently integrated a complete copy of distutils and is no longer dependent on the standard library [3]. Pip has been silently replacing distutils with setuptools when installing packages for a long time already, and the distutils documentation has stated that it is being phased out since 2014 (or earlier). It is time to remove it from the standard library." |
Thanks for the explanation 👍 |
New version of pipenv |
✔ Successfully created virtual environment! |
I ran into this problem when I tried to use the command (pipenv shell) inside a django project folder. Error message does not occure when I cd'd out of the project folder. |
Issue description
When creating vrt. env. with pipenv and python 3.9 it works but fails if python3.10 is used. The mesages seemed to be the same than #5109 but the workaround provided does not work on my debian :
Expected result
Expected same behavior with
python3.9
andpython3.10
Actual result
When creating vrt. env. with pipenv and python 3.10 it fails (Pipfile nor created and bin folder in subfolder local instead of the venv root folder) :
Steps to replicate
cd in empty folder
pipenv --python 3.10 or pipenv --python 3.9
$ pipenv --support
Pipenv version:
'2022.5.2'
Pipenv location:
'/usr/local/lib/python3.10/dist-packages/pipenv'
Python location:
'/usr/bin/python3'
Python installations found:
3.10.4
:/usr/bin/python3
3.10.4
:/bin/python3
3.9.12
:/usr/bin/python3.9
3.9.12
:/bin/python3.9
PEP 508 Information:
System environment variables:
SHELL
SESSION_MANAGER
WINDOWID
QT_ACCESSIBILITY
COLORTERM
SSH_AGENT_LAUNCHER
XDG_MENU_PREFIX
GNOME_DESKTOP_SESSION_ID
GTK_IM_MODULE
LANGUAGE
SSH_AUTH_SOCK
XMODIFIERS
DESKTOP_SESSION
XML_CATALOG_FILES
GTK_MODULES
PWD
XDG_SESSION_DESKTOP
LOGNAME
XDG_SESSION_TYPE
SYSTEMD_EXEC_PID
XAUTHORITY
GJS_DEBUG_TOPICS
GDM_LANG
HOME
USERNAME
IM_CONFIG_PHASE
LANG
LS_COLORS
XDG_CURRENT_DESKTOP
WAYLAND_DISPLAY
INVOCATION_ID
MANAGERPID
CLUTTER_IM_MODULE
GJS_DEBUG_OUTPUT
NVM_DIR
GNOME_SETUP_DISPLAY
SGML_CATALOG_FILES
XDG_SESSION_CLASS
TERM
USER
COLORFGBG
DISPLAY
SHLVL
QT_IM_MODULE
CLASSPATH
XDG_RUNTIME_DIR
JOURNAL_STREAM
XDG_DATA_DIRS
PATH
GDMSESSION
DBUS_SESSION_BUS_ADDRESS
GIO_LAUNCHED_DESKTOP_FILE_PID
GIO_LAUNCHED_DESKTOP_FILE
OLDPWD
_
PIP_SHIMS_BASE_MODULE
PIP_DISABLE_PIP_VERSION_CHECK
PIP_PYTHON_PATH
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/home/********/e-Book/DocbookXSLT/XSLT10/docbook-xsl-snapshot/tools/bin:/home/********/.local/bin:/home/********/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin:/usr/lib/ccache
SHELL
:/bin/bash
LANG
:fr_FR.UTF-8
PWD
:/home/********/Jupyter/VenvJupyter
The text was updated successfully, but these errors were encountered: