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! |
From: Ron S. <rd...@ma...> - 2006-07-30 17:05:43
|
Brad, i hope you have already solved this problem. I use PythonCard don Mac also. The key for me is to make sure that the correct wxPython is installed directly in my site-packages directory of the version of Python I am using and that PythonCard is installed in that same site- packages directory. Still, if that isn't enough, you might need to install a clean Python, wxPython, PythonCard setup. That always seems to work. Once your installation is working, PythonCard is flawless son the Mac. By the way, I just did a brief PythonCard podcast, including using Kevin's PyCon 2005 talk on Python411 at www.awaretek.com/python/ index.html Ron On Jul 24, 2006, at 2:39 PM, Brad Allen wrote: > 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! > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users |
From: Alex T. <al...@tw...> - 2006-07-30 17:58:08
|
Ron Stephens wrote: >Brad, > >i hope you have already solved this problem. I use PythonCard don Mac >also. The key for me is to make sure that the correct wxPython is >installed directly in my site-packages directory of the version of >Python I am using and that PythonCard is installed in that same site- >packages directory. Still, if that isn't enough, you might need to >install a clean Python, wxPython, PythonCard setup. That always seems >to work. Once your installation is working, PythonCard is flawless >son the Mac. > > > >By the way, I just did a brief PythonCard podcast, including using >Kevin's PyCon 2005 talk on Python411 at www.awaretek.com/python/ >index.html > > > I wrote to Brad off-list, and we got his problem fixed (he had an earlier version of PythonCard checked out from CVS, and it came earlier in his sys.path, so was being used in preference to his regular PythonCard install). Sorry, we should have reported back to the list so that solution was available to others. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.4/399 - Release Date: 25/07/2006 |