I created a python cgi-server, and generate web pages with python.  After getting past the main mac issues, I'm down to the last 1, a stand-alone app.  My "py2app" generated app works, except that it is looking at the installed python for something.  I didn't notice until I tried on a mac without python, and after renaming the folder where I have python installed. 
 
here's my error:
localhost - - [01/Nov/2005 13:00:06] dyld: /Users/mayu/Desktop/dist_win_10_25_05/webdemo.app/Contents/Frameworks/Python.framework/Versions/2.4/bin/python
can't open library: /Library/Frameworks/Python.framework/Versions/2.4/Python  (No such file or directory, errno = 2)
 
The library it's trying to open is the version installed locally, when it should be looking at the library inside "webdemo.app".  Most likly a path problem.
My guess is that I can fix this by modifying my py2app setup script, but don't understand how.
Any help would be great.
 
 
Below is the rest of my setup and errors:
------ file info ------
    "webdemo.app" - the cgi web-server
    cgi-bin/test_real3.py - generates html page
    /Library/Frameworks/Python.framework - this is the locally installed python
    /Users/mayu/Desktop/dist_win_10_25_05/ - this is where the py2app generated mac app is located 
 
------- my simple setup script for py2app ----------
# setup.py
from distutils.core import setup
import py2app
setup(app=["webdemo.py"])
 
------- full list of console messages ----------
serving at port 1770
localhost - - [01/Nov/2005 13:00:05] "GET /cgi-bin/test_real3.py HTTP/1.1" 200 -
localhost - - [01/Nov/2005 13:00:05] Trying to execute scriptfile
/Users/mayu/Desktop/dist_win_10_25_05/webdemo.app/Contents/Resources/cgi-bin/test_real3.py
localhost - - [01/Nov/2005 13:00:05] command:
/Users/mayu/Desktop/dist_win_10_25_05/webdemo.app/Contents/Frameworks/Python.framework/Versions/2.4/bin/python
-u /Users/mayu/Desktop/dist_win_10_25_05/webdemo.app/Contents/Resources/cgi-bin/test_real3.py
""
localhost - - [01/Nov/2005 13:00:06] dyld:
/Users/mayu/Desktop/dist_win_10_25_05/webdemo.app/Contents/Frameworks/Python.framework/Versions/2.4/bin/python
can't open library:
/Library/Frameworks/Python.framework/Versions/2.4/Python  (No such
file or directory, errno = 2)
localhost - - [01/Nov/2005 13:00:06] CGI script exited OK
 
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to