From: Brad A. <bra...@ma...> - 2006-07-24 18:40:02
|
I've gotten back into trying to get my PythonCard app to run on Mac, and find myself getting stuck on launching resourceEditor.py or layoutEditory.py. The problem seems like it should be easy to solve; I must be missing something obvious. I installed PythonCard .82 using "sudo python setup.py" install, where Python is the built-in Python 2.3.5 bundled with Mac OS 10.4.x (Tiger). I have wxPython 2.6.3 installed but PythonCard seems to ignore it and use the 2.5.3 bundled version of wx. The problem seems to be with importing the module "helpful" within PythonCard. Here is the transcript: -=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- oms-ballen:/Library/Python/2.3/site-packages/PythonCard/tools/resourceEditor ballen$ pythonw resourceEditor.py wx.PlatformInfo: ('__WXMAC__', 'wxMac', 'unicode', 'wx-assertions-on') wx.VERSION: (2, 5, 3, 1, '') Traceback (most recent call last): File "resourceEditor.py", line 20, in ? from modules import backgroundInfoDialog File "/Library/Python/2.3/site-packages/PythonCard/tools/resourceEditor/modules/backgroundInfoDialog.py", line 7, in ? from PythonCard import dialog, model, util, helpful ImportError: cannot import name helpful oms-ballen:/Library/Python/2.3/site-packages/PythonCard/tools/resourceEditor ballen$ python Python 2.3.5 (#1, Oct 5 2005, 11:07:27) [GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import PythonCard >>> import PythonCard.model wx.PlatformInfo: ('__WXMAC__', 'wxMac', 'unicode', 'wx-assertions-on') wx.VERSION: (2, 5, 3, 1, '') >>> import PythonCard.helpful Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named helpful >>> ^D -=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- If I change directory to the "site-packages", I can import PythonCard.helpful. However, I still can't launch resourceEditor.py or layoutEditor.py oms-ballen:/Library/Python/2.3/site-packages/PythonCard/tools/resourceEditor ballen$ cd ../.. oms-ballen:/Library/Python/2.3/site-packages/PythonCard ballen$ cd .. oms-ballen:/Library/Python/2.3/site-packages ballen$ python Python 2.3.5 (#1, Oct 5 2005, 11:07:27) [GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import PythonCard.helpful >>> ^D -=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Thanks for any help you provide on this! |