You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2020/08/07 10:00:35 UTC

[GitHub] [incubator-heron] Code0x58 edited a comment on issue #3600: no such attribute 'netrc' in 'http_file' rule

Code0x58 edited a comment on issue #3600:
URL: https://github.com/apache/incubator-heron/issues/3600#issuecomment-670436973


   _**TL;DR:** your python3 binary is probably called `python` or `python3`, but PEX by default needs `python<major>.<minor>` where the major and minor version are the same as those used to build the PEX_
   
   one thing with PEX is that it tries to be explicit about what version of python it is for by default (you could argue it's good for reproducibility, but a pain for flexibility), so if you run code on a python3.6 interpreter, it will automatically make it so the generated PEX starts with `#!/usr/bin/env python3.6`, rather than more generic shebang lines calling `python3` or `python`.
   
   It seems you don't have a `python3.6` file on your system `$PATH`, which you'll need to stop that _"No such file or directory"_. Centos may have a package or option to install the more explicit `pythonX.Y` link, or you may have to symlink or hardlink it yourself.
   
   p.s. yep, 3.6 is what is tested in CI and the minimum compatible version, but there's a decent chance that later versions also work - I can confirm that the build and tests work with python3.8 as that is what ends up used if you run [`./vagrant/local-ci.sh`](https://github.com/apache/incubator-heron/blob/master/vagrant/local-ci.sh) (which does the same process as Travis CI).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org