Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to emerge pygobject "ValueError:"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
gordon.wells
n00b
n00b


Joined: 12 Aug 2013
Posts: 1

PostPosted: Mon Aug 12, 2013 3:06 pm    Post subject: unable to emerge pygobject "ValueError:" Reply with quote

I currently get the following error:

Code:

/usr/bin/install -c -m 644 __init__.py types.py module.py importer.py pygtkcompat.py '/var/tmp/portage/dev-python/pygobject-3.2.2-r1/image//usr/lib64/python2.7/site-packages/gi'
libtool: install: warning: relinking `_gi.la'
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site.py", line 62, in <module>
    import os
  File "/usr/lib64/python2.7/os.py", line 49, in <module>
    import posixpath as path
  File "/usr/lib64/python2.7/posixpath.py", line 17, in <module>
    import warnings
  File "/usr/lib64/python2.7/warnings.py", line 8, in <module>
    import types
  File "types.py", line 26, in <module>
    from . import _gobject
ValueError: Attempted relative import in non-package
libtool: install: (cd /var/tmp/portage/dev-python/pygobject-3.2.2-r1/work/pygobject-3.2.2-python2_7/gi; /bin/sh /var/tmp/portage/dev-python/pygobject-3.2.2-r1/work/pygobject-3.2.2-python2_7/libtool  --tag CC --mode=relink x86_64-pc-linux-gnu-gcc -pthread -I/usr/include/gobject-introspection-1.0 -I/usr/lib64/libffi-3.0.13/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -pipe -march=core2 -Wall -fno-strict-aliasing -std=c9x -module -avoid-version -export-symbols-regex "init_gi|PyInit__gi" -Wl,-O1 -Wl,--as-needed -o _gi.la -rpath /usr/lib64/python2.7/site-packages/gi _gi_la-pygi-repository.lo _gi_la-pygi-info.lo _gi_la-pygi-foreign.lo _gi_la-pygi-foreign-gvariant.lo _gi_la-pygi-struct.lo _gi_la-pygi-argument.lo _gi_la-pygi-type.lo _gi_la-pygi-boxed.lo _gi_la-pygi-closure.lo _gi_la-pygi-callbacks.lo _gi_la-pygi-property.lo _gi_la-pygi-signal-closure.lo _gi_la-gimodule.lo _gi_la-pygi-invoke.lo _gi_la-pygi-cache.lo _gi_la-pygi-marshal-from-py.lo _gi_la-pygi-marshal-to-py.lo _gi_la-pygi-marshal-cleanup.lo -lgirepository-1.0 -lgobject-2.0 -lglib-2.0 ../gi/_glib/libpyglib-gi-2.0-python2.7.la -inst-prefix-dir /var/tmp/portage/dev-python/pygobject-3.2.2-r1/image/)
make[3]: *** [install-pygiPYTHON] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: relink: /usr/bin/x86_64-pc-linux-gnu-nm -B  .libs/_gi_la-pygi-repository.o .libs/_gi_la-pygi-info.o .libs/_gi_la-pygi-foreign.o .libs/_gi_la-pygi-foreign-gvariant.o .libs/_gi_la-pygi-struct.o .libs/_gi_la-pygi-argument.o .libs/_gi_la-pygi-type.o .libs/_gi_la-pygi-boxed.o .libs/_gi_la-pygi-closure.o .libs/_gi_la-pygi-callbacks.o .libs/_gi_la-pygi-property.o .libs/_gi_la-pygi-signal-closure.o .libs/_gi_la-gimodule.o .libs/_gi_la-pygi-invoke.o .libs/_gi_la-pygi-cache.o .libs/_gi_la-pygi-marshal-from-py.o .libs/_gi_la-pygi-marshal-to-py.o .libs/_gi_la-pygi-marshal-cleanup.o   | sed -n -e 's/^.*[  ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][      ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/_gi.exp
libtool: relink: /bin/grep -E -e "init_gi|PyInit__gi" ".libs/_gi.exp" > ".libs/_gi.expT"
libtool: relink: mv -f ".libs/_gi.expT" ".libs/_gi.exp"
libtool: relink: echo "{ global:" > .libs/_gi.ver
libtool: relink:  cat .libs/_gi.exp | sed -e "s/\(.*\)/\1;/" >> .libs/_gi.ver
libtool: relink:  echo "local: *; };" >> .libs/_gi.ver
libtool: relink:  x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/_gi_la-pygi-repository.o .libs/_gi_la-pygi-info.o .libs/_gi_la-pygi-foreign.o .libs/_gi_la-pygi-foreign-gvariant.o .libs/_gi_la-pygi-struct.o .libs/_gi_la-pygi-argument.o .libs/_gi_la-pygi-type.o .libs/_gi_la-pygi-boxed.o .libs/_gi_la-pygi-closure.o .libs/_gi_la-pygi-callbacks.o .libs/_gi_la-pygi-property.o .libs/_gi_la-pygi-signal-closure.o .libs/_gi_la-gimodule.o .libs/_gi_la-pygi-invoke.o .libs/_gi_la-pygi-cache.o .libs/_gi_la-pygi-marshal-from-py.o .libs/_gi_la-pygi-marshal-to-py.o .libs/_gi_la-pygi-marshal-cleanup.o   -Wl,--as-needed -lgirepository-1.0 -L/var/tmp/portage/dev-python/pygobject-3.2.2-r1/image//usr/lib64 -L/usr/lib64 -lpyglib-gi-2.0-python2.7 -lffi -lgobject-2.0 -lgthread-2.0 -lglib-2.0  -pthread -O2 -march=core2 -Wl,-O1   -pthread -Wl,-soname -Wl,_gi.so -Wl,-version-script -Wl,.libs/_gi.ver -o .libs/_gi.so
libtool: install: /usr/bin/install -c .libs/_gi.soT /var/tmp/portage/dev-python/pygobject-3.2.2-r1/image//usr/lib64/python2.7/site-packages/gi/_gi.so
libtool: install: /usr/bin/install -c .libs/_gi.lai /var/tmp/portage/dev-python/pygobject-3.2.2-r1/image//usr/lib64/python2.7/site-packages/gi/_gi.la
libtool: install: /usr/bin/install -c .libs/_gi_cairo.so /var/tmp/portage/dev-python/pygobject-3.2.2-r1/image//usr/lib64/python2.7/site-packages/gi/_gi_cairo.so
libtool: install: /usr/bin/install -c .libs/_gi_cairo.lai /var/tmp/portage/dev-python/pygobject-3.2.2-r1/image//usr/lib64/python2.7/site-packages/gi/_gi_cairo.la
libtool: install: warning: remember to run `libtool --finish /usr/lib64/python2.7/site-packages/gi'
make[3]: Leaving directory `/var/tmp/portage/dev-python/pygobject-3.2.2-r1/work/pygobject-3.2.2-python2_7/gi'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-python/pygobject-3.2.2-r1/work/pygobject-3.2.2-python2_7/gi'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-python/pygobject-3.2.2-r1/work/pygobject-3.2.2-python2_7/gi'
make: *** [install-recursive] Error 1
 * ERROR: dev-python/pygobject-3.2.2-r1::gentoo failed (install phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-python/pygobject-3.2.2-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pygobject-3.2.2-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/pygobject-3.2.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pygobject-3.2.2-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pygobject-3.2.2-r1/work/pygobject-3.2.2-python2_7'
 * S: '/var/tmp/portage/dev-python/pygobject-3.2.2-r1/work/pygobject-3.2.2'


This happens with versions 3.2.2-r1, 3.4.2-r1 and 3.8.3. Have also tried re-emerging python 2.7 and 3.2

Any ideas on how to fix this?
Back to top
View user's profile Send private message
tenspd137
Guru
Guru


Joined: 22 Aug 2006
Posts: 370

PostPosted: Mon Sep 30, 2013 3:42 pm    Post subject: Reply with quote

Hi all - I am pretty much having the same problem. I have tried building pygobject:2 with just python2_7 flags, and pygobject:3 with just python3_x flags. That seems to work - but it causes some problems later (for me) with ibus-anthy.

Any ideas hoe to build pygobject:3 for python2.7 to 3.x?

Thanks!
Back to top
View user's profile Send private message
tenspd137
Guru
Guru


Joined: 22 Aug 2006
Posts: 370

PostPosted: Thu Oct 10, 2013 7:02 pm    Post subject: Reply with quote

There is a bug for this:

https://bugs.gentoo.org/show_bug.cgi?id=487196

In it, a poster makes a patch which shows you some lines to add. I made a local overlay, copied the pygobject files into it, changed the ebuild according to the posted patch, and pygobject builds. It appears to be (according to the bug) an error in automake/py-compile.

The changes seem to work for me. It should get you by until some sort of fix makes it into portage.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum