demo code- GridSimple.py

When I tried to run GridSimple.py this traceback is shown

python GridSimple.py
Traceback (most recent call last):
  File "GridSimple.py", line 245, in <module>
    from wx.lib.mixins.inspect import InspectableApp
ImportError: No module named inspect

Does anyone know why this example wont run?

I'm using wx 2.8.4.0 on python 2.5

Hi Tony,

Tony Cappellini wrote:

When I tried to run GridSimple.py this traceback is shown

python GridSimple.py
Traceback (most recent call last):
File "GridSimple.py", line 245, in <module>
   from wx.lib.mixins.inspect import InspectableApp
ImportError: No module named inspect

Does anyone know why this example wont run?

I'm using wx 2.8.4.0 on python 2.5

Do you have the 2.8.4.0 demo? The inspect module got renamed to inspection in 2.8.3.

Werner

Hi Tony,

Tony Cappellini wrote:

When I tried to run GridSimple.py this traceback is shown

python GridSimple.py
Traceback (most recent call last):
File "GridSimple.py", line 245, in <module>
   from wx.lib.mixins.inspect import InspectableApp
ImportError: No module named inspect

Does anyone know why this example wont run?

I'm using wx 2.8.4.0 on python 2.5

I see it only happens if one runs it outside the demo.

Change line 245:

    from wx.lib.mixins.inspect import InspectableApp

to
    from wx.lib.mixins.inspection import InspectableApp

Werner

Tony Cappellini wrote:

When I tried to run GridSimple.py this traceback is shown

python GridSimple.py
Traceback (most recent call last):
File "GridSimple.py", line 245, in <module>
   from wx.lib.mixins.inspect import InspectableApp
ImportError: No module named inspect

Does anyone know why this example wont run?

This seems to be a bug in the module which only occurs when running the
GridSimple demo directly. If started from demo.py it works.

Anyway the reason is that 'inspect' is now called 'inspection'.

Change line 245 accordingly and it will run.

Christian