From: Michael L. <kla...@we...> - 2006-08-25 22:35:08
|
On Fri, 25 Aug 2006 13:13:47 +0200 Agathe S=F8rflaten <as...@ak...> wrote: > Hi > =20 > I got the source codes from the office and I > downloaded Python 2.4 and Pmw 1.2. when ran the program I got the > following message >=20 > =20 > Traceback (most recent call last): > File "C:\Python24\Lib\lib-tk\Pmw.py", line 28, in -toplevel- > _dir =3D __path__[0] > NameError: name '__path__' is not defined > =20 > =20 > =20 > When change the path of where Pmw is;=20 > _dir=3D['C:\Python24\Lib\site-packages'] > =20 > I got the following message > =20 > Traceback (most recent call last): > File "BidderUI.py", line 12, in ? > import os.path, string, Pmw > File "C:\Python23\Pmw\__init__.py", line 35, in ? > __import__(_loader) > ImportError: No module named Pmw_1_2.lib.PmwLoader >=20 > For this case I did create Pmw.py by running bunddlepmw.py. I also find P= mwLoader.py > under the PMW_1_2/lib directory. Does anyone know how to fix this? did > I miss any steps ? >=20 Hi Agathe, I think you should just copy the contents of the unpacked Pmw download into= your site-packages directory. On my linux box the path to the lib folder looks like: /usr/lib/python2.3/site-packages/Pmw/Pmw_1_2/lib so I think on windows it should be C:\Python24\Lib\site-packages\Pmw\Pmw_1_= 2\lib . >From what you have written it looks like you now have multiple versions ins= talled at the same time, so maybe you should remove all of these first to make sure that the right o= ne will be imported. I hope this helps Michael |