Closed hasegaw closed 8 years ago
I can't understand what cause the error. But I found similar issue. http://stackoverflow.com/questions/28433559/pandas-py2exe-error-parent-module-not-loaded-cannot-perform-relative-impo
Removing "bundle_files" option may fix the issue.
close issue, since no reply for a long time.
I'm having the same issue. I'm not sure if this is a py2exe issue either but I was able to resolve it. This post helped: http://stackoverflow.com/questions/16981921/relative-imports-in-python-3
My environment: Python 3.4.4 on Windows py2exe 0.9.2.2 msgpack-python 0.4.8
In my msgpack installation files, instead of importing _version.py and exceptions.py in init.py and fallback.py, I placed the contents directly in these files (there is not much to copy/paste). So, as an example, change: from msgpack._version import version to: version = (0, 4, 8)
Then, right before building the executable with py2exe: set MSGPACK_PUREPYTHON=1
I'm then able to use bundle_files set to 1 in my py2exe setup script. Hopefully, this helps someone else!
I don't use py2exe. Your information doesn't help me. Please post the information to somewhere else, like py2exe ML.
I lock this issue to prevent noise (I receive dozen notify from github). Please file a new issue if you know clearly know what msgpack should do.
I noticed Py2EXE'd application will crash at importing msgpack.
Actually I'm still new to Python and I haven't isolated the issue perfectly. It may be an issue of Py2EXE zipimporter side, or msgpack-python.
Here is the minimum script and command line to repro the issue: https://gist.github.com/hasegaw/5bce303f5fca02140d86
Environment: