I was previously running Python 3.7 from MacPorts with Pyinstaller 4.0 from 
pypi and this was working fine.  But after reading about Tkinter and Cocoa, 
I decided to wipe that away and install Python 3.7 from python.org instead. 
 Now Pyinstaller isn't working.  This is probably due to some configuration 
issue with my paths, but I would appreciate any advice.  I've removed all 
references to MacPorts Python that I can think of.

Inside a new venv I run
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

I make a very simple python script called bonk.py with just a single print 
statement.  Pyinstaller packages with no errors in onedir mode.  Here is 
the error when I try to run it:

$ ./dist/bonk/bonk 
[2616] Error loading Python lib 
'/Users/elliott/source/test1/dist/bonk/Python': dlopen: 
dlopen(/Users/elliott/source/test1/dist/bonk/Python, 10): no suitable image 
found.  Did find:
/Users/elliott/source/test1/dist/bonk/Python: code signature invalid for 
'/Users/elliott/source/test1/dist/bonk/Python'

There seems to be something wrong with the binary:
$ ./dist/bonk/Python 
-bash: ./dist/bonk/Python: cannot execute binary file

Some more details:
$ which python
/Users/elliott/source/test1/env/bin/python
$ python --version
Python 3.7.9


-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/57130da0-be33-49fd-952a-2bbc7f3d7f9en%40googlegroups.com.

Reply via email to