Invalid python interpreter but only on Github actions? #1677
-
In this example, https://github.com/nyx-space/nyx/actions/runs/5352420082/jobs/9707520777?pr=187, the docker image fails to build the project. This is a sudden change: it didn't happen five days ago. Python is installed and the command to start the docker image is:
I will also say that it does not seem to happen locally. Any idea how I could debug this? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Make sure you have |
Beta Was this translation helpful? Give feedback.
-
The fact that it suddenly didn't work is a hint I should have understood immediately since I'm using opensuse tumbleweed. It turns out that python 3.10 is no longer in the path as Using As such, the command in the docker container becomes: |
Beta Was this translation helpful? Give feedback.
The fact that it suddenly didn't work is a hint I should have understood immediately since I'm using opensuse tumbleweed. It turns out that python 3.10 is no longer in the path as
python3
but aspython3.10
.Using
-i python3.10
was sufficient to fix the issue.As such, the command in the docker container becomes:
CMD ["maturin", "build", "-F", "python", "--release", "-i", "python3.10"]