You are not logged in.

#1 2011-08-23 12:04:31

Franek
Member
Registered: 2010-05-16
Posts: 100

[solved] glib-git build fails with gdbus-codegen/python error

Has anyone succeeded to install glib-git lately? For me, the build fails with the following error:

Making all in tests
make[4]: Entering directory `/tmp/clyde-carlos/glib-git/glib-git/src/glib-build/gio/tests'
  GEN gdbus-test-codegen-generated.c
Traceback (most recent call last):
  File "../../gio/gdbus-codegen/codegen_main.py", line 200, in <module>
    codegen_main()
  File "../../gio/gdbus-codegen/codegen_main.py", line 171, in codegen_main
    parsed_ifaces = parser.parse_dbus_xml(xml_data)
  File "/tmp/clyde-carlos/glib-git/glib-git/src/glib-build/gio/gdbus-codegen/parser.py", line 289, in parse_dbus_xml
    parser = DBusXMLParser(xml_data)
  File "/tmp/clyde-carlos/glib-git/glib-git/src/glib-build/gio/gdbus-codegen/parser.py", line 57, in __init__
    self._parser.Parse(xml_data)
  File "/tmp/clyde-carlos/glib-git/glib-git/src/glib-build/gio/gdbus-codegen/parser.py", line 155, in handle_start_element
    if attrs.has_key('name') and self.doc_comment_last_symbol == attrs['name']:
AttributeError: 'dict' object has no attribute 'has_key'
make[4]: *** [gdbus-test-codegen-generated.c] Error 1
make[4]: Leaving directory `/tmp/clyde-carlos/glib-git/glib-git/src/glib-build/gio/tests'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/clyde-carlos/glib-git/glib-git/src/glib-build/gio'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/clyde-carlos/glib-git/glib-git/src/glib-build/gio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/clyde-carlos/glib-git/glib-git/src/glib-build'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

It is not the PKGBUILD's fault, apparently, as the same error occurs when I autogen-configure-make manually. So is there something wrong with my system, the python setup maybe? (I tried manually replacing "python" by "python2.7" in the Makefile – no success.) Or is it an upstream bug, maybe related to this bug? Is there anything I can do?

Sorry if the answer is obvious, but I really do not feel like I understand this python stuff properly. Also, sorry for duplicating my AUR comments – it was only today that I figured I might get more response in the forum.

Last edited by Franek (2011-08-23 13:33:23)

Offline

#2 2011-08-23 12:21:28

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved] glib-git build fails with gdbus-codegen/python error

try PYTHON=/usr/bin/python2 ./autogen
then again PYTHON=/usr/bin/python2 ./configure --prefix=/usr

Last edited by wonder (2011-08-23 12:21:56)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-08-23 13:33:07

Franek
Member
Registered: 2010-05-16
Posts: 100

Re: [solved] glib-git build fails with gdbus-codegen/python error

Splendid, that solved it! Thanks!

Offline

#4 2011-08-23 13:35:54

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved] glib-git build fails with gdbus-codegen/python error

don't forget to sent the working changes up to aur in comments


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2011-08-23 20:30:41

Franek
Member
Registered: 2010-05-16
Posts: 100

Re: [solved] glib-git build fails with gdbus-codegen/python error

Don't panic, I don't. Just did not have time before now.

EDIT: Done. I am still throwing in the towel, though. I was trying to make a gtkmm-git PKGBUILD, because I need the latest gtkmm for development. However for gtkmm-git I needed gtk-git, for which I needed glib-git and pango-git. I successfully (at least it appears so) managed to install glib-git and pango-git, but now I get a linker error with gtk-git and will not spend another day looking for its source. I will just wait until gtkmm-3.1 is released.

EDIT 2: Alright, it appears there must have been something wrong with my "successfull" installs as well, as I just started a gtk app (Balsa) and it did not have any font, just rectangles for letters. Replacing glib-git and pango-git with their stable counterparts turned everything right again.

Last edited by Franek (2011-08-23 20:46:47)

Offline

Board footer

Powered by FluxBB