-
-
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
Cannot create a 2.7 environment on macOS Monterey #4904
Comments
Nothing in there seems to be a good match for what I'm seeing. I'm content to close out this issue and try to migrate the project without a working version -- it's a volunteer project anyway, and the worst that'll happen is some sad feels. However, I do think it'd be wise to put some sort of disclaimer in the pipenv docs, which feature a lot of examples with python 2 environments, so that the next person looking for a way to resurrect a dead codebase has a more realistic expectation for how that will go. |
@rsterbin That seems like a reasonable suggestion, would you be able to link to the python 2 examples in the docs here for reference? I was checking the Changelog just now and noted that 2021.11.5 is the first release to drop support for Python 2, see also: #4261 Perhaps you would have good results still using |
Related #4938. The support was maybe removed in the package classifiers. In reality, there is still tons of Python2 related code. |
Issue description
I'm unable to create a 2.7 environment using macOS Monterey. Creating a 3.10 environment works as expected, but 2.7 fails with
AttributeError: 'bool' object has no attribute 'error'
.Expected result
Environment created
Actual result
Steps to replicate
Installed pyenv and added 3.9.0, 3.10.0, and 2.7.18. Set 3.10.0 as global. Installed pipenv via pipx. This project does not have a Pipfile.
$ pipenv --support
Pipenv version:
'2021.11.23'
Pipenv location:
'/Users/reha/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv'
Python location:
'/Users/reha/.local/pipx/venvs/pipenv/bin/python'
Python installations found:
3.10.0
:/Users/reha/.pyenv/versions/3.10.0/bin/python3
3.9.0
:/Users/reha/.pyenv/versions/3.9.0/bin/python3
3.8.9
:/usr/bin/python3
2.7.18
:/usr/bin/python
2.7.18
:/usr/bin/python2
2.7.18
:/usr/bin/python2.7
2.7.18
:/Users/reha/.pyenv/versions/2.7.18/bin/python
PEP 508 Information:
System environment variables:
NVM_INC
VIRTUALENVWRAPPER_SCRIPT
TERM_PROGRAM
NVM_CD_FLAGS
TERM
SHELL
CLICOLOR
TMPDIR
TERM_PROGRAM_VERSION
TERM_SESSION_ID
ANSIBLE_NOCOWS
NVM_DIR
USER
COMMAND_MODE
SSH_AUTH_SOCK
__CF_USER_TEXT_ENCODING
BASH_SILENCE_DEPRECATION_WARNING
PAGER
WORKON_HOME
VIRTUALENVWRAPPER_PYTHON
PATH
PYENV_VIRTUALENVWRAPPER_PYENV_VERSION
LaunchInstanceID
__CFBundleIdentifier
personal_can_do_color
PWD
EDITOR
LANG
ITERM_PROFILE
XPC_FLAGS
VIRTUALENVWRAPPER_VIRTUALENV
PS1
XPC_SERVICE_NAME
PYENV_SHELL
SHLVL
HOME
COLORFGBG
_VIRTUALENVWRAPPER_API
LC_TERMINAL_VERSION
ITERM_SESSION_ID
LOGNAME
VIRTUALENVWRAPPER_VIRTUALENV_CLONE
NVM_BIN
PROMPT_COMMAND
LC_TERMINAL
SECURITYSESSIONID
VIRTUALENVWRAPPER_LAZY_SCRIPT
PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV
COLORTERM
OLDPWD
_
PIP_SHIMS_BASE_MODULE
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/shims:/Users/reha/.local/bin:/Users/reha/.pyenv/shims:/Users/reha/.nvm/versions/node/v16.11.1/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/usr/local/php5-7.3.8-20190811-205217/bin:/Applications:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/MacGPG2/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/reha/go/bin:/Users/reha/.ebcli-virtual-env/executables:/Users/reha/Source/scala-2.13.1/bin
SHELL
:/bin/bash
EDITOR
:vim
LANG
:en_US.UTF-8
PWD
:/Users/reha/git/stmarys/liturgicalendar/original
The text was updated successfully, but these errors were encountered: