Closed skycaptain closed 9 years ago
Any updates/pointers on this issue? I encounter the same problem on pandas 0.15.1 and python 3.3.5 with essentially the same traceback while using the latest version of cx_freeze.
maybe make sure you have latests cython/numpy
no idea how these apps work - you should ask on their ml
I've installed all numpy, cython and pandas via git on their master branches. Sadly the issue still exists. I've also diffed the pandas 0.14.1 and 0.15 branch, to see what changes may interfere with py2app. But i wasn't lucky yet. i'm really starting to think that this issue related to the way pandas is build, which is more complex in combination with the build tools provided by py2app.
Update: I've traced down this issue to commit 84404afc6eec53e3d31ee9298cecf2b3c2de1d8c. before that commit everything worked fine. obviously this was the time tslib.pyx started to import pandas.algos as algos
. every other change looks harmless.
Granted, my Cython knowledge is not amazing, but I'm guessing this is the problem - https://groups.google.com/forum/#!msg/cython-users/MDyJdhbYL_8/MLlG790pRLUJ
The reason why you would get the above error is that you are trying to cimport things (my guess is functions) from another module (and Cython finds them declared in a .pxd file at compile time), but that module doesn't actually export a C-API, so it can't import them at runtime.
Looking around, it seems like this is a bit complex. Given that it's duplicating 4 lines between files, anybody mind just reverting that one portion to make this work everywhere?
@skycaptain if you want to try to build from this PR #8830 and see if that fixes the issue
@jreback as far as my venv is not lying or i did sth wrong, your pr fixed the issue for my given example. i will merge your pr with my recent project and report back by tomorrow.
haha
ok lmk and we can put this in the next release
@jreback had to update und merge the project anyway. as far as i can tell the app starts and works as expected. thank you!
closed by #8830
I'm deploying an PyQt(5.3.2) application using py2app. Everything works fine with 0.14.1, 0.15.0 fails at importing. As an example one can take the following
main.py
:and use the default
setup.py
:and run
python3 setup.py py2app
to build the .app and then start the application (Please note the example can only be runned via Terminal, since it lacks a GUI)In both Python 2.7.8 and 3.4.2 the .app builds fine but fails on 3.4.2 to start and dumps (stripped to the helpful parts):
If the example would run as expected it would print (again stripped):