This python version requires swig to be run

Hi,

I’ve just tried to compile my DVB-T application on a Fedora 7 system
which has Python 2.5 instead of 2.4 installed.

I get this:

dvb.cc:139:20: error: Python.h: No such file or directory
dvb.cc:2539:4: error: #error “This python version requires swig to be
run
with the ‘-classic’ option”
dvb.cc:2543:3: error: #error “This python version requires swig to be
run
with the ‘-nomodern’ option”
dvb.cc:2546:3: error: #error “This python version requires swig to be
run
with the ‘-nomodernargs’ option”

when I try to make check my code…

what am I doing wrong…? / where should I look to change necessary
options
to keep uo with Python changes?

many thanks

On Wed, Dec 12, 2007 at 04:14:25PM +0100, Vincenzo P. wrote:

dvb.cc:2543:3: error: #error "This python version requires swig to be run


Vincenzo P.

FWIW, I use Fedora 7 with no problems on both 32 and 64-bit machines.

Are you using configure to locate python? The first error indicates
that it’s not finding the include directory that contains Python.h.

Eric

Vincenzo P. wrote:

Hi,

I’ve just tried to compile my DVB-T application on a Fedora 7 system
which has Python 2.5 instead of 2.4 installed.

I get this:

dvb.cc:139:20: error: Python.h: No such file or directory

A missing python.h file usually means you don’t have python-devel
installed.

Matt