upiterbarg / mpmath

Automatically exported from code.google.com/p/mpmath
Other
0 stars 0 forks source link

py2app mpmath error #223

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a stand-alone app calling mpmath using py2app (mpmath 0.17 and python 
2.7)
2. When functions calling mpmath are used in the built app, receive the error:

"File "mpmath/functions/__init__.pyc", line 1, in <module>
ImportError: cannot import name functions". 

If you then look in the py2app frozen executable (show package contents) and 
extract site-packages.zip, mpmath/functions, only rszeta.pyc, functions.pyc and 
__init__.pyc are there.

mpmath works fine when run from the source code script calling it, not sure why 
py2app would specifically exclude these files. Any ideas?

Original issue reported on code.google.com by nsalomo...@gmail.com on 29 Mar 2012 at 5:36