cannot install wxPython from source

Hi,
I am new to python and work on installing wxPython from source on
Linux CentOS.
I did the following:
../configure --prefix=/home/${USER}/wxPython/ --enable-unicode --
enable-monolithic --enable-rpath=/home/slevin/wxPython/lib
        make
            && make -C contrib/src/gizmos
            && make -C contrib/src/stc

make install && make -C contrib/src/gizmos install && make -C contrib/
src/stc install

I have updated the env
setenv PATH "${PATH}:/home/${USER}/wxPython/bin"
setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/home/${USER}/wxPython/lib"
setenv PYTHONPATH "${PYTHONPATH}:/home/${USER}/wxPython/lib:/home/
slevin/wxPython/bin"

When I run
python

import wx

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

python --version
Python 2.6.6

I need this installation for robotframework tool.
Thanks a lot in advance.
Stella

Le 22/04/2012 17:16, Stella a �crit :

Hi,
I am new to python and work on installing wxPython from source on
Linux CentOS.
I did the following:
../configure --prefix=/home/${USER}/wxPython/ --enable-unicode --
enable-monolithic --enable-rpath=/home/slevin/wxPython/lib
         make
             && make -C contrib/src/gizmos
             && make -C contrib/src/stc

make install&& make -C contrib/src/gizmos install&& make -C contrib/
src/stc install

I have updated the env
setenv PATH "${PATH}:/home/${USER}/wxPython/bin"
setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/home/${USER}/wxPython/lib"
setenv PYTHONPATH "${PYTHONPATH}:/home/${USER}/wxPython/lib:/home/
slevin/wxPython/bin"

When I run
python

import wx

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

python --version
Python 2.6.6

I need this installation for robotframework tool.
Thanks a lot in advance.
Stella

Hi Stella,

I install wxPython 2.8.* on Linux Mandriva with these commands :

cd wxPython-src-2.8.*
mkdir bld
cd bld
../configure --prefix=/usr --with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-graphics_ctx --enable-sound --with-sdl --enable-mediactrl --enable-display --disable-debugreport
make && make -C contrib/src/gizmos && make -C contrib/src/stc
make install && make -C contrib/src/gizmos install && make -C contrib/src/stc install
cd ../wxPython
python setup.py build_ext --inplace --debug UNICODE=0
python setup.py install UNICODE=0

Hope this will help you

···

--

Hugues JEAN-BAPTISTE (hjb@agorinfo.fr)
AGORINFO S.A.S. (http://www.agorinfo.fr)

You've only done the wxWidgets (wxGTK) part of the build so far. You also need to build and install wxPython.

http://wxpython.org/BUILD-2.8.html

···

On 4/22/12 8:16 AM, Stella wrote:

Hi,
I am new to python and work on installing wxPython from source on
Linux CentOS.
I did the following:
../configure --prefix=/home/${USER}/wxPython/ --enable-unicode --
enable-monolithic --enable-rpath=/home/slevin/wxPython/lib
         make
             && make -C contrib/src/gizmos
             && make -C contrib/src/stc

make install&& make -C contrib/src/gizmos install&& make -C contrib/
src/stc install

I have updated the env
setenv PATH "${PATH}:/home/${USER}/wxPython/bin"
setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/home/${USER}/wxPython/lib"
setenv PYTHONPATH "${PYTHONPATH}:/home/${USER}/wxPython/lib:/home/
slevin/wxPython/bin"

--
Robin Dunn
Software Craftsman