How can I install WxPython on RedHat 4 OS

Thanks in Advance

Lioz

Open your package manager of choice and do a search for wxPython (it
might be called wxGTK on *nix). Check it and install it. This worked
for me just fine on Fedora and Ubuntu. If all else fails, you get to
build it yourself. There are instructions here:

http://wxpython.org/builddoc.php

···

On Oct 3, 7:54 am, Lioz Cohn <liozcoh...@gmail.com> wrote:

Thanks in Advance

Lioz

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

We try to update the python version to 2.7 and to install Wx

the Wx instillation return the Python version to 2.3.4

Somebody knows this problem ?

Lioz

···

On Mon, Oct 4, 2010 at 4:11 PM, Mike Driscoll kyosohma@gmail.com wrote:

On Oct 3, 7:54 am, Lioz Cohn liozcoh...@gmail.com wrote:

Thanks in Advance

Lioz

Open your package manager of choice and do a search for wxPython (it

might be called wxGTK on *nix). Check it and install it. This worked

for me just fine on Fedora and Ubuntu. If all else fails, you get to

build it yourself. There are instructions here:

http://wxpython.org/builddoc.php


Mike Driscoll

Blog: http://blog.pythonlibrary.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

The wx packages you are installing probably have specified a dependency on Python 2.3, so when you install it the package manager is reinstalling the older Python packages to satisfy that dependency. You'll either need to find a newer version of the wx packages or build it yourself.

···

On 10/14/10 2:53 AM, Lioz Cohn wrote:

We try to update the python version to 2.7 and to install Wx

the Wx instillation return the Python version to 2.3.4

Somebody knows this problem ?

--
Robin Dunn
Software Craftsman

No, it doesn't. You are misunderstanding the problem. The wxPython
installer does not install Python. Your RedHat system uses Python for
many of its administrative tasks, and they need a particular version
of Python. You can't delete it. It's likely that you now have /usr/
bin/python2.3 and /usr/bin/python2.7, each of which is a separate
version of the interpreter, each with its own library of add-on
modules. You ALSO probably have /usr/bin/python, which is
symbolically linked to /usr/bin/python2.3. So, when you run the
"python" command, you get 2.3. You can run the 2.7 version by typing
"python2.7".

That ALSO probably means that your wxPython installation used the 2.3
interpreter, which means it installed itself in the 2.3 add-in
directory. There's a way to specify which interpreter to use when you
do the installation.

Overall, you have a very old operating system, and unless you really
need the newer features, you will probably find life easier if you
stick with Python 2.3.

···

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Thanks a lot
Lioz

···

On Thu, Oct 14, 2010 at 10:16 AM, Tim Roberts timr@probo.com wrote:

No, it doesn’t. You are misunderstanding the problem. The wxPython

installer does not install Python. Your RedHat system uses Python for

many of its administrative tasks, and they need a particular version

of Python. You can’t delete it. It’s likely that you now have /usr/

bin/python2.3 and /usr/bin/python2.7, each of which is a separate

version of the interpreter, each with its own library of add-on

modules. You ALSO probably have /usr/bin/python, which is

symbolically linked to /usr/bin/python2.3. So, when you run the

“python” command, you get 2.3. You can run the 2.7 version by typing

“python2.7”.

That ALSO probably means that your wxPython installation used the 2.3

interpreter, which means it installed itself in the 2.3 add-in

directory. There’s a way to specify which interpreter to use when you

do the installation.

Overall, you have a very old operating system, and unless you really

need the newer features, you will probably find life easier if you

stick with Python 2.3.

Tim Roberts, timr@probo.com

Providenza & Boekelheide, Inc.

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Hi to all

I am trying to install WXPython on Linux red hat 4 ,I
have tried with few versions of Python 2.3 ,2.5 ,2.7 .

Whenever I run this line :
/usr/local/bin/python2.5 setup.py build_ext --inplace -debug (I am
running it with root)

I get the following errors as you can see here :

error: command ‘gcc’ failed with exit status 1
[root@berlioz wxPython]# cat /tmp/error.log

WARNING: WXWIN not set in environment. Assuming ‘…’

Found wx-config: /usr/local/bin/wx-config

Using flags: --toolkit=gtk2
–unicode=yes --version=2.8 Preparing CORE…

Preparing GLCANVAS…

Preparing STC…

Preparing GIZMOS…

running build_ext

building ‘core’ extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC -g -DSWIG_TYPE_TABLE=_wxPython_table
-DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -DXTHREADS -D_REENTRANT
-DXUSE_MTSAFE_API -Iinclude -Isrc -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/local/include/python2.5 -c src/helpers.cpp
-o build-gtk2.unicode/temp.linux-i686-2.5/src/helpers.o -g -O0

Can someone please take a look at this …

Thanks

Lioz

···

On Thu, Oct 14, 2010 at 10:16 AM, Tim Roberts timr@probo.com wrote:

No, it doesn’t. You are misunderstanding the problem. The wxPython

installer does not install Python. Your RedHat system uses Python for

many of its administrative tasks, and they need a particular version

of Python. You can’t delete it. It’s likely that you now have /usr/

bin/python2.3 and /usr/bin/python2.7, each of which is a separate

version of the interpreter, each with its own library of add-on

modules. You ALSO probably have /usr/bin/python, which is

symbolically linked to /usr/bin/python2.3. So, when you run the

“python” command, you get 2.3. You can run the 2.7 version by typing

“python2.7”.

That ALSO probably means that your wxPython installation used the 2.3

interpreter, which means it installed itself in the 2.3 add-in

