You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just wanted to raise awareness (and am willing to help clarify this in the docs), but potential contributors are not allowed to properly run the /tools/setup.py script if Python 2 isn't set as the Path environment variable. Currently, I have Python 3 set as my default Python. Here are multiple methods I tried to work around the Python 2 requirement:
Method 1: Running python2 tools/setup.py
Within deno/third_party/depot_tools/download_from_google_storage.py, the line #!/usr/bin/python enforces the Path environment variable to be Python 2, which is ultimately the reason why it crashes and fails the setup in this case.
Method 2: Using a virtualenv with Python 2 as the chosen interpreter
Using a virtualenv solves the above issue but eventually runs into its own problems with the chromium scripts.
Here's the logs/stack trace from this particular error:
The anaconda Python version parsing issue has been fixed upstream in Luci go... Maybe v8 doesn't have that yet? I thought this had been working for me (I use anaconda).
At the moment users have to ensure python points to python2. You could instead pass PATH to setup.py...
This feels like a bug in v8 scripts, that they should use sys.executable rather than hardcode 'python'.
What steps are you using for virtual env?
I use conda's source activate py27..
The issue is actually that anaconda python2 is not supported (it is upstream, perhaps unreleased?, in Luci go). So in a future release this will work, but for now you'll need to use system python (2). Note this is only for setup.py, once this has been run anaconda python2 works fine for build.
Edit: oh, I see I said this above. The point is this isn't a python 2/3 issue. There might be a one line fix to support anaconda (prior to the upstream luci go fix). Edit: Er, not so trivial actually, hopefully v8 will update their luci-go soon.
Just wanted to raise awareness (and am willing to help clarify this in the docs), but potential contributors are not allowed to properly run the /tools/setup.py script if Python 2 isn't set as the Path environment variable. Currently, I have Python 3 set as my default Python. Here are multiple methods I tried to work around the Python 2 requirement:
Method 1: Running
python2 tools/setup.py
Within deno/third_party/depot_tools/download_from_google_storage.py, the line
#!/usr/bin/python
enforces the Path environment variable to be Python 2, which is ultimately the reason why it crashes and fails the setup in this case.Method 2: Using a virtualenv with Python 2 as the chosen interpreter
Using a virtualenv solves the above issue but eventually runs into its own problems with the chromium scripts.
Here's the logs/stack trace from this particular error:
This might just be an isolated issue, but if it's an actual issue, then I'm happy to take this on and update the docs.
The text was updated successfully, but these errors were encountered: