Has anyone had success with this?

This is what I'm encountering.

Here i printed the sys.path, why does this include modules local to the machine? I want it to be independent of any local resources?

8/7/08 2:22:55 PM ['/Users/xkenneth/work/mwdconfig/tkpyro/dist/ MWDConfig.app/Contents/Resources', '/Users/xkenneth/work/mwdconfig/ tkpyro/dist/MWDConfig.app/Contents/Resources', '/System/Library/ Frameworks/Python.framework/Versions/2.5/lib/python25.zip', '/System/ Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', '/ System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/ 2.5/lib/python2.5/plat-mac', '/System/Library/Frameworks/ Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib- scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/ 2.5/Extras/lib/python', '/System/Library/Frameworks/Python.framework/ Versions/2.5/lib/python2.5/lib-tk', '/System/Library/Frameworks/ Python.framework/Versions/2.5/lib/python2.5/lib-dynload', '/Users/ xkenneth/work/mwdconfig/tkpyro/dist/MWDConfig.app/Contents/Resources/ lib/python2.5/site-packages.zip', '/Users/xkenneth/work/mwdconfig/ tkpyro/dist/MWDConfig.app/Contents/Resources/Python/site-packages'] [0x0-0x59059].org.pythonmac.unspecified.MWDConfig[1483]

Here's the traceback of the error.

8/7/08 2:22:55 PM Traceback (most recent call last): [0x0-0x59059].org.pythonmac.unspecified.MWDConfig[1483] 8/7/08 2:22:55 PM File "/Users/xkenneth/work/mwdconfig/tkpyro/dist/ MWDConfig.app/Contents/Resources/__boot__.py", line 31, in <module> [0x0-0x59059].org.pythonmac.unspecified.MWDConfig[1483] 8/7/08 2:22:55 PM _run('main.py') [0x0-0x59059].org.pythonmac.unspecified.MWDConfig[1483] 8/7/08 2:22:55 PM File "/Users/xkenneth/work/mwdconfig/tkpyro/dist/ MWDConfig.app/Contents/Resources/__boot__.py", line 28, in _run [0x0-0x59059].org.pythonmac.unspecified.MWDConfig[1483] 8/7/08 2:22:55 PM execfile(path, globals(), globals()) [0x0-0x59059].org.pythonmac.unspecified.MWDConfig[1483] 8/7/08 2:22:55 PM File "/Users/xkenneth/work/mwdconfig/tkpyro/dist/ MWDConfig.app/Contents/Resources/main.py", line 3, in <module> [0x0-0x59059].org.pythonmac.unspecified.MWDConfig[1483] 8/7/08 2:22:55 PM from tkpyro import run [0x0-0x59059].org.pythonmac.unspecified.MWDConfig[1483] 8/7/08 2:22:55 PM File "tkpyro/__init__.pyc", line 2, in <module> [0x0-0x59059].org.pythonmac.unspecified.MWDConfig[1483] 8/7/08 2:22:55 PM File "lxml/etree.pyc", line 18, in <module> [0x0-0x59059].org.pythonmac.unspecified.MWDConfig[1483] 8/7/08 2:22:55 PM File "lxml/etree.pyc", line 15, in __load [0x0-0x59059].org.pythonmac.unspecified.MWDConfig[1483] 8/7/08 2:22:55 PM ImportError: '/System/Library/Frameworks/ Python.framework/Versions/2.5/lib/python2.5/lib-dynload/lxml/etree.so' not found [0x0-0x59059].org.pythonmac.unspecified.MWDConfig[1483]
8/7/08 2:22:55 PM MWDConfig Error MWDConfig[1483]
8/7/08 2:22:55 PM MWDConfig Error
An unexpected error has occurred during execution of the main script

ImportError: '/System/Library/Frameworks/Python.framework/Versions/2.5/ lib/python2.5/lib-dynload/lxml/etree.so' not found
 MWDConfig[1483]


So it's looking for etree.so here:
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ lib-dynload/lxml/etree.so

But it exists here in the app:
./Contents/Resources/lib/python2.5/lib-dynload/lxml

Note:
I'm using __import__ in certain sections of my code, but it's choking before it gets to this.

Anyone have any ideas?

Regards,
Ken



_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to