Open HNT1807 opened 1 year ago
It looks like your application is not Universal 2 after all, the numpy extension (which is a library used by pandas) is not compatible according to the end of the error message, and likely is only compatible with arm64.
That, sadly, is not easy to fix because numpy only ships single-architecture wheels.
The easiest workaround is likely to create an x86_64 app and rely on the M1's intel emulation for users with M1 systems. To do this (untested):
I'm slowly working on rewriting py2app to, amongst others, make it easier to add reporting for issues like this and might add a helper project to make it possible to convert an existing single-architecture installation into a Universal 2 one for projects like numpy that only ship single-architecture wheels.
UPDATE: For subset of projects it is possible to build Universal 2 wheels yourself, but that's not easy for a lot of the more interesting projects like numpy due to their 3th-party dependencies.
Thank you for your help!
Also, when I use Tkinter, I have to manually import the tcl8, tcl8.6, and tk8.6 lib folders in my PyCharm project otherwise py2app won't add them in the app. Is there a way to do that automatically?
Did you ever find a solution? I'm having the same issue
Hello! Thank you for your help and for your patience with me, I did try to find the answer myself by searching for many hours on the web but I'm still getting "Launch Error" when I use a different computer.
Because the app works great on my computer, I feel like the issue is related to the modules.
1) I tried to add the modules directly inside the app once it was created but then it tells me that my app is damaged 2) I tried using "includes" and "packages" separately and together but it still doesn't work 3) I tried adding executable_stub = link to my .dylib python file > it says "Unknown distribution option" 4) I'm on M1 and I'm trying to see if the app works on my other computer on Intel > It seems that my app is universal:
Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64
Here are the modules that I'm using:
Here is my setup.py in its current state:
UPDATE: By running it in the terminal, it says "Unable to import required dependencies: numpy". I don't even know what that is...but I made sure that I have the last version of this thing installed and it's still not working... It looks like the module Pandas is messing things up??