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
can't open library: /Library/Frameworks/Python 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
/Library/Frameworks/Python
/Users/mayu/Desktop/dist_win
------- 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 localhost - - [01/Nov/2005 13:00:05] command: /Users/mayu/Desktop/dist_win -u /Users/mayu/Desktop/dist_win "" localhost - - [01/Nov/2005 13:00:06] dyld: /Users/mayu/Desktop/dist_win can't open library: /Library/Frameworks/Python 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