quickly refuses to run newly created application

Bug #734050 reported by Tony Wieczorek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Quickly
New
Undecided
Unassigned

Bug Description

Hi! On a recently updated Natty installation, I run "quickly create ubuntu-application myproject" and I get this:

Creating project directory myproject
Creating bzr repository and committing
Launching your newly created project!le 0/1
Traceback (most recent call last):
  File "./myproject", line 35, in <module>
    from myproject import (BaseMyprojectWindow)
  File "/home/tonyjw/Projects/myproject/myproject/BaseMyprojectWindow.py", line 9, in <module>
    from myproject import (
  File "/home/tonyjw/Projects/myproject/myproject/AboutMyprojectDialog.py", line 8, in <module>
    from myproject.helpers import get_builder
  File "/home/tonyjw/Projects/myproject/myproject/helpers.py", line 12, in <module>
    from myproject.Builder import Builder
  File "/home/tonyjw/Projects/myproject/myproject/Builder.py", line 8, in <module>
    from gi.repository import GObject # pylint: disable=E0611
  File "/usr/lib/pymodules/python2.7/gi/__init__.py", line 23, in <module>
    from ._gi import _API, Repository
ImportError: /usr/lib/pymodules/python2.7/gi/_gi.so: undefined symbol: g_irepository_enumerate_versions
Congrats, your new project is setup! cd /home/tonyjw/Projects/myproject/ to start hacking.

The directory is created on the filesystem, and it looks like a Quickly app should look. However, running the app through quickly gives a similar result:
$ cd myproject/
$ quickly run
Traceback (most recent call last):
  File "bin/myproject", line 35, in <module>
    from myproject import (BaseMyprojectWindow)
  File "/home/tonyjw/Projects/myproject/myproject/BaseMyprojectWindow.py", line 9, in <module>
    from myproject import (
  File "/home/tonyjw/Projects/myproject/myproject/AboutMyprojectDialog.py", line 8, in <module>
    from myproject.helpers import get_builder
  File "/home/tonyjw/Projects/myproject/myproject/helpers.py", line 12, in <module>
    from myproject.Builder import Builder
  File "/home/tonyjw/Projects/myproject/myproject/Builder.py", line 8, in <module>
    from gi.repository import GObject # pylint: disable=E0611
  File "/usr/lib/pymodules/python2.7/gi/__init__.py", line 23, in <module>
    from ._gi import _API, Repository
ImportError: /usr/lib/pymodules/python2.7/gi/_gi.so: undefined symbol: g_irepository_enumerate_versions

Quickly Version:
Quickly 11.03.1
  Python interpreter: /usr/bin/python 2.7.1
  Python standard library: /usr/lib/python2.7

  Quickly used library: /usr/lib/python2.7/dist-packages/quickly
  Quickly data path: /usr/share/quickly
  Quickly detected template directories:
          /usr/share/quickly/templates/

Revision history for this message
Tony Byrne (tony-badwolf) wrote :

I've met this before running a quickly app outside ubuntu. What worked for me was to replace

from gi.repository import GObject # pylint: disable=E0611

with

try:
    from gi.repository import GObject # pylint: disable=E0611
except ImportError:
    import gobject as GObject

I don't have Natty so cannot test this in your environment. Can you try this and give us some feedback. patch attached

Revision history for this message
Michael Terry (mterry) wrote :

Sounds like a missing dependency on gir1.2-gobject...

Revision history for this message
Michael Terry (mterry) wrote :

Actually, nevermind. The real error here is "/usr/lib/pymodules/python2.7/gi/_gi.so: undefined symbol: g_irepository_enumerate_versions" which doesn't seem like a quickly error. Searching around doesn't give me any useful instances of this happening to other people...

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.