Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492436 - media-libs/gexiv2-0.6.1 USE=-introspection - python: ERROR:root:Could not find any typelib for GExiv2
Summary: media-libs/gexiv2-0.6.1 USE=-introspection - python: ERROR:root:Could not fin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 508358 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-24 16:17 UTC by Awad Mackie
Modified: 2015-09-19 13:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Awad Mackie 2013-11-24 16:17:39 UTC
Without introspection USE flag, the typelib file is missing (/usr/lib64/girepository-1.0/GExiv2-0.4.typelib) and the module can't be imported:

>>> from gi.repository import GExiv2
ERROR:root:Could not find any typelib for GExiv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name GExiv2

-- 

emerge --info:

Portage 2.2.7 (hardened/linux/amd64, gcc-4.6.3, glibc-2.15-r3, 3.11.2-hardened x86_64)
=================================================================
System uname: Linux-3.11.2-hardened-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.2
KiB Mem:     4042112 total,    127796 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 22 Nov 2013 08:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.2.5-r3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo/ http://mirror.bytemark.co.uk/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://gentoo.virginmedia.com/sites/gentoo http://gentoo.virginmedia.com/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 ass ati avahi bash-completion berkdb bzip2 cairo cdda cddb cdinstall cdr cjk cli consolekit cracklib crypt css curl custom-cflags cxx dbus dga djvu dri dts dvd dvdr ebook emacs encode exif faac fam ffmpeg fftw fglrx firefox flac fontconfig fortran ftp gdbm gif gimp gles gmp gphoto2 gpm gtk gzip hardened hunspell ibus iconv icu idn imagemagick imap inotify ipv6 jabber java java6 javascript jbig jpeg jpeg2k justify kde kipi lame lapack lcms libass libnotify lzma lzo m17n-lib mad matroska mime mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer msn mtp mudflap multilib multimedia musicbrainz natspec ncurses nls nocd nptl nsplugin ofa offensive ogg openal openexr opengl openmp openssl opus pam pax_kernel pcre pdf phonon pic plasma png policykit pulseaudio python qalculate qt3support qt4 quicktime radeon raw readline rle rss ruby samba scanner schroedinger sdl semantic-desktop session smp snmp sockets sound spell sqlite sqlite3 sse sse2 sse3 sse4_1 ssl ssse3 startup-notification subversion svg syslog system-jpeg taglib tcpd theora threads tiff truetype udev unicode urandom usb v4l vcd vorbis vpx webp win32codecs x264 xattr xcb xcomposite xft xine xinerama xmpp xorg xpm xulrunner xv xvid xvmc zeroconf zlib zlip zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="canon" USERLAND="GNU" VIDEO_CARDS="fglrx radeon r700" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 DrSlony 2014-04-22 07:11:46 UTC
*** Bug 508358 has been marked as a duplicate of this bug. ***
Comment 2 Michael Kefeder 2014-10-28 09:44:25 UTC
I can confirm this problem.

Please check out Bug 527204 it has an ebuild for a newer version of gexiv2 and should force introspection USE-flag when python USE-flag is active - therefore fixing this bug?
Comment 3 Markus Meier gentoo-dev 2015-01-18 20:04:49 UTC
Should be fixed in version 0.10.2, please test.

*gexiv2-0.10.2 (18 Jan 2015)

  18 Jan 2015; Markus Meier <maekke@gentoo.org> +gexiv2-0.10.2.ebuild:
  version bump for bug #527204: depend dev-libs/gobject-introspection for bug
  #469202, add subslot operator dep for media-gfx/exiv2 for bug #536944, make
  python support optional, update HOMEPAGE
Comment 4 DrSlony 2015-01-18 21:20:58 UTC
As I reported in Bug 508358, I added the ebuild mentioned in comment 3 here, removed the introspection use flag, compiled it, and I still get the errors when running macrofusion:
ERROR:root:Could not find any typelib for GExiv2
An error occured. Python or one of its sub modules is absent...
It would be wise to check your python installation.
Comment 5 Awad Mackie 2015-09-19 13:21:38 UTC
media-libs/gexiv2-0.10.2 working correctly for me, python USE forces introspection USE and I can import it.