


Ed,
One thing to check is how many copies pyinstaller you have and where they are. As Mac is case sensitive it is entirely possible that you have a pyinstaller and a Pyinstaller. The command `which -a pyinstaller Pyinstaller PyInstaller` should give you the path(s) to all of them.
You can also check:
Pyinstaller –version
pyinstaller –version
To see if they are both the same version number.
Hope that will help.
Steve
From: pyins...@googlegroups.com <pyins...@googlegroups.com>
On Behalf Of Ed May
Sent: Thursday, July 6, 2023 6:00 PM
To: PyInstaller <pyins...@googlegroups.com>
Subject: [PyInstaller] 'PyInstaller' works, but 'pyinstaller' does not?
Hi, I am finding a weird bug (maybe?) and wondering what I am doing wrong, or if this is how PyInstaller is supposed to work?
- - -
Environment:
- MacOS Monterey, v12.5,1
- MacBook M1 2021 (ARM)
- - -
Building a super simple PyQt6 app just to test and understand the process. Everything works when run from my terminal when in development.

- - -
When I go to use PyInstaller to build the app, if I run "pyinstaller app.py" from the terminal I do get a successful build, but if I then try and run the app I get a "segmentation fault" error right away:

- - -
However, if I instead run "PyInstaller app.py" (uppercase instead of all lowercase), then I get a successful build and then the app runs as expected with no errors:

- - -
- Is that the expected behavior?
- Should I be using "PyInstaller" instead of "pyinstaller" during all my builds? Following all the tutorials it seems the lower-case is the preferred for some reason?
- Is there something else I am doing wrong here that is causing the error?
- What would the difference between the upper-case and lower-case commands be?
I wonder if anyone has run into this type of behavior before?
thanks,
-Ed
--
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
pyinstaller...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/ff08ef37-6e24-4d58-ac81-1fb3b51d30ffn%40googlegroups.com.
Actually the clue is in the screenshots:

Verses:

So one of your builds is using Python 3.10.7+PyInstaller 4.10 and the other is using Python 3.11.0+PyInstaller 5.13.0 (for some reason with a framework of 3.10 which is worrying.
All the best,
Steve
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/DU0P194MB1819562B5302CB2AB93956C09B2CA%40DU0P194MB1819.EURP194.PROD.OUTLOOK.COM.
The executable is called pyinstaller (all lower case). macOS (and Windows) use case-insensitive file systems so I’d have thought that they’d be interchangeable but evidently not. Irregardless, you’ve got two different versions of PyInstaller there. If you run which PyInstaller, that should tell you where this mysterious PyInstaller command is coming from. As to why it’s segfaulting, it’s hard to tell because it could be a genuine segfault or it could be nonsense like macOS’s gatekeeper getting in the way. You could try pyinstaller --debug=all app.py then share the output of the application running (please copy/paste from the terminal instead of screenshotting) although my hopes aren’t high.
In [18]: list(here.iterdir())
Out[18]: [PosixPath('That'), PosixPath('this')]
In [19]: f = open('that')
In [20]: f
Out[20]: <_io.TextIOWrapper name='that' mode='r' encoding='UTF-8'>
In [21]: list(here.iterdir())
Out[21]: [PosixPath('That'), PosixPath('this')]
--
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 pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/ff08ef37-6e24-4d58-ac81-1fb3b51d30ffn%40googlegroups.com.
It turns out that segfaulting on macOS with PyQt6==6.5.1 is a known issue. It was fixed in e3ad7c71c7f8acd79e73ae2ca13db18ecfc354d1 but that hasn’t been released yet so for now I suggest using pip install pyqt6==6.5 pyqt6-qt6==6.5.