Skip to content
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

Installation problems on OSX #4403

Closed
AhmetCanSolak opened this issue Aug 28, 2019 · 8 comments
Closed

Installation problems on OSX #4403

AhmetCanSolak opened this issue Aug 28, 2019 · 8 comments

Comments

@AhmetCanSolak
Copy link

AhmetCanSolak commented Aug 28, 2019

I tried various ways to get pyinstaller on mac and couldn't verify installation with either way.

  1. Using conda-forge, conda install -c conda-forge pyinstaller:
    Able to install but when i try to make a bundle or even just pyinstaller --version returns this:
Traceback (most recent call last):
  File "/Users/user/anaconda3/envs/env/bin/pyinstaller", line 7, in <module>
    from PyInstaller.__main__ import run
  File "/Users/user/.local/lib/python3.6/site-packages/PyInstaller/__init__.py", line 18, in <module>
    from .utils.git import get_repo_revision
ModuleNotFoundError: No module named 'PyInstaller.utils'
  1. Using pip, pip install pyinstaller or using pip and development version, pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip:
Building wheels for collected packages: PyInstaller
  Building wheel for PyInstaller (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/user/anaconda3/envs/env/bin/python /Users/user/.local/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/4_/7bzvr3mx1_qb91k468xgk6h40000gp/T/tmp1or4n7_b
       cwd: /private/var/folders/4_/7bzvr3mx1_qb91k468xgk6h40000gp/T/pip-req-build-ydkzwne4
  Complete output (63 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/__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'
  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'
  no previously-included directories found matching 'old'
  no previously-included directories found matching '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
  copying PyInstaller/bootloader/Windows-32bit/runw.exe -> build/lib/PyInstaller/bootloader/Windows-32bit
  error: could not open 'PyInstaller/bootloader/Windows-32bit/runw.exe': Permission denied
  ----------------------------------------
  ERROR: Failed building wheel for PyInstaller
  Running setup.py clean for PyInstaller
Failed to build PyInstaller
ERROR: Could not build wheels for PyInstaller which use PEP 517 and cannot be installed directly
  1. Using brew, brew install pyinstaller:
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/pyinstaller-3.5.mojave.bottle.tar.gz
Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/75df5b3f73a5b6aab3fed8ae89544078454253115502fcfdd2a3ea2e84e45b40--pyinstaller-3.5.mojave.bottle.tar.gz
==> Pouring pyinstaller-3.5.mojave.bottle.tar.gz
cp: /var/folders/4_/7bzvr3mx1_qb91k468xgk6h40000gp/T/d20190828-4831-jvr7a9/pyinstaller/./3.5/libexec/lib/python3.7/site-packages/PyInstaller/bootloader/Windows-32bit/runw.exe: Permission denied
Error: Failure while executing; `cp -pR /var/folders/4_/7bzvr3mx1_qb91k468xgk6h40000gp/T/d20190828-4831-jvr7a9/pyinstaller/. /usr/local/Cellar/pyinstaller` exited with 1. Here's the output:
cp: /var/folders/4_/7bzvr3mx1_qb91k468xgk6h40000gp/T/d20190828-4831-jvr7a9/pyinstaller/./3.5/libexec/lib/python3.7/site-packages/PyInstaller/bootloader/Windows-32bit/runw.exe: Permission denied

Warning: Bottle installation failed: building from source.
==> Downloading https://files.pythonhosted.org/packages/e2/c9/0b44b2ea87ba36395483a672fddd07e6a9cb2b8d3c4a28d7ae76c7e7e1e5/PyInstaller-3.5.tar.gz
Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/96d214ff95dea53b45211fa19b6642a950ec52ac6c7854f9cf5c8985c305936e--PyInstaller-3.5.tar.gz
cp: /private/tmp/d20190828-5434-13zb4bm/PyInstaller-3.5/./PyInstaller/bootloader/Windows-32bit/runw.exe: Permission denied
Error: Failure while executing; `cp -pR /private/tmp/d20190828-5434-13zb4bm/PyInstaller-3.5/. /private/tmp/pyinstaller-20190828-5434-l745nb/PyInstaller-3.5` exited with 1. Here's the output:
cp: /private/tmp/d20190828-5434-13zb4bm/PyInstaller-3.5/./PyInstaller/bootloader/Windows-32bit/runw.exe: Permission denied

any suggestions?

@AhmetCanSolak
Copy link
Author

I tried various ways to get pyinstaller on mac and couldn't verify installation with either way.

  1. Using conda-forge, conda install -c conda-forge pyinstaller:
    Able to install but when i try to make a bundle or even just pyinstaller --version returns this:
Traceback (most recent call last):
  File "/Users/user/anaconda3/envs/env/bin/pyinstaller", line 7, in <module>
    from PyInstaller.__main__ import run
  File "/Users/user/.local/lib/python3.6/site-packages/PyInstaller/__init__.py", line 18, in <module>
    from .utils.git import get_repo_revision
ModuleNotFoundError: No module named 'PyInstaller.utils'

Observed that this is happening with py3.6.

  1. Using pip, pip install pyinstaller or using pip and development version, pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip:
Building wheels for collected packages: PyInstaller
  Building wheel for PyInstaller (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/user/anaconda3/envs/env/bin/python /Users/user/.local/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/4_/7bzvr3mx1_qb91k468xgk6h40000gp/T/tmp1or4n7_b
       cwd: /private/var/folders/4_/7bzvr3mx1_qb91k468xgk6h40000gp/T/pip-req-build-ydkzwne4
  Complete output (63 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/__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'
  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'
  no previously-included directories found matching 'old'
  no previously-included directories found matching '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
  copying PyInstaller/bootloader/Windows-32bit/runw.exe -> build/lib/PyInstaller/bootloader/Windows-32bit
  error: could not open 'PyInstaller/bootloader/Windows-32bit/runw.exe': Permission denied
  ----------------------------------------
  ERROR: Failed building wheel for PyInstaller
  Running setup.py clean for PyInstaller
Failed to build PyInstaller
ERROR: Could not build wheels for PyInstaller which use PEP 517 and cannot be installed directly
  1. Using brew, brew install pyinstaller:
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/pyinstaller-3.5.mojave.bottle.tar.gz
Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/75df5b3f73a5b6aab3fed8ae89544078454253115502fcfdd2a3ea2e84e45b40--pyinstaller-3.5.mojave.bottle.tar.gz
==> Pouring pyinstaller-3.5.mojave.bottle.tar.gz
cp: /var/folders/4_/7bzvr3mx1_qb91k468xgk6h40000gp/T/d20190828-4831-jvr7a9/pyinstaller/./3.5/libexec/lib/python3.7/site-packages/PyInstaller/bootloader/Windows-32bit/runw.exe: Permission denied
Error: Failure while executing; `cp -pR /var/folders/4_/7bzvr3mx1_qb91k468xgk6h40000gp/T/d20190828-4831-jvr7a9/pyinstaller/. /usr/local/Cellar/pyinstaller` exited with 1. Here's the output:
cp: /var/folders/4_/7bzvr3mx1_qb91k468xgk6h40000gp/T/d20190828-4831-jvr7a9/pyinstaller/./3.5/libexec/lib/python3.7/site-packages/PyInstaller/bootloader/Windows-32bit/runw.exe: Permission denied

Warning: Bottle installation failed: building from source.
==> Downloading https://files.pythonhosted.org/packages/e2/c9/0b44b2ea87ba36395483a672fddd07e6a9cb2b8d3c4a28d7ae76c7e7e1e5/PyInstaller-3.5.tar.gz
Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/96d214ff95dea53b45211fa19b6642a950ec52ac6c7854f9cf5c8985c305936e--PyInstaller-3.5.tar.gz
cp: /private/tmp/d20190828-5434-13zb4bm/PyInstaller-3.5/./PyInstaller/bootloader/Windows-32bit/runw.exe: Permission denied
Error: Failure while executing; `cp -pR /private/tmp/d20190828-5434-13zb4bm/PyInstaller-3.5/. /private/tmp/pyinstaller-20190828-5434-l745nb/PyInstaller-3.5` exited with 1. Here's the output:
cp: /private/tmp/d20190828-5434-13zb4bm/PyInstaller-3.5/./PyInstaller/bootloader/Windows-32bit/runw.exe: Permission denied

any suggestions?

Observed no installation problem with pyinstaller 3.4

@atvKumar
Copy link

atvKumar commented Sep 5, 2019

I usually git clone the dev branch and install vanilla style, no homebrew and conda. So far everything worked for me.

@AhmetCanSolak

This comment has been minimized.

@atvKumar

This comment has been minimized.

@AhmetCanSolak
Copy link
Author

Thank you for quick reply @atvKumar . You are right, i only face the problem with pyinstaller3.5 in a python3.6 conda env. Other than that seems fine.

@atvKumar
Copy link

atvKumar commented Sep 9, 2019

Please close the issue.
You are welcome

@AhmetCanSolak
Copy link
Author

Should we close? Readme says it is tested with py3.6 and conda is such major way to get python. I would love to see it works with it.

@htgoebel
Copy link
Member

@AhmetCanSolak This only fails with conda and ony with specific versions. Thus this is a Conda issue IMHO. Please get in tough with code then to fix it. They take money. so their should do the work.

If you want me to solve this, please fund debugging and fixing.http://www.pyinstaller.org/funding

SomberNight added a commit to SomberNight/electrum that referenced this issue Jan 12, 2021
Had to also bump ubuntu version 18.04->20.04,
as was getting errors running the self-compiled pyinstaller otherwise (weird...):

```
from .utils.git import get_repo_revision
ModuleNotFoundError: No module named 'PyInstaller.utils'
```
(similar to pyinstaller/pyinstaller#4403 )

-----

Note re appimage: when trying to compile python 3.8.x on ubuntu 16.04, I am getting:

./Modules/posixmodule.c: In function ‘os_copy_file_range_impl’:
./Modules/posixmodule.c:10351:15: error: implicit declaration of function ‘copy_file_range’ [-Werror=implicit-function-declaration]
         ret = copy_file_range(src, p_offset_src, dst, p_offset_dst, count, flags);

This is because ubuntu 16.04 has too old glibc.
JeremyRand pushed a commit to namecoin/electrum-nmc that referenced this issue May 7, 2021
Had to also bump ubuntu version 18.04->20.04,
as was getting errors running the self-compiled pyinstaller otherwise (weird...):

```
from .utils.git import get_repo_revision
ModuleNotFoundError: No module named 'PyInstaller.utils'
```
(similar to pyinstaller/pyinstaller#4403 )

-----

Note re appimage: when trying to compile python 3.8.x on ubuntu 16.04, I am getting:

./Modules/posixmodule.c: In function ‘os_copy_file_range_impl’:
./Modules/posixmodule.c:10351:15: error: implicit declaration of function ‘copy_file_range’ [-Werror=implicit-function-declaration]
         ret = copy_file_range(src, p_offset_src, dst, p_offset_dst, count, flags);

This is because ubuntu 16.04 has too old glibc.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants