scipy recipe not in path

Issue #42 resolved
created an issue

There is a bug in 0.6.4 with scipy recipe (dont know if it affects others as well)

App builds fine, but fails to find ANY packages outside of file and dies on import error. The solution is following:

In add this line below line " sys.frozen = 'macosx_app' "

sys.path = [os.path.join(os.environ['RESOURCEPATH'], 'lib', 'python2.7', 'lib-dynload')] + sys.path + [os.path.join(os.environ['RESOURCEPATH'], 'lib', 'python2.7', 'scipy')] + [os.path.join(os.environ['RESOURCEPATH'], 'lib', 'python2.7')]

The first is for PyQt to work, second is for scipy explicitely, last one is for any other packages that might be included...I saw this (the PyQt issue) repored on some web page out there

Bug is present on Mac OS 10.7 (stock apple python2.7) + py2app 0.6.4

Comments (3)

  1. Log in to comment