Hi Robin,
Kevin Ollivier wrote:
Hi Robin and others,
I recently d/led this build and installed it on my resident Windows XP box (removing 2.5.2.8 when it asked), and after installing it I realized that I'd need to rebuild my wxMozilla extension to test some of my apps on 2.5.3. Feeling lazy (sorry, but I'm working on some other things right now), I wanted to go back to 2.5.2.8 so I uninstalled 2.5.3 using add-remove programs, then I re-installed 2.5.2.8.
But now, "from wxPython.wx import *" imports no longer work. "import wx" does work, and thus the demo works, but apps I have that use the former all choke out on the import line. I know this isn't the most descriptive of error reports, but do you have any idea what might have changed (or remained) by undergoing the install/uninstall process? Can anyone else reproduce this? While usually these things are a serious case of user error on my part, it happened immediately after an install/uninstall/install combo. I did nothing else outside of that.
What is in your sys.path and in your site-pacakges dir? (I did a similar uninstall/reinstall this morngin to answer the 2.5.2.8u question, and didn't notice anything unusual, but I didn't try "from wxPython.wx import *" either...)
I did check for an incomplete wx or wxPython dir, but everything seems to be there. In any case, here's the printout for site.py and the contents of my site-packages:
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.path
['', 'C:\\WINDOWS\\System32\\python23.zip', 'C:\\Python23\\lib\\site-packages\\P
ythonwin', 'C:\\Python23\\lib\\site-packages\\win32', 'C:\\Python23\\lib\\site-p
ackages\\win32\\lib', 'C:\\Python23\\lib\\site-packages', 'C:\\Python23\\DLLs',
'C:\\Python23\\lib', 'C:\\Python23\\lib\\plat-win', 'C:\\Python23\\lib\\lib-tk',
'C:\\Python23']
C:\oss\documancer\src>dir /w C:\Python23\lib\site-packages
Volume in drive C has no label.
Volume Serial Number is 44AB-7789
Directory of C:\Python23\lib\site-packages
[.] [..] [Cheetah]
drv_libxml2.py drv_libxml2.pyc drv_libxml2.pyo
em.pyc libxml2.py libxml2.pyc
libxml2.pyo [libxmlmods] libxslt.py
libxslt.pyc libxslt.pyo PyLucene.py
PyLucene.pyc [pypackage] [PythonCardPrototype]
pythoncom.py pythoncom.pyc [Pythonwin]
PyWin32.chm PyWise23.dll README.txt
UnWisePW32.exe [win32] [win32com]
[win32comext] [wx] [wxPython]
_PyLucene.pyd [_xmlplus]
19 File(s) 7,703,726 bytes
13 Dir(s) 8,948,871,168 bytes free
Thanks,
Kevin
···
On Nov 4, 2004, at 12:47 PM, Robin Dunn wrote: