-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pyinstaller fails to build using Deadsnakes Ubuntu PPA #6358
Labels
triage
Please triage and relabel this issue
Comments
Latest development version results in different output: FROM ubuntu:18.04
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update && apt-get install -y python3.9 python3.9-dev python3.9-venv
RUN python3.9 -m venv /venv
COPY main.py .
RUN export PATH=/venv/bin:$PATH; python -m pip install --upgrade pip && \
python -m pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip && \
pyinstaller --onefile main.py
|
The error in first report is due to #6331. The error in second report is due to |
@rokm Thanks! An updated FROM ubuntu:18.04
RUN apt-get update && apt-get install -y software-properties-common binutils
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update && apt-get install -y python3.9 python3.9-dev python3.9-venv
RUN python3.9 -m venv /venv --upgrade-deps
COPY main.py .
RUN export PATH=/venv/bin:$PATH; python -m pip install pyinstaller && \
pyinstaller --onefile main.py |
bwoodsend
added a commit
to bwoodsend/pyinstaller
that referenced
this issue
Nov 10, 2021
This should catch issues like: pyinstaller#6358 (comment)
Legorooj
added a commit
that referenced
this issue
Nov 10, 2021
* Windows: Catch/re-raise failure to load win32ctypes under -OO. PyInstaller can no longer run under Python's optimised mode due to the dependency chain PyInstaller -> win32ctypes -> cffi -> pycparser which has started using/ Yacc which interprets grammars from docstrings. * Docs: Remove running with optimisations section (#6345). Running with -OO no longer works on Windows, makes such an insignificant difference to the overall output size and as generally agreed to be more trouble than it's worth. * Linux: Explicitly check that binutils tools are available. This should catch issues like: #6358 (comment) * Abort build if any obsolete stdlib backports are installed. Most prominently, check for `enum34` - the backport of `enum` - which masks the stdlib variant causing issues like #5728. Co-authored-by: Jasper Harrison <legorooj@protonmail.com>
Legorooj
added a commit
that referenced
this issue
Nov 10, 2021
* Windows: Catch/re-raise failure to load win32ctypes under -OO. PyInstaller can no longer run under Python's optimised mode due to the dependency chain PyInstaller -> win32ctypes -> cffi -> pycparser which has started using/ Yacc which interprets grammars from docstrings. * Docs: Remove running with optimisations section (#6345). Running with -OO no longer works on Windows, makes such an insignificant difference to the overall output size and as generally agreed to be more trouble than it's worth. * Linux: Explicitly check that binutils tools are available. This should catch issues like: #6358 (comment) * Abort build if any obsolete stdlib backports are installed. Most prominently, check for `enum34` - the backport of `enum` - which masks the stdlib variant causing issues like #5728. Co-authored-by: Jasper Harrison <legorooj@protonmail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description of the issue
When building on Ubuntu 18.04 using the Deadsnakes PPA to allow for usage of Python 3.9, Pyinstaller fails to build.
This is related to #5669, as one potential way to use newer Python versions targeting an older GLIBC (without needing to build Python from source).
Context information (for bug reports)
Output of
pyinstaller --version
: 4.6Version of Python: 3.9.7
Platform:
ubuntu:18.04
Docker ImageHow you installed Python: Deadsnakes PPA
Did you also try this on another platform? Does it work there?
try the latest development version, using the following command:
(https://github.com/pyinstaller/pyinstaller/wiki/If-Things-Go-Wrong) and
Make sure everything is packaged correctly
--noupx
or setupx=False
in your .spec-file--debug
topyi-makespec
orpyinstaller
or useEXE(..., debug=1, ...)
in your .spec file.A minimal example program which shows the error
Note, how to install
pip
for Deadsnakes: https://www.youtube.com/watch?v=2Hg5-Hrsa6wStacktrace / full error message
$ docker build --no-cache .
Please also see https://github.com/pyinstaller/pyinstaller/wiki/How-to-Report-Bugs
for more about what would use to solve the issue.
The text was updated successfully, but these errors were encountered: