Ticket #433 (closed bug: invalid)

Opened 2 years ago

AssertionError: pygtk.require() must be called before import

Reported by: atenrok Owned by: theli
Priority: minor Milestone:
Component: Other Version: 0.5beta1
Keywords: Cc:

Description

I've compiled Listen succesfully, made and rpm with checkinstall (my system is FC4), and here is what I get trying to run it.

$ listen Traceback (most recent call last):

File "/usr/lib/listen/listen.py", line 38, in ?

pygtk.require("2.0")

File "/usr/lib/python2.4/site-packages/pygtk.py",

line 69, in require

assert not sys.modules.has_key('gtk'), \

AssertionError?: pygtk.require() must be called before importing gtk

what is the reason, and how to fix this?

Change History

Changed 2 years ago by atenrok

Logged In: YES user_id=1422382

Just forgot to mention - after that listen just fails to star.

Changed 2 years ago by nobody

Logged In: NO

You only need move import gnome gnome.aut...

after

pygtk.require(..)

Changed 2 years ago by atenrok

Logged In: YES user_id=1422382

ok. Got it done. And now I get

[sashko ~]$ listen No musicbrainz2 support No musicbrainz2 support No Audio cd support Traceback (most recent call last):

File "/usr/lib/listen/listen.py", line 208, in ?

ListenApp?()

File "/usr/lib/listen/listen.py", line 135, in init

from widget.listen import Listen

File "/usr/lib/listen/widget/listen.py", line 37, in ?

from widget.source_ui import SourceUI

File "/usr/lib/listen/widget/source_ui.py", line 39, in ?

from source.info_source import *

File "/usr/lib/listen/source/info_source.py", line 26, in ?

from widget.webinfo import *

File "/usr/lib/listen/widget/webinfo.py", line 53, in ?

import widget.mozembed_wrap

File "/usr/lib/listen/widget/mozembed_wrap.py", line 22, in ?

import gtkmozembed

ImportError?: libgtkembedmoz.so: cannot open shared object file: No such file or directory

though, [sashko ~]$ rpm -qa | grep gtkmozembed gnome-python2-gtkmozembed-2.12.1-1.1.fc4.nr [sashko ~]$ rpm -qi gnome-python2-gtkmozembed Name : gnome-python2-gtkmozembed Relocations: (not relocatable) Version : 2.12.1 Vendor: nrpms.net Release : 1.1.fc4.nr Build Date: Sat 05 Nov 2005 07:16:26 AM EST Install Date: Wed 20 Sep 2006 09:54:10 AM EDT Build Host: pazu.castleinthesky.org Group : Development/Languages Source RPM: gnome-python2-extras-2.12.1-1.1.fc4.nr.src.rpm Size : 82803 License: GPL/LGPL Signature : (none) Packager : Matthew Hall Summary : Python bindings for interacting with gtkmozembed Description : This module contains a wrapper that allows the use of gtkmozembed via Python.

What am I doing wrong?

Changed 2 years ago by theli

  • status changed from assigned to closed
Note: See TracTickets for help on using tickets.