Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[Solved]Comix and PyGTK

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
blayster
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 146
Joined: Sat Jun 03, 2006 1:21 pm

[Solved]Comix and PyGTK

  • Quote

Post by blayster » Sun Oct 29, 2006 6:23 pm

I've emerged comix, and it compiled fine. But when I try to call it, is says that I need of pygtk 2.8 or higher. And I do, at /usr/share/pygtk/2.0
What can I do to comix recognize it???
Last edited by blayster on Fri Nov 03, 2006 1:37 am, edited 1 time in total.
"Hey dol! merry dol! ring a dong dillo!
Ring a dong! hop along! fal lal the willow!
Tom Bom, jolly Tom, Tom Bombadillo!"
Top
RiBBiT
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Wed May 18, 2005 7:16 am
Location: Sweden

  • Quote

Post by RiBBiT » Sun Oct 29, 2006 8:45 pm

Are you sure that PyGTK is properly installed? If you have updated Python you might have to run python-updater to fix the modules for the new version.
Comix - GTK Comic Book Viewer [ http://comix.sourceforge.net ]
Top
blayster
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 146
Joined: Sat Jun 03, 2006 1:21 pm

  • Quote

Post by blayster » Sun Oct 29, 2006 9:33 pm

Well, I've emerged PyGTK. There's a wrong way to emerge it??
When I try "python-updater" it says that could not determine any previous python version :/
Thx for attention!
"Hey dol! merry dol! ring a dong dillo!
Ring a dong! hop along! fal lal the willow!
Tom Bom, jolly Tom, Tom Bombadillo!"
Top
RiBBiT
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Wed May 18, 2005 7:16 am
Location: Sweden

  • Quote

Post by RiBBiT » Sun Oct 29, 2006 9:44 pm

What is the exact error message?
Comix - GTK Comic Book Viewer [ http://comix.sourceforge.net ]
Top
blayster
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 146
Joined: Sat Jun 03, 2006 1:21 pm

  • Quote

Post by blayster » Sun Oct 29, 2006 10:00 pm

This:

Code: Select all

blayster@localhost ~ $ comix
PyGTK version 2.8.0 or higher is required to run Comix.
blayster@localhost ~ $ 
"Hey dol! merry dol! ring a dong dillo!
Ring a dong! hop along! fal lal the willow!
Tom Bom, jolly Tom, Tom Bombadillo!"
Top
blayster
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 146
Joined: Sat Jun 03, 2006 1:21 pm

  • Quote

Post by blayster » Sun Oct 29, 2006 10:11 pm

I must confess that I'm facing some directories problems here... At the comix bin we have:

Code: Select all

try:
    import pygtk
    pygtk.require('2.0')
    import gtk
    assert gtk.gtk_version >= (2, 8, 0)
    assert gtk.pygtk_version >= (2, 8, 0)
    import pango
    import gobject
except AssertionError:
    print ('You do not have the required versions of GTK+ and/or PyGTK ' +
    'installed.\n\n' +
    'Installed GTK+ version is ' + 
    '.'.join([str(n) for n in gtk.gtk_version]) + '\n' +
    'Required GTK+ version is 2.8.0 or higher\n\n'
    'Installed PyGTK version is ' + 
    '.'.join([str(n) for n in gtk.pygtk_version]) + '\n' +
    'Required PyGTK version is 2.8.0 or higher')
    sys.exit(1)
So, I believe that python is not finding PyGTK. In which directory it should be???

EDIT#1: I don't know why, but I have 2 PyGTK directories: /usr/lib/pygtk and /usr/share/pygtk. Is this rigth??
"Hey dol! merry dol! ring a dong dillo!
Ring a dong! hop along! fal lal the willow!
Tom Bom, jolly Tom, Tom Bombadillo!"
Top
RiBBiT
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Wed May 18, 2005 7:16 am
Location: Sweden

  • Quote

Post by RiBBiT » Sun Oct 29, 2006 10:37 pm

Yes, seems like PyGTK can't be found. Those two dirs are normal.

Are you using Python 2.4? What does the following tell you?

Code: Select all

ls /usr/lib/python2.4/site-packages/ | grep pygtk
By the way, what version of Comix do you have? That looks like an error message from 3.4 or earlier, and the earlierst version in portage is 3.5.1...
Comix - GTK Comic Book Viewer [ http://comix.sourceforge.net ]
Top
blayster
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 146
Joined: Sat Jun 03, 2006 1:21 pm

  • Quote

Post by blayster » Sun Oct 29, 2006 11:17 pm

Code: Select all

blayster@Imensirval ~ $ ls /usr/lib/python2.4/site-packages/ | grep pygtk
pygtk.pth
pygtk.pth-2.0
pygtk.py
pygtk.py-2.0
pygtk.pyc
pygtk.pyo
blayster@Imensirval ~ $ 
Yeah, I'm using comix-3.5.1
It used to work some days ago, since I've start to have some problems with python diretcories. Comix is not the only program with this trouble :S OpenRPG can't find the wxPython...
"Hey dol! merry dol! ring a dong dillo!
Ring a dong! hop along! fal lal the willow!
Tom Bom, jolly Tom, Tom Bombadillo!"
Top
RiBBiT
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Wed May 18, 2005 7:16 am
Location: Sweden

  • Quote

Post by RiBBiT » Mon Oct 30, 2006 12:28 am

Hmm, that does not look like Comix 3.5.1. Are you sure that you don't have some old version installed somewhere, /usr/local perhaps?

Not that it will help with your current problem, but anyway.

Try running revdep-rebuild, or re-emerge gtk+ and pygtk.
Comix - GTK Comic Book Viewer [ http://comix.sourceforge.net ]
Top
blayster
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 146
Joined: Sat Jun 03, 2006 1:21 pm

  • Quote

Post by blayster » Mon Oct 30, 2006 10:23 pm

Ow God... all this come when I was unmerging some things ( for a depclean, AH, I'M A NOOB!! ), and for a distraction of mine, I forgot that python is excencial for portage. Then I made "emerge -C python" and a lot of other packages, and let the PC doing the job... and then, when I come back was too late. Then, I downloaded python and mannually instaled it. Portage worked, but then this dammit things with directories start to happens...
Now, I don't know exactly how, comix start to work, but OpenRPG still at the same thing. This is the error:

Code: Select all

blayster@localhost ~ $ openrpg


Importing wxPython Failed! You must install wxPython for OpenRPG to run
Download the latest version here: http://www.openrpg.com/orpgnuke/modules.php?name=GetORPG
Traceback (most recent call last):
  File "/usr/games/bin/openrpg", line 12, in ?
    import orpg.main
  File "/usr/games/lib/openrpg/orpg/main.py", line 35, in ?
    from orpg.orpg_windows import *
  File "/usr/games/lib/openrpg/orpg/orpg_windows.py", line 99, in ?
    class wxBoxedSizer(wxPanel):
NameError: name 'wxPanel' is not defined
blayster@localhost ~ $ 
wxPython is installed. I tried to re-emerge it, tried revdep-rebuild of wxpython, python, and almost everything but the error still the same...
"Hey dol! merry dol! ring a dong dillo!
Ring a dong! hop along! fal lal the willow!
Tom Bom, jolly Tom, Tom Bombadillo!"
Top
Post Reply

10 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic