setup.py syntax error building python-imaging
David Ripton
dripton at ripton.net
Sun May 11 03:43:57 EDT 2003
Sherwin J. Singer wrote:
> I am trying to build python-imaging on RH7.3 (so I can use Sketch). After
> successfully compiling libImaging.a, I get a syntax error trying to execute
> the setup.py program:
>
>
>>python setup.py build
>
> File "setup.py", line 191
> for fw in 'Tcl', 'Tk'
> ^
> SyntaxError: invalid syntax
>
> As far as I can tell, python-2.2 is installed, and the configure and compile
On RH 7.3, /usr/bin/python is Python 1.5.2. Python 2.2.1 is
/usr/bin/python2. You're probably running 1.5.2 when you mean to be
running 2.2.1.
To confirm, just type "python" at the shell prompt, and you'll get an
interactive prompt that includes the version number. (Control-d to exit.)
"python2 setup.py build" should do what you want.
--
David Ripton dripton at ripton.net
More information about the Python-list
mailing list