|mach create-mach-environment| "Would build wheel with unsupported tag ('cp38', 'cp38', 'macosx_10_14_x86_64)"
Categories
(Firefox Build System :: Bootstrap Configuration, defect)
Tracking
(firefox86 fixed)
Tracking | Status | |
---|---|---|
firefox86 | --- | fixed |
People
(Reporter: mhentges, Assigned: mhentges)
References
Details
This happens in ./mach bootstrap
and ./mach create-mach-environment -f
on Intel Mac Big Sur with the XCode (system) Python.
Notes:
- It's reproducible by hand by:
source ~/.mozbuild/_virtualenvs/mach/bin/source
export ARCHFLAGS="-arch x86_64"
see this patchpip install zstandard
- It's not reproducible with a
python3 -m venv ...
virtualenv, so there's something to do with the way that we create ourmach
virtualenv that causes this
Assignee | ||
Comment 1•5 years ago
|
||
:glandium, I'm getting a little bit behind with triage items, would you be able to take a look at this? Since it's related to our vendored virtualenv
package, hopefully you'll have an easier time diagnosing this than me?
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
•
|
||
Hmm, note that you may need to rm -r ~/Library/Caches/pip
to reproduce this.
Also, I did a little more digging and found that it can be reproduced outside of mach
:
- Ensure you're running the system (XCode) python
pip3 install --user virtualenv==20.0.31
(not reproducible with the most recentvirtualenv==20.2.2
)python3 -m virtualenv tmp-env
source tmp-env/bin/activate
export ARCHFLAGS="-arch x86_64"
pip install zstandard==0.13.0
I'll dig into this more and report a virtualenv
bug
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
Also worth noting that upgrading wheel
within the virtualenv solves this problem, much like 1680802
Assignee | ||
Comment 5•5 years ago
•
|
||
After vendoring the new virtualenv
, I'm seeing
mhentges@mhentges-64lvdr firefox % ./mach create-mach-environment -f
Traceback (most recent call last):
File "/Users/mhentges/dev/firefox/third_party/python/virtualenv/virtualenv.py", line 55, in <module>
run()
File "/Users/mhentges/dev/firefox/third_party/python/virtualenv/virtualenv.py", line 49, in run
from virtualenv.__main__ import run as run_virtualenv
File "/Users/mhentges/dev/firefox/third_party/python/virtualenv/virtualenv/__init__.py", line 3, in <module>
from .run import cli_run, session_via_cli
File "/Users/mhentges/dev/firefox/third_party/python/virtualenv/virtualenv/run/__init__.py", line 6, in <module>
from ..app_data import make_app_data
File "/Users/mhentges/dev/firefox/third_party/python/virtualenv/virtualenv/app_data/__init__.py", line 12, in <module>
from .read_only import ReadOnlyAppData
ModuleNotFoundError: No module named 'virtualenv.app_data.read_only'
Error running mach:
['create-mach-environment', '-f']
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file create-mach-environment| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
Exception: Failed to create virtualenv: /Users/mhentges/.mozbuild/_virtualenvs/mach (virtualenv.py retcode: 1)
File "/Users/mhentges/dev/firefox/python/mozbuild/mozbuild/mach_commands.py", line 2096, in create_mach_environment
manager.build(sys.executable)
File "/Users/mhentges/dev/firefox/python/mozbuild/mozbuild/virtualenv.py", line 526, in build
self.create(python)
File "/Users/mhentges/dev/firefox/python/mozbuild/mozbuild/virtualenv.py", line 280, in create
raise Exception(
# This is so sad
Doing a debugging run now to see what's up.
Assignee | ||
Comment 6•5 years ago
|
||
This is different but should be fixed by https://bugzilla.mozilla.org/show_bug.cgi?id=1680802
Assignee | ||
Updated•5 years ago
|
Updated•4 years ago
|
Description
•