[wxPython] demo doesn't work

I am working on a Debian Linux system and have just installed
the wxPython pakage. I downloaded the demo but that doesn't
work.

bash-2.05b$ python demo.py
Traceback (most recent call last):
  File "demo.py", line 3, in ?
    import Main
  File "Main.py", line 19, in ?
    import images
  File "images.py", line 4, in ?
    from wxPython.wx import wxBitmapFromXPMData, wxImageFromBitmap
ImportError: cannot import name wxBitmapFromXPMData

So what is going on?

···

--
Antoon Pardon

I am working on a Debian Linux system and have just installed
the wxPython pakage. I downloaded the demo but that doesn't
work.

bash-2.05b$ python demo.py
Traceback (most recent call last):
  File "demo.py", line 3, in ?
    import Main
  File "Main.py", line 19, in ?
    import images
  File "images.py", line 4, in ?
    from wxPython.wx import wxBitmapFromXPMData, wxImageFromBitmap
ImportError: cannot import name wxBitmapFromXPMData

What versions of everything you have? If you used the Debian packages then
you probably have 2.2.9 of wxGTK and wxPython, right? Did you also get a
2.2.x version of the demo?

···

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

>
> I am working on a Debian Linux system and have just installed
> the wxPython pakage. I downloaded the demo but that doesn't
> work.
>
> bash-2.05b$ python demo.py
> Traceback (most recent call last):
> File "demo.py", line 3, in ?
> import Main
> File "Main.py", line 19, in ?
> import images
> File "images.py", line 4, in ?
> from wxPython.wx import wxBitmapFromXPMData, wxImageFromBitmap
> ImportError: cannot import name wxBitmapFromXPMData

What versions of everything you have? If you used the Debian packages then
you probably have 2.2.9 of wxGTK and wxPython, right?

Yes

Did you also get a
2.2.x version of the demo?

I didn't know there was a choice. As far as I can tell there isn't a
demo package in Debian, so I just downloaded what was on the web and
that turns out to be 2.3.2.1.

Is it still possible to download a 2.2.x demo version? Is it worth while
to start with 2.2 or should I better get a 2.3 version?

···

On Tue, Aug 13, 2002 at 10:09:02AM -0700, Robin Dunn wrote:

--
Antoon Pardon

If you have python1.5 and python2.2 installed togheter (as my RedHat do) you can start the demo typing:

         python2 demo.py

On my laptop this works.

···

At 15.11 13/08/02 +0200, you wrote:

I am working on a Debian Linux system and have just installed
the wxPython pakage. I downloaded the demo but that doesn't
work.

Antoon Pardon <Antoon.Pardon@rece.vub.ac.be> writes:

I didn't know there was a choice. As far as I can tell there isn't a
demo package in Debian, so I just downloaded what was on the web and
that turns out to be 2.3.2.1.

The wxPython demo is in the wxwin2.2-examples package on Debian.

   Bernhard

···

--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
MapIt! http://www.mapit.de/

> Did you also get a
> 2.2.x version of the demo?

I didn't know there was a choice. As far as I can tell there isn't a
demo package in Debian, so I just downloaded what was on the web and
that turns out to be 2.3.2.1.

Is it still possible to download a 2.2.x demo version?

It's still on the SF project page:

Is it worth while
to start with 2.2 or should I better get a 2.3 version?

2.3 has many new features, and is less buggy in most areas. 2.3.3 should be
released in 2-3 weeks, and I've made a few preview releases available on the
same page.

···

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