docker-pyinstaller icon indicating copy to clipboard operation
docker-pyinstaller copied to clipboard

Error"pyinstaller: not found script returned exit code 127" when I build a Python application with PyInstaller

Open ybbiubiubiu opened this issue 5 years ago • 3 comments

When I learned to build a python application using pyinstaller according to the documentation, an error message appeared when I completed the final delivery step. The error step appears in the fourth step of the delivery phase: "pyinstaller --onefile sources / add2vals.py "

The following is the relevant output of the log of this stage:

ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). Alternatively you can force image entrypoint to be disabled by adding option --entrypoint=''.

[Pipeline] { [Pipeline] sh

  • pyinstaller --onefile sources/add2vals.py /var/jenkins_home/workspace/simple-python-pyinstaller-app@tmp/durable-6ebf42f7/script.sh: 1: /var/jenkins_home/workspace/simple-python-pyinstaller-app@tmp/durable-6ebf42f7/script.sh: pyinstaller: not found [Pipeline] } $ docker stop --time=1 cf6f8d330867496b5fbf0f80a1f303a78f407e868f989b5498bd7d1146464741 $ docker rm -f cf6f8d330867496b5fbf0f80a1f303a78f407e868f989b5498bd7d1146464741 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] End of Pipeline ERROR: script returned exit code 127 Finished: FAILURE

ybbiubiubiu avatar Feb 19 '20 13:02 ybbiubiubiu

hello,I have the same problem. Have you solved it?

cent2580 avatar Jun 24 '20 09:06 cent2580

Did this problem has solved? Env: docker image: cdrx/pyinstaller-linux:python2(pyinstaller 3.6 and python 2.7.17) jenkins version: 2.249.1

peteyan avatar Sep 21 '20 03:09 peteyan

i have the same problem, have you guys solved it?

  • docker inspect -f . cdrx/pyinstaller-linux:python2 .
  • pyinstaller --onefile sources/add2vals.py /var/jenkins_home/workspace/simple-python-pyinstaller-app@tmp/durable-00f640b6/script.sh: 1: /var/jenkins_home/workspace/simple-python-pyinstaller-app@tmp/durable-00f640b6/script.sh: pyinstaller: not found script returned exit code 127

szh19931224 avatar Dec 02 '20 04:12 szh19931224