From: Michael R. <MRe...@be...> - 2004-09-28 15:51:00
|
I have checked out PythonCard 0.8.1 from CVS, and I consistently get the = following error message when I run resourceEditor. resourceEditor = actually loads, but the component menu is blank: Traceback (most recent call last): File "C:\BigSnake\lib\site-packages\wx\_core.py", line 10673, in = <lambda> lambda event: event.callable(*event.args, **event.kw) ) File "C:\BigSnake\Lib\site-packages\PythonCard\tools\resourceEditor\resou= rceEd itor.py", line 85, in on_initialize self.buildComponentsMenu() File "C:\BigSnake\Lib\site-packages\PythonCard\tools\resourceEditor\resou= rceEd itor.py", line 285, in buildComponentsMenu resource.loadComponentModule(name) File "C:\BigSnake\Lib\site-packages\PythonCard\resource.py", line 30, in = loadC omponentModule raise ImportError, message ImportError: cannot import module 'floatcanvas I am using python 2.3.4 and wxPython 2.5.2.8 for Python 2.3 I checked out PythonCard from CVS, and installed from the windows binary = file created by this command: python setup.py --bdist_wininst Any ideas? I have uninstalled python, wxPython and PythonCard and = installed into a new location. Module floatcanvas does live in several = locations in under my Python installation: ..\site-packages\PythonCard\components ..\site-packages\PythonCard\samples ..\site-packages\PythonCard\samples\floatCanvasTest ..\site-packages\PythonCard\build\lib\Pythoncard\components ..\site-packages\wx\lib ..\site-packages\wx\demo ..\site-packages\wx\lib\floatcanvas ..\site-packages\wxPython\lib To ask a very Newbie question, when an import statement is made, how does = python know where to look for the module? Could I possibly have a path = problem? I did not have this problem when I was using the 0.8 windows binary distro = of PythonCard from sourceforge.net |