Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printool doesn't work with python 2.2

Status
Not open for further replies.

Alainovitch

Programmer
Apr 5, 2002
7
FR
I have installed RH 7.1 then python 2.2 (Rebuilt from the SRPM on python site)
but some problems occured when executing printool :
cannot import gtk, gnome.ui, libglade.
Then i installed tkinter but nothing more, it is still impossible to import gtk, ...
I tried with python 1.5 and everthing works correctly.
Is there any problems between python 2.2 and printtool ??
Naturally i really need python 2.2 ...
What should i add to the python 2.2 installation for printtol to works correctly

The sys.path was OK then.
I have downloaded pygtk (pygtk-0.6.8-3.i386.rpm), pygnome (pygnome-1.4.1-3.i386.rpm), and pygtk-libglade (pygtk-libglade-0.6.6-7.i386.rpm) then i uninstalled python1.5, 2.2 and everything related to them.
I reinstalled only python 2.2 (python2-2.2-2.src.rpm), tkinter (python2-tkinter-2.2-2.i386.rpm) then i installed the pytgk, pygnome, pygtk-libglade and during the installation a directory lib/python1.5 was created and gtk, gnome ...etc were installed in it (obviously i had exectly the same behavior with import gtk since i launched python2.2 which point on python2.2 directory).
I presumed the versions i downloaded are python1.5 compatible but i can figure out where to find pygtk, pygnome, and pygtk-libglade for python2.2.

Once again thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top