Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up./mach bootstrap failure, possibly changes in python packages API #24541
Comments
|
Any difference if you remove |
|
Nope, still the same error.
|
|
I wonder if bootstrap doesn't go through the whole virtualenv setup. What if you update your installed six package? You need six 1.12, based on https://github.com/benjaminp/six/blob/aa4e90bcd7b7bc13a71dfaebcb2021f4caaa8432/CHANGES#L13. |
|
That seems to have solved it albeit being inconvenient.
|
|
I see the same issue (with the same resolution) on Fedora 30, after manually installing python 2. Is this something that could/should be fixed in the bootstrap scripts? I'd be happy to submit a PR but I'm not quite sure where to start. |
|
It sounds like that's the appropriate fix, yeah. We probably want to travel the code from the Mach script in the root directory and see what's different about the bootstrap command that end up in python/servo/bootstrap.py. |
|
Tracing the code path from the root |
|
That sounds very likely! |
mach bootstrap - activate virtual env This modifies the `./mach bootstrap` script to activate the python virtual environment, fixing issues on systems that don't have `six` and `distro` pre-installed. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24561 (also relevant to #24541) <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they are in the `./mach bootstrap` script - although this may be something that could be checked in CI - Is there any interest in setting this up?
mach bootstrap - activate virtual env This modifies the `./mach bootstrap` script to activate the python virtual environment, fixing issues on systems that don't have `six` and `distro` pre-installed. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24561 (also relevant to #24541) <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they are in the `./mach bootstrap` script - although this may be something that could be checked in CI - Is there any interest in setting this up?
mach bootstrap - activate virtual env This modifies the `./mach bootstrap` script to activate the python virtual environment, fixing issues on systems that don't have `six` and `distro` pre-installed. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24561 (also relevant to #24541) <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they are in the `./mach bootstrap` script - although this may be something that could be checked in CI - Is there any interest in setting this up?
From a clean installation of Ubuntu 18.04.3
Simple enough, lets install module
distro...