directory. There’s a way to specify which interpreter to use when you

do the installation.

Overall, you have a very old operating system, and unless you really

need the newer features, you will probably find life easier if you

stick with Python 2.3.

Tim Roberts, timr@probo.com

Providenza & Boekelheide, Inc.

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

There are no errors in the portion of the log you displayed. Did you also redirect stderr to the log file?

···

On 10/17/10 9:08 AM, Lioz Cohn wrote:

Hi to all

I am trying to install WXPython on Linux red hat 4 ,I have tried with
few versions of Python 2.3 ,2.5 ,2.7 .

Whenever I run this line : /usr/local/bin/python2.5 setup.py build_ext
--inplace -debug (I am running it with root)

I get the following errors as you can see here :

error: command 'gcc' failed with exit status 1 [root@berlioz wxPython]#
cat /tmp/error.log

WARNING: WXWIN not set in environment. Assuming '..'

Found wx-config: /usr/local/bin/wx-config

     Using flags: --toolkit=gtk2 --unicode=yes --version=2.8 Preparing
CORE...

Preparing GLCANVAS...

Preparing STC...

Preparing GIZMOS...

running build_ext

building '_core_' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC -g -DSWIG_TYPE_TABLE=_wxPython_table
-DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -DXTHREADS
-D_REENTRANT -DXUSE_MTSAFE_API -Iinclude -Isrc -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/local/include/python2.5 -c
src/helpers.cpp -o build-gtk2.unicode/temp.linux-i686-2.5/src/helpers.o
-g -O0

Can someone please take a look at this ...

--
Robin Dunn
Software Craftsman

Hi

Please find attached log file

Thanks in Advance

Lioz

log.txt (39.6 KB)

···

On Mon, Oct 18, 2010 at 4:08 AM, Robin Dunn robin@alldunn.com wrote:

On 10/17/10 9:08 AM, Lioz Cohn wrote:

Hi to all

I am trying to install WXPython on Linux red hat 4 ,I have tried with

few versions of Python 2.3 ,2.5 ,2.7 .

Whenever I run this line : /usr/local/bin/python2.5 setup.py build_ext

–inplace -debug (I am running it with root)

I get the following errors as you can see here :

error: command ‘gcc’ failed with exit status 1 [root@berlioz wxPython]#

cat /tmp/error.log

WARNING: WXWIN not set in environment. Assuming ‘…’

Found wx-config: /usr/local/bin/wx-config

 Using flags:  --toolkit=gtk2 --unicode=yes --version=2.8 Preparing

CORE…

Preparing GLCANVAS…

Preparing STC…

Preparing GIZMOS…

running build_ext

building ‘core’ extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall

-Wstrict-prototypes -fPIC -g -DSWIG_TYPE_TABLE=_wxPython_table

-DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -DXTHREADS

-D_REENTRANT -DXUSE_MTSAFE_API -Iinclude -Isrc -I/usr/include/gtk-2.0

-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0

-I/usr/include/pango-1.0 -I/usr/include/freetype2

-I/usr/include/freetype2/config -I/usr/include/glib-2.0

-I/usr/lib/glib-2.0/include -I/usr/local/include/python2.5 -c

src/helpers.cpp -o build-gtk2.unicode/temp.linux-i686-2.5/src/helpers.o

-g -O0

Can someone please take a look at this …

There are no errors in the portion of the log you displayed. Did you also redirect stderr to the log file?

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

There is some problem with your wxWidgets install. You either did not build it, did not install it, or installed it to someplace other than where wxPython's build is finding it by default.

···

On 10/18/10 1:14 AM, Lioz Cohn wrote:

    There are no errors in the portion of the log you displayed. Did
    you also redirect stderr to the log file?

Please find attached log file

--
Robin Dunn
Software Craftsman

Hi

We tried again and i seems the installation of Wx and WxPython were OK but after that we got error message as in the attached file.

Please advise

Can I find RPM that’s does the work without building ?

Thanks a lot

Lioz

Log_19_10.txt (37.6 KB)

···

On Mon, Oct 18, 2010 at 6:02 PM, Robin Dunn robin@alldunn.com wrote:

On 10/18/10 1:14 AM, Lioz Cohn wrote:

There are no errors in the portion of the log you displayed. Did

you also redirect stderr to the log file?

Please find attached log file

There is some problem with your wxWidgets install. You either did not build it, did not install it, or installed it to someplace other than where wxPython’s build is finding it by default.

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

            There are no errors in the portion of the log you displayed.
          Did
            you also redirect stderr to the log file?

        Please find attached log file

    There is some problem with your wxWidgets install. You either did
    not build it, did not install it, or installed it to someplace other
    than where wxPython's build is finding it by default.

We tried again and i seems the installation of Wx and WxPython were OK
but after that we got error message as in the attached file.
Please advise
Can I find RPM that's does the work without building ?

What commands are you running to configure and to build wxWidgets? What command line are you using to try to build wxPython?

Since you have a bunch of --with-* and --enable-* files in your directory listing it appears that something you have done is very incorrect.

Can I find RPM that's does the work without building ?

Search on the package repositories for your distro and any repositories for it that are maintained by other people. RHEL 4 is quite old however so I doubt that there are very many newer versions of packages still being built for it.

···

On 10/19/10 4:54 AM, Lioz Cohn wrote:

On Mon, Oct 18, 2010 at 6:02 PM, Robin Dunn <robin@alldunn.com > <mailto:robin@alldunn.com>> wrote:
    On 10/18/10 1:14 AM, Lioz Cohn wrote:

--
Robin Dunn
Software Craftsman