Install help

Thanks I tried the --nodeps flag and it did install
whereis wxPython
wxPython: /usr/lib/wxPython

but when I type
ben@linux:~> python
Python 2.3 (#1, Aug 30 2004, 14:09:31)
[GCC 3.3 20030226 (prerelease) (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import wx

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named wx

import wxWindows

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named wxWindows

import wxPython

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named wxPython

···

From: Robin Dunn <robin@alunn.com>
Reply-To: wxPython-users@lists.wxwidgets.org
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Install help
Date: Wed, 05 May 2004 22:29:52 -0700

Benjamin Hamilton wrote:

I've tried installing wxPython 2.5 (whatever is the latest download default) to no avail on Suse 8.2 . If I install by binary rpm I get /usr/bin/python required for rpm -i. If by source it looks like ogl is the problem. Funny thing is I've had it working before should I go retro on its *ss. Right now I'm using python2.3 and gtk (gtk2 makes no difference). Did I do the handshake wrong in another dimension again or what?

Try installing the binary with the --nodeps flag.

What errors do you get when building from source?

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

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

Benjamin Hamilton wrote:

Thanks I tried the --nodeps flag and it did install
whereis wxPython
wxPython: /usr/lib/wxPython

but when I type
ben@linux:~> python
Python 2.3 (#1, Aug 30 2004, 14:09:31)
[GCC 3.3 20030226 (prerelease) (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import wx

you should have a wx and wxPython directory in <something>/lib/python2.3/site-packages

figure out where <something> is on your system (should be /usr/ or /usr/local/ ) and figure our where the rpm put the wx and wxPython dirs. then move around as appropriate. It may also be possible to have rpm install it in the right place, but I don't remember the flag for right now, and it doesn't always work.

I'm guessing your python2.3 is in usr/local/

By the way, /usr/lib/wxPython is where the libs are for wxPython, but NOT where the Python modules are.

Do you have more than one version of python installed on your system?

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov