File not found on exe (Mac)

19 views
Skip to first unread message

Benjamin Juarez

unread,
Oct 4, 2021, 4:00:30 PM10/4/21
to PyInstaller
I'm getting an error when I click to open my exe file. It tries to execute the script, but it errors out printing something like:

no such file or directory: Users/testUser/Projects/Python/WebScrapers/dist/scraperTest.py

When I open a new Terminal window, and add a "/" before "Users", it works.

Any way I can force the "/" when executing the file by clicking on the exe?

Thanks in advance!

Ben

Benjamin Juarez

unread,
Oct 5, 2021, 6:09:19 AM10/5/21
to PyInstaller
I found the problem.

It turns out the exec file won't run if you are getting the compinit warning when you open up the terminal. I fixed that by running chmod g-w,o-w <folder> on folders that showed up when I ran compaudit.

Now, to find why the .app isn't running when I double click it...
Reply all
Reply to author
Forward
0 new messages