[Pythonmac-SIG] wxPython -- some disappointment using it.
Louis Pecora
pecora at anvil.nrl.navy.mil
Thu Apr 13 20:38:34 CEST 2006
Alex Tweedly wrote:
>
> I'm pretty clueless about how everything (including the whole
> "framework" thing) fits together on OS X, but I'd suggest trying this ...
>
> run python, and do
>
>> import sys
>> print sys.path
>
> and see if it contains the PythonCard directory as you expect it. If
> it does, then further try
It does. Here's the print out of it:
/Users/louispecora/Code/python/test_folder
/Library/Frameworks/Python.framework/Versions/2.4/lib/python24.zip
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-darwin
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac/lib-scriptpackages
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-tk
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Numeric
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/kinds
/usr/local/bin
/Users/louispecora/Code/python/general
/Users/louispecora/Code/python/stats
/Users/louispecora/Code/python/stats/BayesProb
/Users/louispecora/Code/python/time_series
/Users/louispecora/Code/python/plotwindow
/users/louispecora/Code/python/dynamic/dynsys
/Users/louispecora/Code/python/AddedPackagesfiles
/Users/louispecora/Code/python/AddedPackagesfiles/kinds/Lib
/Users/louispecora/Code/python/AddedPackagesfiles/PythonCard-0.8.1
/Users/louispecora/Code/python/AddedPackagesfiles/PythonCard-0.8.1/build/lib
/Users/louispecora/Code/python/AddedPackagesfiles/PythonCard-0.8.1/build/lib/PythonCard
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode
You can see the PythonCard directory near the bottom.
>> import os.path
>> for d in sys.path:
>> print d, os.path.isdir(d)
> and see if that tells you anything.
Here you go:
/Users/louispecora/Code/python/test_folder True
/Library/Frameworks/Python.framework/Versions/2.4/lib/python24.zip False
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4 True
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-darwin
True
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac
True
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac/lib-scriptpackages
True
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-tk True
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload
True
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
True
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Numeric
True
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/kinds
True
/usr/local/bin True
/Users/louispecora/Code/python/general True
/Users/louispecora/Code/python/stats True
/Users/louispecora/Code/python/stats/BayesProb True
/Users/louispecora/Code/python/time_series True
/Users/louispecora/Code/python/plotwindow True
/users/louispecora/Code/python/dynamic/dynsys True
/Users/louispecora/Code/python/AddedPackagesfiles True
/Users/louispecora/Code/python/AddedPackagesfiles/kinds/Lib True
/Users/louispecora/Code/python/AddedPackagesfiles/PythonCard-0.8.1 True
/Users/louispecora/Code/python/AddedPackagesfiles/PythonCard-0.8.1/build/lib
True
/Users/louispecora/Code/python/AddedPackagesfiles/PythonCard-0.8.1/build/lib/PythonCard
True
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app
True
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode
True
There's PythonCard near the bottom. Is there anything to the error
which is that module PythonCard cannot be found and that PythonCard is
really a directory? Here's the original error:
Traceback (most recent call last):
File
"/Users/louispecora/Code/python/AddedPackagesfiles/PythonCard-0.8.1/tests/minimalTest.py",
line 3, in ?
from PythonCard import model, test
ImportError: No module named PythonCard
Exit 1
>
> If you're still stuck - I'd suggest asking on the pythoncard mailing
> list.
If you give up, that's my next step. Thanks for taking the time to help.
--
Cheers,
Lou Pecora
Code 6362
Naval Research Lab
Washington, DC 20375
USA
Ph: +202-767-6002
email: pecora at anvil.nrl.navy.mil
More information about the Pythonmac-SIG
mailing list