-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Description of the issue
pip install pyinstaller==4.2 fails with
error: could not open 'PyInstaller/bootloader/Windows-32bit/run_d.exe': Operation not permitted
----------------------------------------
ERROR: Failed building wheel for pyinstaller
Failed to build pyinstaller
ERROR: Could not build wheels for pyinstaller which use PEP 517 and cannot be installed directly
Context information (for bug reports)
-
Output of
pyinstaller --version: N/A -
Version of Python: 3.9
-
Platform: OS X
-
Did you also try this on another platform? It worked on Arch Linux with python 3.9
-
try the latest development version, using the following command:
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zipLatest development version failed with the same issue
- follow all the instructions in our "If Things Go Wrong" Guide
(https://github.com/pyinstaller/pyinstaller/wiki/If-Things-Go-Wrong) and
Make sure everything is packaged correctly
- [ X] start with clean installation
- [ X] use the latest development version
- Run your frozen program from a command window (shell) — instead of double-clicking on it
- Package your program in --onedir mode
- Package without UPX, say: use the option
--noupxor setupx=Falsein your .spec-file - Repackage you application in verbose/debug mode. For this, pass the option
--debugtopyi-makespecorpyinstalleror useEXE(..., debug=1, ...)in your .spec file.
A minimal example program which shows the error
python3 -m venv blah
cd blah
./bin/pip install pyinstaller==4.0
Stacktrace / full error message
→ ./bin/pip install pyinstaller==4.2
Collecting pyinstaller==4.2
Using cached pyinstaller-4.2.tar.gz (3.6 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: altgraph in ./lib/python3.9/site-packages (from pyinstaller==4.2) (0.17)
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in ./lib/python3.9/site-packages (from pyinstaller==4.2) (2020.11)
Requirement already satisfied: macholib>=1.8 in ./lib/python3.9/site-packages (from pyinstaller==4.2) (1.14)
Requirement already satisfied: setuptools in ./lib/python3.9/site-packages (from pyinstaller==4.2) (51.1.1)
Building wheels for collected packages: pyinstaller
Building wheel for pyinstaller (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /Users/jacob.donofrio/tmp/blah/bin/python3 /Users/jacob.donofrio/tmp/blah/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/zf/slsp4j9n01b3m15jkq9gzhhr0000gp/T/tmpg4l1fhli
cwd: /private/var/folders/zf/slsp4j9n01b3m15jkq9gzhhr0000gp/T/pip-install-cyb459li/pyinstaller_28e2c7ef63964a8e9d878f732d522b0d
Complete output (67 lines):
running bdist_wheel
running build
running build_bootloader
running build_py
creating build
creating build/lib
creating build/lib/PyInstaller
copying PyInstaller/config.py -> build/lib/PyInstaller
copying PyInstaller/compat.py -> build/lib/PyInstaller
copying PyInstaller/configure.py -> build/lib/PyInstaller
copying PyInstaller/log.py -> build/lib/PyInstaller
copying PyInstaller/__init__.py -> build/lib/PyInstaller
copying PyInstaller/exceptions.py -> build/lib/PyInstaller
copying PyInstaller/_recursion_to_deep_message.py -> build/lib/PyInstaller
copying PyInstaller/__main__.py -> build/lib/PyInstaller
running egg_info
writing pyinstaller.egg-info/PKG-INFO
writing dependency_links to pyinstaller.egg-info/dependency_links.txt
writing entry points to pyinstaller.egg-info/entry_points.txt
writing requirements to pyinstaller.egg-info/requires.txt
writing top-level names to pyinstaller.egg-info/top_level.txt
reading manifest file 'pyinstaller.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'pyinstaller-gui.py'
no previously-included directories found matching 'bootloader/build'
no previously-included directories found matching 'bootloader/.waf-*'
no previously-included directories found matching 'bootloader/.waf3-*'
no previously-included directories found matching 'bootloader/waf-*'
no previously-included directories found matching 'bootloader/waf3-*'
no previously-included directories found matching 'bootloader/_sdks'
no previously-included directories found matching 'bootloader/.vagrant'
warning: no previously-included files found matching 'bootloader/.lock-waf*'
no previously-included directories found matching 'doc/source'
no previously-included directories found matching 'doc/_build'
warning: no previously-included files matching '*.tmp' found under directory 'doc'
warning: no files found matching 'news/_template.rst'
no previously-included directories found matching 'news'
no previously-included directories found matching 'old'
no previously-included directories found matching 'scripts'
no previously-included directories found matching 'tests/scripts'
no previously-included directories found matching '.github'
warning: no previously-included files found matching '.*'
warning: no previously-included files found matching '*.yml'
warning: no previously-included files found matching '*~'
warning: no previously-included files found matching '.directory'
writing manifest file 'pyinstaller.egg-info/SOURCES.txt'
creating build/lib/PyInstaller/archive
copying PyInstaller/archive/__init__.py -> build/lib/PyInstaller/archive
copying PyInstaller/archive/pyz_crypto.py -> build/lib/PyInstaller/archive
copying PyInstaller/archive/readers.py -> build/lib/PyInstaller/archive
copying PyInstaller/archive/writers.py -> build/lib/PyInstaller/archive
creating build/lib/PyInstaller/bootloader
creating build/lib/PyInstaller/bootloader/Darwin-64bit
copying PyInstaller/bootloader/Darwin-64bit/run -> build/lib/PyInstaller/bootloader/Darwin-64bit
copying PyInstaller/bootloader/Darwin-64bit/run_d -> build/lib/PyInstaller/bootloader/Darwin-64bit
copying PyInstaller/bootloader/Darwin-64bit/runw -> build/lib/PyInstaller/bootloader/Darwin-64bit
copying PyInstaller/bootloader/Darwin-64bit/runw_d -> build/lib/PyInstaller/bootloader/Darwin-64bit
creating build/lib/PyInstaller/bootloader/Linux-32bit
copying PyInstaller/bootloader/Linux-32bit/run -> build/lib/PyInstaller/bootloader/Linux-32bit
copying PyInstaller/bootloader/Linux-32bit/run_d -> build/lib/PyInstaller/bootloader/Linux-32bit
creating build/lib/PyInstaller/bootloader/Linux-64bit
copying PyInstaller/bootloader/Linux-64bit/run -> build/lib/PyInstaller/bootloader/Linux-64bit
copying PyInstaller/bootloader/Linux-64bit/run_d -> build/lib/PyInstaller/bootloader/Linux-64bit
creating build/lib/PyInstaller/bootloader/Windows-32bit
copying PyInstaller/bootloader/Windows-32bit/run.exe -> build/lib/PyInstaller/bootloader/Windows-32bit
copying PyInstaller/bootloader/Windows-32bit/run_d.exe -> build/lib/PyInstaller/bootloader/Windows-32bit
error: could not open 'PyInstaller/bootloader/Windows-32bit/run_d.exe': Operation not permitted
----------------------------------------
ERROR: Failed building wheel for pyinstaller
Failed to build pyinstaller
ERROR: Could not build wheels for pyinstaller which use PEP 517 and cannot be installed directly
Please also see https://github.com/pyinstaller/pyinstaller/wiki/How-to-Report-Bugs
for more about what would use to solve the issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels