I am trying like mad to get wxPython-2.3.0 installed onto my Mandrake 8.0 install.
I have successfully installed wxGTK and all the demos and samples work fine.
I have tried to install wxPython both in the RPM and Tarball versions but with no satisfaction.
When tying to build via the tarball (python setup.py build) it goes ahead and creates a whole list of files but then gets towards the end it then generates an error indicating that there is no "Makefile" in my /usr/lib/python2.1/config directory.
In fact I don't even have a "config" directory under python2.1.
I then tried the RPM method. All seemed to install Ok, but when opening python then issueing the command
from wxPython.wx import *
I get an error message saying it can't find module wxPython.wx
Anyone have any ideas what is needed to get going with wxPython ?
I get an error message saying it can't find module wxPython.wx
Anyone have any ideas what is needed to get going with wxPython ?
Pete
Check where it threw the modules. Sometimes you have to move (or symlink)
from the module in /..../pythonxx/site-packages in /usr/lib from
/usr/local/lib.
Happened to me and two others I know. We all have mdk8 too
In Python2.0 this was where Python put the python development libs.
You are either missing the python2-devel-2.1-..... or it does not install for some reason. w/o That you can't link against the python library, which, is neccesary in order to use Python Objects, hence using the Python API for 3rd Party software, like wxPython.
What happens when you try to install the binary RPM?
thx..js
<snip>
[menion@widmers menion]$ cd /usr/lib/python2.0/config/
[menion@widmers config]$ ls -al
total 3784
drwxr-xr-x 2 root root 4096 Jun 20 15:26 ./
drwxr-xr-x 13 root root 12288 Jun 20 15:26 ../
-rw-r--r-- 1 root root 1599 Dec 20 2000 config.c
-rw-r--r-- 1 root root 1127 Dec 20 2000 config.c.in
-rwxr-xr-x 1 root root 2276 Dec 20 2000 install-sh*
-rw-r--r-- 1 root root 3741496 Dec 20 2000 libpython2.0.a
-rw-r--r-- 1 root root 16814 Dec 20 2000 Makefile
-rw-r--r-- 1 root root 10228 Dec 20 2000 Makefile.pre.in
-rwxr-xr-x 1 root root 6668 Dec 20 2000 makesetup*
-rw-r--r-- 1 root root 29544 Dec 20 2000 python.o
-rw-r--r-- 1 root root 15555 Dec 20 2000 Setup
-rw-r--r-- 1 root root 564 Dec 20 2000 Setup.config
-rw-r--r-- 1 root root 41 Dec 20 2000 Setup.local
[menion@widmers config]$
Peter Moscatt wrote:
···
I am trying like mad to get wxPython-2.3.0 installed onto my Mandrake 8.0 install.
I have successfully installed wxGTK and all the demos and samples work fine.
I have tried to install wxPython both in the RPM and Tarball versions but with no satisfaction.
When tying to build via the tarball (python setup.py build) it goes ahead and creates a whole list of files but then gets towards the end it then generates an error indicating that there is no "Makefile" in my /usr/lib/python2.1/config directory.
In fact I don't even have a "config" directory under python2.1.
I then tried the RPM method. All seemed to install Ok, but when opening python then issueing the command
from wxPython.wx import *
I get an error message saying it can't find module wxPython.wx
Anyone have any ideas what is needed to get going with wxPython ?
Ok.... yea, I do have a python2.0/config directory, but I have upgraded to
python 2.1 which dosen't have the "config" directory.
I will go and see if there is a devel version of 2.1 and give that a go.
From what I can see - the wxPython (RPM install) is placing them in a
different location altogether so therefore python 2.1 is un-aware that the
new modules are available, so I am considering a symlink or moving the
directories accross under python2.1
What's your thoughts ??
When installing the RPM version, it installs fine but notice the different
location.
Pete
···
----- Original Message -----
From: "Joshua M. Schmidlkofer" <menion@srci.iwpsd.org>
To: <wxpython-users@lists.wxwindows.org>
Sent: Wednesday, June 27, 2001 12:02 AM
Subject: Re: [wxPython] wxPython on Linux (Using RPMs)
In Python2.0 this was where Python put the python development libs.
You are either missing the python2-devel-2.1-..... or it does not
install for some reason. w/o That you can't link against the python
library, which, is neccesary in order to use Python Objects, hence using
the Python API for 3rd Party software, like wxPython.
What happens when you try to install the binary RPM?
thx..js
<snip>
[menion@widmers menion]$ cd /usr/lib/python2.0/config/
[menion@widmers config]$ ls -al
total 3784
drwxr-xr-x 2 root root 4096 Jun 20 15:26 ./
drwxr-xr-x 13 root root 12288 Jun 20 15:26 ../
-rw-r--r-- 1 root root 1599 Dec 20 2000 config.c
-rw-r--r-- 1 root root 1127 Dec 20 2000 config.c.in
-rwxr-xr-x 1 root root 2276 Dec 20 2000 install-sh*
-rw-r--r-- 1 root root 3741496 Dec 20 2000 libpython2.0.a
-rw-r--r-- 1 root root 16814 Dec 20 2000 Makefile
-rw-r--r-- 1 root root 10228 Dec 20 2000 Makefile.pre.in
-rwxr-xr-x 1 root root 6668 Dec 20 2000 makesetup*
-rw-r--r-- 1 root root 29544 Dec 20 2000 python.o
-rw-r--r-- 1 root root 15555 Dec 20 2000 Setup
-rw-r--r-- 1 root root 564 Dec 20 2000 Setup.config
-rw-r--r-- 1 root root 41 Dec 20 2000 Setup.local
[menion@widmers config]$
Peter Moscatt wrote:
> I am trying like mad to get wxPython-2.3.0 installed onto my Mandrake
> 8.0 install.
>
> I have successfully installed wxGTK and all the demos and samples work
> fine.
>
> I have tried to install wxPython both in the RPM and Tarball versions
> but with no satisfaction.
> When tying to build via the tarball (python setup.py build) it goes
> ahead and creates a whole list of files but then gets towards the end
> it then generates an error indicating that there is no "Makefile" in
> my /usr/lib/python2.1/config directory.
>
> In fact I don't even have a "config" directory under python2.1.
>
> I then tried the RPM method. All seemed to install Ok, but when
> opening python then issueing the command
>
> from wxPython.wx import *
>
> I get an error message saying it can't find module wxPython.wx
>
> Anyone have any ideas what is needed to get going with wxPython ?
>
> Pete
>
>
> _______________________________________________
> wxpython-users mailing list
> wxpython-users@lists.wxwindows.org
> http://lists.wxwindows.org/mailman/listinfo/wxpython-users
>
>From what I can see - the wxPython (RPM install) is placing them in a
different location altogether so therefore python 2.1 is un-aware that the
new modules are available, so I am considering a symlink or moving the
directories accross under python2.1
Yes, when distutils builds a RPM it assumes that Python on the target
machine has the same sys.prefix as on the build machine. Currently for me
that is /usr/local for Python 2.0 and 2.1.
There was a message last week sometime outlining the various options here,
but probably just making a symlink is the best bet.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!