Doesn't work with python2.6

Bug #350356 reported by Alan Bell
152
This bug affects 29 people
Affects Status Importance Assigned to Milestone
flumotion (Ubuntu)
Fix Released
Undecided
Loïc Minier

Bug Description

Binary package hint: flumotion

in Jaunty daily build Flumotion administrator won't start

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/flumotion-admin
InterpreterPath: /usr/bin/python2.6
Package: flumotion 0.4.2-3.1ubuntu1
ProcCmdline: /usr/bin/python /usr/bin/flumotion-admin
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_GB.UTF-8
PythonArgs: ['/usr/bin/flumotion-admin']
SourcePackage: flumotion
Title: flumotion-admin crashed with ImportError in load_dynamic()
Uname: Linux 2.6.28-11-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Alan Bell (alanbell) wrote :
Revision history for this message
ThiloPfennig (tpfennig) wrote :

I have the same issue:
ImportError: could not import gobject (error was: 'import_module() takes at most 5 arguments (6 given)')

Revision history for this message
raul.martinez (woody-sud) wrote :

Problem too
Architecture: amd64
distro: 9.04

root@diseno01:/# flumotion-admin
Traceback (most recent call last):
  File "/usr/bin/flumotion-admin", line 44, in <module>
    boot.boot(PROGRAM_PATH, gtk=True)
  File "/usr/lib/flumotion/python/flumotion/common/boot.py", line 189, in boot
    main = reflect.namedAny(path)
  File "/usr/lib/flumotion/python/flumotion/twisted/reflect.py", line 49, in namedAny
    topLevelPackage = __import__(trialname)
  File "/usr/lib/python2.6/ihooks.py", line 407, in import_module
    m = self.load_tail(q, tail)
  File "/usr/lib/python2.6/ihooks.py", line 458, in load_tail
    m = self.import_it(head, mname, m)
  File "/usr/lib/python2.6/ihooks.py", line 497, in import_it
    m = self.loader.load_module(fqname, stuff)
  File "/usr/lib/python2.6/ihooks.py", line 272, in load_module
    m = self.hooks.load_source(name, filename, file)
  File "/usr/lib/python2.6/ihooks.py", line 170, in load_source
    return imp.load_source(name, filename, file)
  File "/usr/lib/flumotion/python/flumotion/admin/gtk/main.py", line 27, in <module>
    import gtk.glade
  File "/usr/lib/python2.6/ihooks.py", line 407, in import_module
    m = self.load_tail(q, tail)
  File "/usr/lib/python2.6/ihooks.py", line 458, in load_tail
    m = self.import_it(head, mname, m)
  File "/usr/lib/python2.6/ihooks.py", line 497, in import_it
    m = self.loader.load_module(fqname, stuff)
  File "/usr/lib/python2.6/ihooks.py", line 270, in load_module
    m = self.hooks.load_dynamic(name, filename, file)
  File "/usr/lib/python2.6/ihooks.py", line 174, in load_dynamic
    return imp.load_dynamic(name, filename, file)
ImportError: could not import gobject (error was: 'import_module() takes at most 5 arguments (6 given)')
root@diseno01:/#

Revision history for this message
Jan Urbański (wulczer) wrote :

The fix for this issue (Python 2.6 compatibility) has been committed and will be included in the upcoming 0.6.0 release.

Changed in flumotion (Ubuntu):
status: New → Fix Committed
Revision history for this message
wizwiz50 (wizwiz50) wrote :

Same issue with 9.10.

I did an ugly fix :

1) Install python 2.5, you might do :
sudo apt-get install python-all

2) Edit the first line of /usr/bin/flumotion-manager
Replace : #!/usr/bin/python
With : #!/usr/bin/python2.5

3) Edit the first line of /usr/bin/flumotion-worker
Replace : #!/usr/bin/python
With : #!/usr/bin/python2.5

Revision history for this message
Loïc Minier (lool) wrote :

This will be fixed in 0.6.1-1 in lucid which is about to be uploaded.

summary: - flumotion-admin crashed on opening with ImportError in load_dynamic()
+ Doesn't work with python2.6
Changed in flumotion (Ubuntu):
assignee: nobody → Loïc Minier (lool)
Loïc Minier (lool)
Changed in flumotion (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Kerry Hatcher (kerry.hatcher) wrote :

Just installed Flumotion on Ubuntu 9.10 and I'm getting this error:

Traceback (most recent call last):
  File "/usr/bin/flumotion-admin", line 44, in <module>
    boot.boot(PROGRAM_PATH, gtk=True)
  File "/usr/lib/flumotion/python/flumotion/common/boot.py", line 189, in boot
    main = reflect.namedAny(path)
  File "/usr/lib/flumotion/python/flumotion/twisted/reflect.py", line 49, in namedAny
    topLevelPackage = __import__(trialname)
  File "/usr/lib/python2.6/ihooks.py", line 407, in import_module
    m = self.load_tail(q, tail)
  File "/usr/lib/python2.6/ihooks.py", line 458, in load_tail
    m = self.import_it(head, mname, m)
  File "/usr/lib/python2.6/ihooks.py", line 497, in import_it
    m = self.loader.load_module(fqname, stuff)
  File "/usr/lib/python2.6/ihooks.py", line 272, in load_module
    m = self.hooks.load_source(name, filename, file)
  File "/usr/lib/python2.6/ihooks.py", line 170, in load_source
    return imp.load_source(name, filename, file)
  File "/usr/lib/flumotion/python/flumotion/admin/gtk/main.py", line 27, in <module>
    import gtk.glade
  File "/usr/lib/python2.6/ihooks.py", line 407, in import_module
    m = self.load_tail(q, tail)
  File "/usr/lib/python2.6/ihooks.py", line 458, in load_tail
    m = self.import_it(head, mname, m)
  File "/usr/lib/python2.6/ihooks.py", line 497, in import_it
    m = self.loader.load_module(fqname, stuff)
  File "/usr/lib/python2.6/ihooks.py", line 270, in load_module
    m = self.hooks.load_dynamic(name, filename, file)
  File "/usr/lib/python2.6/ihooks.py", line 174, in load_dynamic
    return imp.load_dynamic(name, filename, file)
ImportError: could not import gobject (error was: 'import_module() takes at most 5 arguments (6 given)')

Revision history for this message
Kerry Hatcher (kerry.hatcher) wrote :

Just installed using https://launchpad.net/~arkadini/+archive/flumotion. The install works and the app runs. I have not tested the functionality, just that it gets up and running.

Revision history for this message
Loïc Minier (lool) wrote :

@Kerry: which version did you install from 9.10?

Revision history for this message
Loïc Minier (lool) wrote :

@Kerry: just noticed that flumotion failed to build on amd64; was just a transient build failure, given back now. If you were running amd64, please try again when version >= 0.6 is available. (I thought I would get a failed to build mail in this case, but apparently you don't get any when the package is copied from Debian.)

Revision history for this message
logari81 (logari81) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.