Bug 718791

Summary: ImportError: could not import gnomecanvas
Product: [Fedora] Fedora Reporter: Harald Reindl <h.reindl>
Component: soundconverterAssignee: Michael Schwendt <bugs.michael>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: bugs.michael, lxtnow
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: soundconverter-1.5.4-6.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-15 01:24:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Harald Reindl 2011-07-04 15:57:29 UTC
i guess there are missing dependencies in the package becuse on a clean system i get the following messages try to start, for a moment a windows is opened and suddenly closes 

[harry@rh:~]$ soundconverter 
SoundConverter 1.5.4
ImportError: could not import gnomecanvas
ImportError: cannot import name DockItem from bonobo.ui
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
  using Gstreamer version: 0.10.34
  using gio
        'xingmux' gstreamer element not found, disabling Xing Header.
        'lame' gstreamer element not found, disabling MP3.
        'faac' gstreamer element not found, disabling AAC.
  using 8 thread(s)

(soundconverter:978): libglade-WARNING **: unknown widget class 'GnomeAbout'
/usr/bin/soundconverter:2881: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  glade = gtk.glade.XML(GLADE)
Traceback (most recent call last):
  File "/usr/bin/soundconverter", line 2989, in <module>
    main(args)
  File "/usr/bin/soundconverter", line 2981, in main
    gui_main(args)
  File "/usr/bin/soundconverter", line 2882, in gui_main
    win = SoundConverterWindow(glade)
  File "/usr/bin/soundconverter", line 2609, in __init__
    self.about.set_property('version', VERSION)
TypeError: object of type `GtkLabel' does not have property `version'

Comment 1 Michael Schwendt 2011-07-04 17:42:07 UTC
> i guess there are missing dependencies in the package

The question is: In _which_ package?


> ImportError: could not import gnomecanvas
> ImportError: cannot import name DockItem from bonobo.ui

These are not within Soundconverter, however.


> becuse on a clean system

Define "clean".

Also notice bug 689836 which has not been responded to yet, unfortunately. It has caused soundconverter bug 688780 some months ago.

Comment 2 Michael Schwendt 2011-07-04 17:46:40 UTC
"gnome-python2-canvas" should be one package. Mission objective: To find out where it is needed.

> cannot import name DockItem from bonobo.ui

No quick idea.

Comment 3 Michael Schwendt 2011-07-04 17:49:03 UTC
"rpm -e gnome-python2-canvas --nodeps" is enough to reproduce. Installing the package fixes the issue.

# rpm -e gnome-python2-canvas
error: Failed dependencies:
	gnome-python2-canvas is needed by (installed) system-config-date-1.9.61-2.fc15.noarch
	gnome-python2-canvas >= 2.10.0 is needed by (installed) gnome-python2-desktop-2.32.0-4.fc15.x86_64

Comment 4 Harald Reindl 2011-07-04 17:58:51 UTC
> The question is: In _which_ package?

"soundconverter" because packages required by another must not be removeable with a normal yum command

> Define "clean"

removed all not active used packages which are no dependenciy for other installed

> "rpm -e gnome-python2-canvas --nodeps" is enough to reproduce. 
> Installing the package fixes the issue

thanks

please complete the dependencies for soundconverter

Comment 5 Fedora Update System 2011-07-04 18:01:04 UTC
soundconverter-1.5.4-6.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/soundconverter-1.5.4-6.fc15

Comment 6 Michael Schwendt 2011-07-04 18:11:50 UTC
/usr/bin/soundconverter  does:

# GNOME and related stuff.
try:
	import pygtk
	pygtk.require('2.0')
	import gtk
	import gtk.glade
	import gnome
	import gnome.ui
	gnome.ui.authentication_manager_init()
	import gconf
	import gobject
	gobject.threads_init()
	import gnomevfs

Obviously it does not do:

  import gnomecanvas
  import bonobo.ui

And the package does:

$ rpm -qR soundconverter|grep -v rpm|grep -v /sh
/usr/bin/python  
gnome-python2-bonobo  
gnome-python2-gconf  
gnome-python2-gnome  
gstreamer-plugins-base  
gstreamer-plugins-good  
gstreamer-python  
notify-python  
pygtk2  

You can see that it depends on gnome-python2-gnome (for gnome.ui) and the others it depends on directly. So, actually the dependency is missing in gnome-python2-gnome similar to bug 689836.

Comment 7 Fedora Update System 2011-07-06 21:28:09 UTC
Package soundconverter-1.5.4-6.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing soundconverter-1.5.4-6.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/soundconverter-1.5.4-6.fc15
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2011-07-15 01:24:30 UTC
soundconverter-1.5.4-6.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.