Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659714 - dev-python/gst-python-1.14.1 : [TEST] ImportError: cannot import name _gi_gst
Summary: dev-python/gst-python-1.14.1 : [TEST] ImportError: cannot import name _gi_gst
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 661288
  Show dependency tree
 
Reported: 2018-06-30 22:37 UTC by Toralf Förster
Modified: 2018-07-30 06:44 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.45 KB, text/plain)
2018-06-30 22:37 UTC, Toralf Förster
Details
dev-python:gst-python-1.14.1:20180630-102401.log (dev-python:gst-python-1.14.1:20180630-102401.log,33.53 KB, text/plain)
2018-06-30 22:37 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,162.15 KB, text/plain)
2018-06-30 22:37 UTC, Toralf Förster
Details
environment (environment,94.98 KB, text/plain)
2018-06-30 22:37 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,19.44 KB, application/x-bzip)
2018-06-30 22:37 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,11.02 KB, application/x-bzip)
2018-06-30 22:37 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,26.26 KB, application/x-bzip)
2018-06-30 22:37 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-06-30 22:37:32 UTC
  File "/var/tmp/portage/dev-python/gst-python-1.14.1/work/gst-python-1.14.1/gi/overrides/Gst.py", line 569, in <module>
    from . import _gi_gst
ImportError: cannot import name _gi_gst
make[2]: *** [Makefile:507: check-local] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-python/gst-python-1.14.1/work/gst-python-1.14.1-python2_7/testsuite'
make[1]: *** [Makefile:385: check-am] Error 2

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome-systemd_test_20180623-161602

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.8.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv dev-python/gst-python
[ebuild  N    ] dev-python/gst-python-1.14.1  PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6"
Comment 1 Toralf Förster gentoo-dev 2018-06-30 22:37:35 UTC
Created attachment 537888 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-06-30 22:37:37 UTC
Created attachment 537890 [details]
dev-python:gst-python-1.14.1:20180630-102401.log
Comment 3 Toralf Förster gentoo-dev 2018-06-30 22:37:40 UTC
Created attachment 537892 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-06-30 22:37:43 UTC
Created attachment 537894 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-06-30 22:37:46 UTC
Created attachment 537896 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-06-30 22:37:49 UTC
Created attachment 537898 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-06-30 22:37:52 UTC
Created attachment 537900 [details]
temp.tbz2
Comment 8 Thomas Deutschmann (RETIRED) gentoo-dev 2018-07-20 15:27:21 UTC
Same on x86.
Comment 9 Mart Raudsepp gentoo-dev 2018-07-30 06:31:35 UTC
This is happening because of our multi-python support ending up with multiple build dirs, while testsuite expects srcdir==builddir for tests to use the just compiled _gi_gst. testsuites/overrides_hack.py is forcing in ../../gi/overrides relative to itself as path, but that will be the source dir, not where _gi_gst was built at, thus it will fail tests at first install (and wrongly use system _gi_gst instead of just built version when not first install)
Comment 10 Larry the Git Cow gentoo-dev 2018-07-30 06:44:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2a7f5afb82612422b7021297ff453cb62412cf3

commit b2a7f5afb82612422b7021297ff453cb62412cf3
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2018-07-30 06:43:38 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2018-07-30 06:44:12 +0000

    dev-python/gst-python: fix fresh install tests
    
    Closes: https://bugs.gentoo.org/659714
    Package-Manager: Portage-2.3.43, Repoman-2.3.10

 .../{gst-python-1.14.1.ebuild => gst-python-1.14.1-r1.ebuild}      | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)