Python 2.4 support

Hi,

i would like to know if python 2.4 is supported?
I tried to build on CentOS 5.2 i686 (gcc (GCC) 4.1.2 20071124 (Red Hat
4.1.2-42); Python 2.4.3 (#1, May 24 2008, 13:47:28))
and I’m getting the following errors (extracted from the rpmbuild log -
I can send the whole log if necessary):

  • /usr/bin/cmake -DCMAKE_VERBOSE_MAKEFILE=ON
    -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib
    -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib
    -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share
    -DCMAKE_SKIP_RPATH:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON
    -DCMAKE_BUILD_TYPE=Release -DENABLE_GLSL=ON -DENABLE_PYTHON=ON
    -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=lib …
    – The C compiler identification is GNU
    – The CXX compiler identification is GNU
    – Check for working C compiler: /usr/bin/gcc
    – Check for working C compiler: /usr/bin/gcc – works
    – Detecting C compiler ABI info
    – Detecting C compiler ABI info - done
    – Check for working CXX compiler: /usr/bin/c++
    – Check for working CXX compiler: /usr/bin/c++ – works
    – Detecting CXX compiler ABI info
    – Detecting CXX compiler ABI info - done
    – The build type is Release
    – Performing Test HAVE_GCC_VISIBILITY
    – Performing Test HAVE_GCC_VISIBILITY - Success
    – Performing Test COMPILES_WITHOUT_FPERMISSIVE
    – Performing Test COMPILES_WITHOUT_FPERMISSIVE - Success
    – Looking for Q_WS_X11
    – Looking for Q_WS_X11 - found
    – Looking for Q_WS_WIN
    – Looking for Q_WS_WIN - not found.
    – Looking for Q_WS_QWS
    – Looking for Q_WS_QWS - not found.
    – Looking for Q_WS_MAC
    – Looking for Q_WS_MAC - not found.
    – Found Qt-Version 4.4.3
    – Found OpenSSL: /usr/lib/libssl.so
    – Looking for _POSIX_TIMERS
    – Looking for _POSIX_TIMERS - found
    – Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
    – Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so -
    found
    – Looking for gethostbyname
    – Looking for gethostbyname - found
    – Looking for connect
    – Looking for connect - found
    – Looking for remove
    – Looking for remove - found
    – Looking for shmat
    – Looking for shmat - found
    – Looking for IceConnectionNumber in ICE
    – Looking for IceConnectionNumber in ICE - found
    – Found X11: /usr/lib/libX11.so
    – checking for module ‘openbabel-2.0>=2.2.0’
    – found openbabel-2.0, version 2.2.0
    – Found OpenBabel 2.2 or later: openbabel
    – Found OpenBabel2 executable: /usr/bin/babel
    – Found lupdate: /usr/lib/qt44/bin/lupdate
    – Found lrelease: /usr/lib/qt44/bin/lrelease
    – Found Eigen2: /usr/include/eigen2
    – Searching for python dependencies…
    – [1/5] Boost Python
    – Boost version: 1.33.1
    – Found the following Boost libraries:
    – python
    – Boost Python found…
    – [2/5] Python Libraries
    – Found PythonLibs: /usr/lib/python2.4/config/libpython2.4.a
    – [3/5] Python Interpreter
    – Found PythonInterp: /usr/bin/python2.4
    – [4/5] Numpy Module
    – Numpy headers found
    – [5/5] SIP Module
    – Found sip.h header…
    – All python dependencies found - Python support enabled
    – GLEW found and GLSL support enabled
    – Threaded OpenGL rendering not enabled
    – Setting new boost python libraries
    – Enabled python terminal
    – Python site-packages directory: /usr/lib/python2.4/site-packages
    – Configuring done
    – Generating done

cd
/usr/src/redhat/BUILD/avogadro-0.9.2/i386-redhat-linux-gnu/libavogadro/src
&& /usr/bin/c++ -D_BSD_SOURCE -DHAVE_GCC_VISIBILITY -DENABLE_PYTHON
-DENABLE_GLSL -DQT_DLL -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_NO_DEBUG -Davogadro_lib_EXPORTS -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
–param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi
-Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
-Wformat-security -fno-check-new -fno-common -pedantic
-fvisibility=hidden -fpermissive -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC
-I/usr/lib/qt44/include -I/usr/lib/qt44/include/QtOpenGL
-I/usr/lib/qt44/include/QtGui -I/usr/lib/qt44/include/QtCore
-I/usr/src/redhat/BUILD/avogadro-0.9.2/libavogadro/include
-I/usr/src/redhat/BUILD/avogadro-0.9.2
-I/usr/src/redhat/BUILD/avogadro-0.9.2/i386-redhat-linux-gnu/libavogadro/src
-I/usr/include/eigen2 -I/usr/include/openbabel-2.0
-I/usr/include/python2.4 -o
CMakeFiles/avogadro-lib.dir/pythontool.cpp.o -c
/usr/src/redhat/BUILD/avogadro-0.9.2/libavogadro/src/pythontool.cpp
/usr/include/python2.4/object.h:343: error: expected unqualified-id
before ‘;’ token
/usr/include/python2.4/object.h:343: error: abstract declarator
’PyObject*’ used as declaration
/usr/src/redhat/BUILD/avogadro-0.9.2/libavogadro/src/pythontool.cpp: In
member function ‘QUndoCommand* Avogadro::PythonTool::mouseEvent(const
QString&, Avogadro::GLWidget*, QMouseEvent*)’:
/usr/src/redhat/BUILD/avogadro-0.9.2/libavogadro/src/pythontool.cpp:139:
warning: invalid conversion from ‘const char*’ to 'char*'
make[2]: ***
[libavogadro/src/CMakeFiles/avogadro-lib.dir/pythontool.cpp.o] Error 1

Best regards,

Marcin

i would like to know if python 2.4 is supported?

I would think it depends on your Boost/GCC combination, judging from
some of these posts:

http://mail.python.org/pipermail/cplusplus-sig/2005-December/009586.html
http://trac.mapnik.org/ticket/252

My suggestion is to get a newer version of Boost.

Cheers,
-Geoff

Hi,

with boost-1.38 I’m getting the same error.
Here is where I see a similar error and suggestion that’s a python 2.4
problem:
http://mail-index.netbsd.org/pkgsrc-wip-discuss/2009/02/02/msg001409.html

Best regards,
Marcin

Geoffrey Hutchison wrote:

i would like to know if python 2.4 is supported?

I would think it depends on your Boost/GCC combination, judging from
some of these posts:

[C++-sig] boost/python 1.33.1 breaks aliasing rules
http://trac.mapnik.org/ticket/252

My suggestion is to get a newer version of Boost.

Cheers,
-Geoff

Hi.

It seems that Avogadro implicitly depends on python 2.5.
I had the same problem in CentOS-5.2 a few months ago and
did not go any further since the system has many dependencies
on python 2.4 and I did not dare to spoil a production machine.

I think you would have to install 2.5 and modify CMakeLists.txt (?).
There is some infos in this link:
http://forum.slicehost.com/comments.php?DiscussionID=2161

Regards,

Louis

Le 17 mars 09 à 09:22, Marcin Dulak a écrit :

Hi,

with boost-1.38 I’m getting the same error.
Here is where I see a similar error and suggestion that’s a python 2.4
problem:
Build error with wip/kdebindings4-python (issue for Python < 2.5)

Best regards,
Marcin

Geoffrey Hutchison wrote:

i would like to know if python 2.4 is supported?

I would think it depends on your Boost/GCC combination, judging from
some of these posts:

[C++-sig] boost/python 1.33.1 breaks aliasing rules
http://trac.mapnik.org/ticket/252

My suggestion is to get a newer version of Boost.

Cheers,
-Geoff


Apps built with the Adobe(R) Flex(R) framework and Flex Builder™
are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly
and
easily build your RIAs with Flex Builder, the Eclipse™based
development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com


Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
avogadro-devel List Signup and Options

Hi,

thank you for the information, but i can’t go for python2.5 on CentOS
5.2 for the same reasons.
Is anybody willing to backport avogadro for python2.4?

Best regards,

Marcin

Louis Ricard wrote:

Hi.

It seems that Avogadro implicitly depends on python 2.5.
I had the same problem in CentOS-5.2 a few months ago and
did not go any further since the system has many dependencies
on python 2.4 and I did not dare to spoil a production machine.

I think you would have to install 2.5 and modify CMakeLists.txt (?).
There is some infos in this link:
http://forum.slicehost.com/comments.php?DiscussionID=2161

Regards,

Louis

Le 17 mars 09 à 09:22, Marcin Dulak a écrit :

Hi,

with boost-1.38 I’m getting the same error.
Here is where I see a similar error and suggestion that’s a python 2.4
problem:
Build error with wip/kdebindings4-python (issue for Python < 2.5)

Best regards,
Marcin

Geoffrey Hutchison wrote:

i would like to know if python 2.4 is supported?

I would think it depends on your Boost/GCC combination, judging from
some of these posts:

[C++-sig] boost/python 1.33.1 breaks aliasing rules

http://trac.mapnik.org/ticket/252

My suggestion is to get a newer version of Boost.

Cheers,
-Geoff


Apps built with the Adobe(R) Flex(R) framework and Flex Builder™ are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse™based
development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com


Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
avogadro-devel List Signup and Options