[Python-bugs-list] [ python-Bugs-436103 ] Compiling pygtk
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 24 Jul 2001 11:08:58 -0700
Bugs item #436103, was opened at 2001-06-25 07:36
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=436103&group_id=5470
Category: Extension Modules
Group: None
>Status: Closed
>Resolution: Works For Me
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compiling pygtk
Initial Comment:
Hello,
I wanted to install Narval from (www.logilab.org)
I install Python 2.1 and i try to install pygtk.
And i get this error
Like i am a newbie it's perhaps nothing from python
narval@tst03cn:~/install/pygtk-0.6.6$ make
make all-recursive
make[1]: Entering directory
`/home/narval/install/pygtk-0.6.6'
Making all in generate
make[2]: Entering directory
`/home/narval/install/pygtk-0.6.6/generate'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/narval/install/pygtk-0.6.6/generate'
Making all in pyglade
make[2]: Entering directory
`/home/narval/install/pygtk-0.6.6/pyglade'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/narval/install/pygtk-0.6.6/pyglade'
make[2]: Entering directory
`/home/narval/install/pygtk-0.6.6'
cd . && /usr/bin/python mkgtk.py
'import site' failed; use -v for traceback
Traceback (innermost last):
File "mkgtk.py", line 5, in ?
import generate
File "./generate/generate.py", line 1, in ?
import os
File "/home/narval/lib/python2.1/os.py", line 37
return [n for n in dir(module) if n[0] != '_']
^
SyntaxError: invalid syntax
make[2]: *** [gtkmodule_defs.c] Error 1
make[2]: Leaving directory
`/home/narval/install/pygtk-0.6.6'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/narval/install/pygtk-0.6.6'
make: *** [all-recursive-am] Error 2
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2001-07-24 11:08
Message:
Logged In: YES
user_id=21627
Since there was no feedback on whether the proposed fix
solves the problem, I close the report.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2001-06-26 15:01
Message:
Logged In: YES
user_id=21627
You should be using Python 2.1 to execute this code. As
you can see, /usr/bin/python mkgtk.py is invoked, which
probably is not 2.1. Make sure your Python installation is
found before /usr/bin/python is.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=436103&group_id=5470