problems setting up the latest build and demos ...

Robin Dunn wrote:

Will Sadkin wrote:

I installed wxPython2.6-win32-ansi-2.6.2.1pre.20060102-py23.exe
and then wxPython2.6-win32-docs-demos-2.6.2.1pre.20060102.exe

but when I run the demo, I get:

C:\Program Files\wxPython2.6 Docs and Demos\demo>demo.py
Traceback (most recent call last):
  File "C:\Program Files\wxPython2.6 Docs and Demos\demo\demo.py",
    line 4, in ? Main.main()
  File "C:\Program Files\wxPython2.6 Docs and Demos\demo\Main.py",
line 1750, in main
    app = MyApp(False)
  File "C:\Py235\lib\site-packages\wxPython\wx.py", line 1957, in
  __init__ _wxStart(self.OnInit) File "C:\Program
Files\wxPython2.6 Docs and Demos\demo\Main.py", line 1724, in OnInit
    wx.SystemOptions.SetOptionInt("mac.window-plain-transition", 1)
AttributeError: 'module' object has no attribute 'SystemOptions'

What have I done wrong?

Looks like it is finding an older version of wxPython. (Look at the
path name for wx.py above.) You probably need to migrate your old
wxPython 2.4 to a directory structure compatible with the multiversion
installs, and then double check the contents of your wx.pth file. See
http://wiki.wxpython.org/index.cgi/MultiVersionInstalls

Ok, I'm looking, but I don't know what I'm supposed to be looking for...
I see that it's using c:\Py235\lib\site-packages\wxPython\wx.py, which
is where I'd expect it to be looking...
The contents of the wx.pth file is one line:
wx-2.6-msw-ansi

I had uninstalled the version of wxPython and the demos previously installed

before installing the above, so there isn't anything else there; the only
two directories under site-packages are wx and wx-2.6-msw-ansi...

I used to have a PythonModules.pth in the Py235 root, but that's gone,
so I don't know how its finding an earlier version...

I do have older versions of python installed, with their own versions
of wx, but I don't understand how those would be found... could this
be a major/minor version problem? (ie. I have py223, py233 and py235
installed...)

Puzzled,
/WS

Robin Dunn wrote:

Will Sadkin wrote:

I installed wxPython2.6-win32-ansi-2.6.2.1pre.20060102-py23.exe
and then wxPython2.6-win32-docs-demos-2.6.2.1pre.20060102.exe

but when I run the demo, I get:

C:\Program Files\wxPython2.6 Docs and Demos\demo>demo.py
Traceback (most recent call last):
  File "C:\Program Files\wxPython2.6 Docs and Demos\demo\demo.py",
    line 4, in ? Main.main()
  File "C:\Program Files\wxPython2.6 Docs and Demos\demo\Main.py",
line 1750, in main
    app = MyApp(False)
  File "C:\Py235\lib\site-packages\wxPython\wx.py", line 1957, in
  __init__ _wxStart(self.OnInit) File "C:\Program
Files\wxPython2.6 Docs and Demos\demo\Main.py", line 1724, in OnInit
    wx.SystemOptions.SetOptionInt("mac.window-plain-transition", 1)
AttributeError: 'module' object has no attribute 'SystemOptions'

What have I done wrong?

Looks like it is finding an older version of wxPython. (Look at the
path name for wx.py above.) You probably need to migrate your old
wxPython 2.4 to a directory structure compatible with the multiversion
installs, and then double check the contents of your wx.pth file. See
http://wiki.wxpython.org/index.cgi/MultiVersionInstalls

Ok, I'm looking, but I don't know what I'm supposed to be looking for...
I see that it's using c:\Py235\lib\site-packages\wxPython\wx.py, which
is where I'd expect it to be looking...
The contents of the wx.pth file is one line:
wx-2.6-msw-ansi

It should be looking in:

c:\Py235\lib\site-packages\wx-2.6-msw-ansi\wxPython\wx.py

Which is why Robin thinks this is an older version, a version released before multiple wxPython versions could be installed on the same Python version. Do you see the wx-2.6-msw-ansi folder anywhere on your machine?

Kevin

···

On Jan 6, 2006, at 2:05 PM, Will Sadkin wrote:

I had uninstalled the version of wxPython and the demos previously installed

before installing the above, so there isn't anything else there; the only
two directories under site-packages are wx and wx-2.6-msw-ansi...

I used to have a PythonModules.pth in the Py235 root, but that's gone,
so I don't know how its finding an earlier version...

I do have older versions of python installed, with their own versions
of wx, but I don't understand how those would be found... could this
be a major/minor version problem? (ie. I have py223, py233 and py235
installed...)

Puzzled,
/WS

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-dev-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-help@lists.wxwidgets.org

Will Sadkin wrote:

Ok, I'm looking, but I don't know what I'm supposed to be looking for...
I see that it's using c:\Py235\lib\site-packages\wxPython\wx.py, which is where I'd expect it to be looking...
The contents of the wx.pth file is one line: wx-2.6-msw-ansi

I had uninstalled the version of wxPython and the demos previously installed

before installing the above, so there isn't anything else there; the only
two directories under site-packages are wx and wx-2.6-msw-ansi...

The wx directory is probably from your wxPython 2.4 install. Create a new directory "wx-2.4-msw-ansi" and then move the wx and wxPython directories there. Then your 2.4 install will be multiversion install compatible, and can be selected with wxversion.select() if you wish. The wx.pth file specifies which of these subdirectories is put on the PYTHONPATH by default and so determines which one a "import wx" will find.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!