python 2.5 on Ubuntu Edgy

Michael Moriarity wrote:

The build command seems to be running correctly, but a final problem
crops up when the install command runs.

error: invalid Python installation: unable to open
/usr/include/python2.5/pyconfig.h (No such file or directory)

Well, /usr/include/python2.5 does exist, but does not contain pyconfig.h, so
I will soldier on, attempting to find that file. If I am lucky, I only
need to install
a dev package for python 2.5.

Yep, just install python2.5-dev.

···

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

Michael Moriarity wrote:

Well, installing the python2.5 dev package was the answer, and now the
wxPython build and install work apparently successfully. However, when
I run python2.5 and try import wx, another problem raises its ugly head:

import wx

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "wx/__init__.py", line 45, in <module>
   from wx._core import *
File "wx/_core.py", line 4, in <module>
   import _core_
ImportError: libwx_gtk2ud_aui-2.8.so.0: cannot open shared object
file: No such file or directory

Upon inspection, the file does exist, here:
/opt/wx/2.8_py2.5/lib/libwx_gtk2ud_aui-2.8.so.0

I thought that I had insured it would be found there, by using
--enable-rpath=/opt/wx/2.8_py2.5/lib
as an argument to the original configure command, but I guess not.

Can anyone suggest what it will take to clear this (hopefully final) hurdle?

Not sure why the rpath isn't working, but you can work around this either by setting the LD_LIBRARY_PATH variable in the environment to /opt/wx/2.8_py2.5/lib, or add /opt/wx/2.8_py2.5/lib to /etc/ld.so.conf and then running ldconfig as root to update the shared library cache.

···

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

Thanks Robin. I followed your second suggestion, and I can now
import wx in python2.5. So, I guess I am ready to start using this sucker.
I appreciate all the help. I hope that others who want to try this sort of
thing can benefit from the record of my problems and solutions.

regards, michael

···

On 2/1/07, Robin Dunn <robin@alldunn.com> wrote:

Not sure why the rpath isn't working, but you can work around this
either by setting the LD_LIBRARY_PATH variable in the environment to
/opt/wx/2.8_py2.5/lib, or add /opt/wx/2.8_py2.5/lib to /etc/ld.so.conf
and then running ldconfig as root to update the shared library cache.

Michael Moriarity wrote:

···

On 2/1/07, Robin Dunn <robin@alldunn.com> wrote:

Not sure why the rpath isn't working, but you can work around this
either by setting the LD_LIBRARY_PATH variable in the environment to
/opt/wx/2.8_py2.5/lib, or add /opt/wx/2.8_py2.5/lib to /etc/ld.so.conf
and then running ldconfig as root to update the shared library cache.

Thanks Robin. I followed your second suggestion, and I can now
import wx in python2.5. So, I guess I am ready to start using this sucker.
I appreciate all the help. I hope that others who want to try this sort of
thing can benefit from the record of my problems and solutions.

Did you keep a list of the packages you needed to install? It would be nice to have that in the wiki or someplace.

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

Sorry, no. I just kept bumbling along, without taking notes. I'll see if I
can reconstruct it based on the list of currently installed packages.

regards, michael

···

On 2/1/07, Robin Dunn <robin@alldunn.com> wrote:

Did you keep a list of the packages you needed to install? It would be
nice to have that in the wiki or someplace.

It turns out that Synaptic keeps a log of packages installed. So, I can list the
ones that I installed to get from a fresh install of Ubuntu 6.10, Edgy Eft, to
a system with python 2.5 and wxPython 2.8 working together. Not all of the
packages listed were actually selected by hand, in many cases, selecting a
single package for installation would trigger automatic selection of
dependencies.

python 2.5 packages

python2.5 (2.5-2ubuntu2)
python2.5-minimal (2.5-2ubuntu2)
python2.5-dev (2.5-2ubuntu2)

build-essential packages

build-essential (11.3)
dpkg-dev (1.13.22ubuntu7)
g++ (4:4.1.1-6ubuntu3)
g++-4.1 (4.1.1-13ubuntu5)
libc6-dev (2.4-1ubuntu12.3)
libstdc++6-4.1-dev (4.1.1-13ubuntu5)
linux-libc-dev (2.6.17.1-10.34)

packages not found by configure

libexpat1-dev (1.95.8-3.2)
libjpeg62-dev (6b-13)
libpng12-dev (1.2.8rel-5.1ubuntu0.1)
libtiff4-dev (3.8.2-6)
libtiffxx0c2 (3.8.2-6)
zlib1g-dev (1:1.2.3-13ubuntu2)

Open GL and gstreamer related packages

freeglut3-dev (2.4.0-5)
libgl1-mesa-dev (6.5.1~20060817-0ubuntu3)
libglib2.0-dev (2.12.4-0ubuntu1)
libglu1-mesa-dev (6.5.1~20060817-0ubuntu3)
libgstreamer0.10-dev (0.10.10-1ubuntu2)
libice-dev (2:1.0.1-1ubuntu1)
libpopt-dev (1.10-2)
libsm-dev (2:1.0.1-1ubuntu1)
libx11-dev (2:1.0.3-0ubuntu4)
libxau-dev (1:1.0.1-1)
libxdmcp-dev (1:1.0.1-1)
libxext-dev (2:1.0.1-1ubuntu1)
libxml2-dev (2.6.26.dfsg-2ubuntu4)
libxt-dev (1:1.0.2-1ubuntu1)
mesa-common-dev (6.5.1~20060817-0ubuntu3)
x11proto-core-dev (7.0.7-1)
x11proto-input-dev (1.3.2-3ubuntu1)
x11proto-kb-dev (1.0.3-0ubuntu1)
x11proto-xext-dev (7.0.2-4ubuntu1)
xlibmesa-gl-dev (1:7.1.1ubuntu6.2)
xtrans-dev (1.0.1-1)

gtk+ related packages

libatk1.0-dev (1.12.3-0ubuntu1)
libcairo2-dev (1.2.4-1ubuntu2)
libfontconfig1-dev (2.3.2-7ubuntu2)
libfreetype6-dev (2.2.1-5)
libgtk2.0-dev (2.10.6-0ubuntu3)
libpango1.0-dev (1.14.5-0ubuntu1)
libxcursor-dev (1.1.7-0ubuntu1)
libxfixes-dev (1:4.0.1-0ubuntu1)
libxft-dev (2.1.10-1ubuntu1)
libxi-dev (2:1.0.1-0ubuntu1)
libxinerama-dev (2:1.0.1-4build1)
libxrandr-dev (2:1.1.1-0ubuntu1)
libxrender-dev (1:0.9.1-0ubuntu1)
x11proto-fixes-dev (1:4.0-0.1ubuntu1)
x11proto-randr-dev (1.1.2-3ubuntu1)
x11proto-render-dev (2:0.9.2-3ubuntu1)
x11proto-xinerama-dev (1.1.2-3ubuntu1)

regards, michael

···

On 2/1/07, Robin Dunn <robin@alldunn.com> wrote:

Did you keep a list of the packages you needed to install? It would be
nice to have that in the wiki or someplace.