Failure on setup.py

Bug #1217892 reported by Jean Louis on 2013-08-28
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
UberWriter (moved to github!)
Undecided
Unassigned

Bug Description

$ python setup.py
Traceback (most recent call last):
  File "setup.py", line 163, in <module>
    'pylocales' : ['locales.db']
  File "/usr/lib/python2.7/dist-packages/DistUtilsExtra/auto.py", line 98, in setup
    __requires(attrs, src_all)
  File "/usr/lib/python2.7/dist-packages/DistUtilsExtra/auto.py", line 470, in __requires
    __add_imports(imports, s, attrs)
  File "/usr/lib/python2.7/dist-packages/DistUtilsExtra/auto.py", line 404, in __add_imports
    if alias.name and __external_mod(cur_module, alias.name, attrs):
  File "/usr/lib/python2.7/dist-packages/DistUtilsExtra/auto.py", line 353, in __external_mod
    mod = __import__(cur_module + '.' + module)
  File "/home/data1/protected/Downloads/uberwriter_bugfixes/uberwriter_lib/__init__.py", line 22, in <module>
    from . helpers import set_up_logging
  File "/home/data1/protected/Downloads/uberwriter_bugfixes/uberwriter_lib/helpers.py", line 24, in <module>
    from . Builder import Builder
  File "/home/data1/protected/Downloads/uberwriter_bugfixes/uberwriter_lib/Builder.py", line 21, in <module>
    from gi.repository import GObject, Gtk # pylint: disable=E0611
  File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 68, in load_module
    dynamic_module._load()
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 291, in _load
    overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
  File "/usr/lib/python2.7/dist-packages/gi/overrides/GObject.py", line 59, in <module>
    globals()[name] = gi.overrides.deprecated(getattr(GLib, name), 'GLib.' + name)
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 316, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 135, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.GLib' object has no attribute 'uri_list_extract_uris

Wolf Vollprecht (w-vollprecht) wrote :

Hi,

the setup.py isn't actually a complete setup tool, because I used "quickly" from Canonical for my initial development and it was autogenerated but somehow never meant to correctly work. Please don't ask me why that is...

What works is building a debian packet and install with aptitude ...

Or which distro are you on?

Cheers,

Wolf

Jean Louis (jlbugreports) wrote :

Trying to build Debian package on Debian:

$ ./debian/rules build
dh build --with python2
   dh_testdir
   dh_auto_configure
   dh_auto_build
Traceback (most recent call last):
  File "setup.py", line 163, in <module>
    'pylocales' : ['locales.db']
  File "/usr/lib/python2.7/dist-packages/DistUtilsExtra/auto.py", line 98, in setup
    __requires(attrs, src_all)
  File "/usr/lib/python2.7/dist-packages/DistUtilsExtra/auto.py", line 470, in __requires
    __add_imports(imports, s, attrs)
  File "/usr/lib/python2.7/dist-packages/DistUtilsExtra/auto.py", line 404, in __add_imports
    if alias.name and __external_mod(cur_module, alias.name, attrs):
  File "/usr/lib/python2.7/dist-packages/DistUtilsExtra/auto.py", line 353, in __external_mod
    mod = __import__(cur_module + '.' + module)
  File "/home/data1/protected/Downloads/uberwriter_bugfixes/uberwriter_lib/__init__.py", line 22, in <module>
    from . helpers import set_up_logging
  File "/home/data1/protected/Downloads/uberwriter_bugfixes/uberwriter_lib/helpers.py", line 24, in <module>
    from . Builder import Builder
  File "/home/data1/protected/Downloads/uberwriter_bugfixes/uberwriter_lib/Builder.py", line 21, in <module>
    from gi.repository import GObject, Gtk # pylint: disable=E0611
  File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 68, in load_module
    dynamic_module._load()
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 291, in _load
    overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
  File "/usr/lib/python2.7/dist-packages/gi/overrides/GObject.py", line 59, in <module>
    globals()[name] = gi.overrides.deprecated(getattr(GLib, name), 'GLib.' + name)
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 316, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 135, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.GLib' object has no attribute 'uri_list_extract_uris'
dh_auto_build: python setup.py build --force returned exit code 1
make: *** [build] Error 1

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers