wxPython-3.0.0.0-demos fail to run

I downloaded the wxPython-3.0.0.0 demos tarball and find that I cannot run
demo.py, run.py or wxProject.py in the samples/wxProject/ directory. I have
only wxPython-3.0.0.0 installed. I assumed that these would all run
correctly but there are undefined symbols reported.

demo.py:
Traceback (most recent call last):
   File "./demo.py", line 3, in <module>
     import Main
   File "/home/rshepard/development/python/demos-3.0.0.0/demo/Main.py", line
60, in <module>
     import wx.aui
   File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/aui.py", line 104,
in <module>
     import _aui
ImportError: /usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_aui.so:
undefined symbol: _ZTI19wxAuiDefaultDockArt

run.py:
Traceback (most recent call last):
   File "./run.py", line 21, in <module>
     import wx.lib.inspection
   File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/lib/inspection.py",
line 20, in <module>
     import wx.py
   File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/py/__init__.py",
line 8, in <module>
     import crust
   File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/py/crust.py", line
15, in <module>
     import editwindow
   File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/py/editwindow.py",
line 8, in <module>
     from wx import stc
   File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/stc.py", line 10, in
<module>
     import _stc
ImportError: /usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_stc.so:
undefined symbol: wxEVT_STC_DWELLEND

wxProject.py:
Traceback (most recent call last):
   File "./wxProject.py", line 317, in <module>
     app = App(0)
   File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line
8631, in __init__
     self._BootstrapApp()
   File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line
8196, in _BootstrapApp
     return _core_.PyApp__BootstrapApp(*args, **kwargs)
   File "./wxProject.py", line 310, in OnInit
     frame = main_window(None, 'wxProject - ' + projfile)
   File "./wxProject.py", line 77, in __init__
     splitter = wx.SplitterWindow(self, style=wx.NO_3D|wx.SP_3D)
AttributeError: 'module' object has no attribute 'NO_3D'

   What is missing on this system?

TIA,

Rich

wxProject.py fails for me too with:
samples/wxProject/wxProject.py", line 77, in init

splitter = wx.SplitterWindow(self, style=wx.NO_3D|wx.SP_3D)

AttributeError: ‘module’ object has no attribute ‘NO_3D’

I don’t see any other files in the wxProject directory… but if you mean run.py in the demo directory, it returns this when i try running:

Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)]

wx.version: 3.0.0.0 msw (classic)

pid: 5228

Please specify a demo module name on the command-line

demo/demo.py works for me (pops open a GUI).

How did you install your wxPython library? From source, apt, some other binary or package file?

···

On Monday, July 7, 2014 5:46:59 PM UTC-7, fuzzydoc wrote:

I downloaded the wxPython-3.0.0.0 demos tarball and find that I cannot run

demo.py, run.py or wxProject.py in the samples/wxProject/ directory. I have

only wxPython-3.0.0.0 installed. I assumed that these would all run

correctly but there are undefined symbols reported.

demo.py:

Traceback (most recent call last):

File “./demo.py”, line 3, in

 import Main

File “/home/rshepard/development/python/demos-3.0.0.0/demo/Main.py”, line

60, in

 import wx.aui

File “/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/aui.py”, line 104,

in

 import _aui

ImportError: /usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_aui.so:

undefined symbol: _ZTI19wxAuiDefaultDockArt

run.py:

Traceback (most recent call last):

File “./run.py”, line 21, in

 import wx.lib.inspection

File “/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/lib/inspection.py”,

line 20, in

 import wx.py

File “/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/py/init.py”,

line 8, in

 import crust

File “/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/py/crust.py”, line

15, in

 import editwindow

File “/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/py/editwindow.py”,

line 8, in

 from wx import stc

File “/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/stc.py”, line 10, in

 import _stc

ImportError: /usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_stc.so:

undefined symbol: wxEVT_STC_DWELLEND

wxProject.py:

Traceback (most recent call last):

File “./wxProject.py”, line 317, in

 app = App(0)

File “/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py”, line

8631, in init

 self._BootstrapApp()

File “/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py”, line

8196, in _BootstrapApp

 return _core_.PyApp__BootstrapApp(*args, **kwargs)

File “./wxProject.py”, line 310, in OnInit

 frame = main_window(None, 'wxProject - ' + projfile)

File “./wxProject.py”, line 77, in init

 splitter = wx.SplitterWindow(self, style=wx.NO_3D|wx.SP_3D)

AttributeError: ‘module’ object has no attribute ‘NO_3D’

What is missing on this system?

TIA,

Rich

I don't see any other files in the wxProject directory... but if you mean
run.py in the demo directory,

   I was not clear. demo.py and run.py are in the demo/ directory;
wxProject.py in the samples/wxProject/ directory.

... it returns this when i try running:
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)]
wx.version: 3.0.0.0 msw (classic)
pid: 5228
Please specify a demo module name on the command-line
demo/demo.py works for me (pops open a GUI).

   None of the three opened here; each threw the error I included in my
message.

How did you install your wxPython library? From source, apt, some other
binary or package file?

   Using the SlackBuilds.org script as I have in the past. It builds a
Slackware .tgz file from the source.

Rich

···

On Mon, 7 Jul 2014, Nathan McCorkle wrote:

wx.NO_3D has gone, I think in a late 2.8 or in the 2.9 version, it seems that wxProject did not get updated.

Werner

···

On 7/8/2014 3:04, Nathan McCorkle wrote:

wxProject.py fails for me too with:
samples/wxProject/wxProject.py", line 77, in __init__
    splitter = wx.SplitterWindow(self, style=wx.NO_3D|wx.SP_3D)
AttributeError: 'module' object has no attribute 'NO_3D'

Werner,

   Thank you. When I looked at the file names in the demo/ directory they
looked like the same names I had seen years ago. I will look at the code for
those I want to closely examine and try to get them running if they don't
now. If I correctly recall, both demo.py and run.py cycle through each of
the others so I can look at each file rather than the sequence.

Regards,

Rich

···

On Tue, 8 Jul 2014, Werner wrote:

wx.NO_3D has gone, I think in a late 2.8 or in the 2.9 version, it seems
that wxProject did not get updated.

All fixed. I rebuilt and re-installed wxPython-3.0.0.0 and now Main.py and
run.py load just fine.

Mea culpa,

Rich

···

On Mon, 7 Jul 2014, Rich Shepard wrote:

I downloaded the wxPython-3.0.0.0 demos tarball and find that I cannot run
Main.py, run.py or wxProject.py ...