Open Bug 1496885 Opened 7 years ago Updated 2 years ago

mach bootstrap fails due to Mercurial python module not being installed

Categories

(Developer Ecosystem :: Dev Kit, defect)

defect
Not set
normal

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: locketine, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0 Steps to reproduce: I followed the instructions on this page for setting up the Firefox development environment: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Windows_Prerequisites#Build_Firefox! Actual results: While running `./mach bootstrap` the script failed due to not being able to find Mercurial libraries: ================================================================================ Ensuring https://hg.mozilla.org/hgcustom/version-control-tools is up to date at c:/Users/Carlin/.mozbuild\version-control-tools abort: couldn't find mercurial libraries in [c:\mozilla-build\python\Scripts c:\mozilla-build\python\Scripts\python27.zip c:\mozilla-build\python\DLLs c:\mozilla-build\python\lib c:\mozilla-build\python\lib\plat-win c:\mozilla-build\python\lib\lib-tk c:\mozilla-build\python\Scripts c:\mozilla-build\python c:\mozilla-build\python\lib\site-packages] (check your install and PYTHONPATH) ================================================================================ I resolved this issue by running: `pip install Mercurial`. Expected results: It should not have errored out.

To resolve the issue with mach bootstrap failing due to the absence of the Mercurial Python module, you can follow these steps. Firstly, ensure that you have Python installed on your system by running the python --version command in your terminal. Make sure you have either Python 2.x or 3.x installed. Next, install the Mercurial Python module using pip for Python 2.x or pip3 for Python 3.x, depending on your Python version. For Python 2.x, use pip install mercurial, and for Python 3.x, use pip3 install mercurial. Once the installation is complete, verify that the Mercurial Python module is correctly installed by running python -c "import mercurial". This should resolve the Mercurial module issue and allow you to proceed with mach bootstrap as needed. https://altcoinoracle.com/value-at-risk-var-model-in-python-implementation-examples/

You need to log in before you can comment on or make changes to this bug.