Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Jitpack build broken due to python3 switch #2387

Closed
mikekap opened this issue Feb 10, 2020 · 6 comments · Fixed by #2406
Closed

Jitpack build broken due to python3 switch #2387

mikekap opened this issue Feb 10, 2020 · 6 comments · Fixed by #2406

Comments

@mikekap
Copy link
Contributor

mikekap commented Feb 10, 2020

Sample log: https://jitpack.io/com/github/facebook/buck/3e23794873/build.log

Relevant lines:

BUILD SUCCESSFUL
Total time: 1 minute 7 seconds
+++ bin/buck build buck --show-output
+++ awk '{print $2}'
Not using buckd because watchman isn't installed.
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
PARSING BUCK FILES: FINISHED IN 0.8s
CREATING ACTION GRAPH: FINISHED IN 0.1s
DOWNLOADED 0 ARTIFACTS, 0.00 BYTES, 0.0% CACHE MISS
BUILDING: FINISHED IN 1.1s
BUILD FAILED
No python interpreter found (searched python3).
    When creating rule //py/hash:hash_files.
++ PEX=
2020-02-08T06:34:20.044197191Z
Exit code: 1
@v-jizhang
Copy link
Contributor

v-jizhang commented Feb 11, 2020

@mikekap, please build with -c python.interpreter=python
This is caused by that Python@2 was EOL, Homebrew/homebrew-core#49796. Python3 installation does not create the interpreter "python3" any longer.

@mikekap
Copy link
Contributor Author

mikekap commented Feb 12, 2020

This isn’t a build on my machine - this is from jitpack. I’m just following the instructions in the readme: https://github.com/facebook/buck/blob/master/README.md#prebuilt-buck-binaries .

Specifically I think this yaml file installs python2 rather than 3: https://github.com/facebook/buck/blob/master/jitpack.yml .

@v-jizhang
Copy link
Contributor

Jitpack needs a field to make sure that python3 in installed. It's in my task list now.

@qyang-nj
Copy link

Ran into the same issue today 🙁

@v-jizhang
Copy link
Contributor

v-jizhang commented Feb 26, 2020

@kageiit Could you build and upload relocatable python3 to your repo? https://github.com/kageiit/jitpack-python/releases
Thanks

@kageiit
Copy link
Contributor

kageiit commented Feb 27, 2020

Sure

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants