Closed
Bug 1835215
Opened 2 years ago
Closed 2 years ago
Firefox-113.0.2 and python-3.12 compatibility issue: ModuleNotFoundError: No module named 'imp'
Categories
(Firefox Build System :: Mach Core, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1747908
People
(Reporter: juippis, Unassigned)
Details
Steps to reproduce:
Try to compile the latest release, 113.0.2, with python-3.12 and
export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
Actual results:
Build fails to:
Traceback (most recent call last):
File "/var/tmp/portage/www-client/firefox-113.0.2/work/firefox-113.0.2/./mach", line 125, in <module>
main(sys.argv[1:])
File "/var/tmp/portage/www-client/firefox-113.0.2/work/firefox-113.0.2/./mach", line 117, in main
mach = check_and_get_mach(os.path.dirname(os.path.realpath(__file__)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/www-client/firefox-113.0.2/work/firefox-113.0.2/./mach", line 37, in check_and_get_mach
return load_mach(dir_path, mach_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/www-client/firefox-113.0.2/work/firefox-113.0.2/./mach", line 23, in load_mach
return mach_initialize.initialize(dir_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/www-client/firefox-113.0.2/work/firefox-113.0.2/build/mach_initialize.py", line 153, in initialize
import mach.main
File "/var/tmp/portage/www-client/firefox-113.0.2/work/firefox-113.0.2/python/mach/mach/main.py", line 11, in <module>
import imp
ModuleNotFoundError: No module named 'imp'
* ERROR: www-client/firefox-113.0.2 failed (configure phase):
This site https://docs.python.org/3/library/imp.html says imp has been removed from python 3.12.
Expected results:
Build should succeed as it does with python-3.11.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Mach Core' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Component: Untriaged → Mach Core
Product: Firefox → Firefox Build System
Updated•2 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1747908
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•