PythonMagick fails to configure

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
treaves
Posts: 12
Joined: 2011-04-14T10:48:35-07:00
Authentication code: 8675308

PythonMagick fails to configure

Post by treaves »

The latest download of PythonMagick fails to configure with:
checking for a Python interpreter with version >= 3.1... none
configure: error: no suitable Python interpreter found


Does it really require a version of Python at least 3.1?
suinonatante
Posts: 1
Joined: 2011-08-07T03:36:51-07:00
Authentication code: 8675308

Re: PythonMagick fails to configure

Post by suinonatante »

same problem here on a machine with debian testing, i can't install last version of pythonmagick.
DrLou
Posts: 2
Joined: 2011-12-02T17:10:22-07:00
Authentication code: 8675308

Re: PythonMagick fails to configure

Post by DrLou »

Seeing the same issue here - the message:

Code: Select all

checking for a Python interpreter with version >= 3.1... none

We do have installs of Python 2.6 and 3.2 (though would prefer to stick with 2.6 for the moment). We're experimenting with various incantations of The PYTHON env variable on the configure line.

Am also beginning to look into the configure script itself, but would rather not fiddle with someone else's work - and I'd probably do more damage than good! It does look like the script is designed to accommodate both major versions of Python, but I'm not the guy to fix it...

Can someone help, please? Lou
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: PythonMagick fails to configure

Post by magick »

We tried PythonMagick with both Python 2.6 (CentOS) and 2.7 (Fedora) and it compiled and installed without complaint. We're not sure why its failing for you.
aklhfex
Posts: 2
Joined: 2012-01-25T12:32:16-07:00
Authentication code: 8675308

Re: PythonMagick fails to configure

Post by aklhfex »

aklhfex
Posts: 2
Joined: 2012-01-25T12:32:16-07:00
Authentication code: 8675308

Re: PythonMagick fails to configure

Post by aklhfex »

Looks like there are a couple of other fixes used too:

Code: Select all

sed -e "s/AM_PATH_PYTHON(3.1)/AM_PATH_PYTHON(2.6)/" -i configure.ac
sed -e "s/import _PythonMagick/from . import _PythonMagick/" -i PythonMagick/__init__.py 
Post Reply