-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
virtualenv 20.22.0 breaks on python3.9 on some conditions #2551
Comments
Almost certainly this is a bad installation where you have it installed both at system and user level and they conflict. |
My organization sets |
Sounds like you were using an unsupported feature. We plan to do no changes here . |
This feels like the wrong solution to the problem 😊 |
@gaborbernat thanks for the feedback, I guess is something wrong with my setup even if I am struggling to understand what's going on 🤷 |
Hi, I'm seeing this as well when trying to install hatch locally via My system virtualenv is version 20.14.1 and 20.21.1 was working but 20.22.0 breaks with the same "has no attribute 'CPython2macOsArmFramework'" message. I assume this is because CPython2macOsArmFramework was removed when python2 support was dropped, but the name is getting passed from the old version somewhere to the new version, which doesn't know about it. It seems strange that you just can't have both a local version and a system version of virtualenv installed, but then again python building and packaging has been strange for a couple decades... |
Have the same problem with hatch and tox. btw: What is an unsupported feature? |
Issue
Starting from release of virtualenv 20.22.0 our CI using tox breaks upon tox virtualenv creation with
AttributeError: module 'virtualenv.create.via_global_ref.builtin.cpython.mac_os' has no attribute 'CPython2macOsArmFramework'
errorThe error happens when virtualenv is installed at system or user level (ie: by running
pip install --user "virtualenv==20.22.0"
but I can't reproduce this in thepython:3.9
image or in a virtualenv using the same interpreter that failsEnvironment
Provide at least:
OS: Ubuntu 22.04
pip list
of the host python wherevirtualenv
is installed:$ python3.9 -mpip list --user
Package Version
distlib 0.3.6
filelock 3.12.0
platformdirs 3.2.0
virtualenv 20.22.0
The text was updated successfully, but these errors were encountered: