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 updom/bindings/codegen/run.py: No module named Configuration #26408
Comments
|
WSL is not a supported build configuration. We support building servo from windows command prompts only and can't provide support for an untested configuration. |
I am not building under WSL - I was merely using it as a way to access the |
|
The Configuration module shoukd be present in components/script/dom/bindings/codegen. Does |
|
No, not really.
|
|
The module is, in fact, present.
|
|
I wonder if run.py is running under python3 and somehow we haven't tested that? What happens if you set the PYTHON environment variable to point to the 2.7 python executable? |
|
The code that chooses which python for run.py lives in https://github.com/servo/servo/blob/master/components/script/build.rs#L67-L89. |
|
I actually have both installed, as the instructions said I should:
Also:
Those are set as well as the instructions said I should. Haven't tried just setting Is there a way to get the execution command, or just more information in the trace and error message about invocation and used version? |
|
Setting Suggestion: Make this an additional step specified in |
|
A better short-term fix (besides fixing #26412) would be to modify that build.rs to use the PYTHON2 variable instead. It's more explicit and shouldn't require updating any documentation. |
I am following the build instructions as given in README with these slight changes:
C:\gstreamer.virtualenvis installed through both python2 and python3 - both via Chocolatey.During compilation (
mach build --release), I get this:Platform: Windows 10 1909
CPU, GPU, RAM: R9 3900X, 2080 TI, 32GB
Temporarily switching to WSL to use
find . -name "run.py"would indeed show me the required file:So what am I missing here? Mind you, I have zero experience with Python. I could also be misunderstanding something here.