Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644682 - dev-python/pytest-qt: Missing usedeps dev-python/{PyQt4[X],PyQt5[qtgui]} (was: jedi-0.10.2 : [TEST] INTERNALERROR> AttributeError: module object has no attribute QtGui)
Summary: dev-python/pytest-qt: Missing usedeps dev-python/{PyQt4[X],PyQt5[qtgui]} (was...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
: 644474 644486 644494 644690 644788 644790 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-01-15 19:41 UTC by Toralf Förster
Modified: 2018-01-16 18:26 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.38 KB, text/plain)
2018-01-15 19:41 UTC, Toralf Förster
Details
dev-python:jedi-0.10.2:20180115-193842.log (dev-python:jedi-0.10.2:20180115-193842.log,23.39 KB, text/plain)
2018-01-15 19:41 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,83.20 KB, text/plain)
2018-01-15 19:41 UTC, Toralf Förster
Details
environment (environment,103.83 KB, text/plain)
2018-01-15 19:41 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.70 KB, application/x-bzip)
2018-01-15 19:41 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,25.70 KB, application/x-bzip)
2018-01-15 19:41 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-01-15 19:41:19 UTC
INTERNALERROR>   File "/usr/lib64/python2.7/site-packages/pytestqt/qt_compat.py", line 73, in _import_module
INTERNALERROR>     return getattr(m, module_name)
INTERNALERROR> AttributeError: 'module' object has no attribute 'QtGui'
 * ERROR: dev-python/jedi-0.10.2::gentoo failed (test phase):
 *   Tests failed under python2.7
 * 

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

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

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

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

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

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

emerge -qpv dev-python/jedi
[ebuild  N    ] dev-python/jedi-0.10.2  USE="-doc {-test}" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6"
Comment 1 Toralf Förster gentoo-dev 2018-01-15 19:41:22 UTC
Created attachment 514948 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-01-15 19:41:25 UTC
Created attachment 514950 [details]
dev-python:jedi-0.10.2:20180115-193842.log
Comment 3 Toralf Förster gentoo-dev 2018-01-15 19:41:28 UTC
Created attachment 514952 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-01-15 19:41:31 UTC
Created attachment 514954 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-01-15 19:41:34 UTC
Created attachment 514956 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-01-15 19:41:37 UTC
Created attachment 514958 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-01-15 20:33:19 UTC
*** Bug 644690 has been marked as a duplicate of this bug. ***
Comment 8 Toralf Förster gentoo-dev 2018-01-15 20:38:21 UTC
few more :

$ grep INTER tb/data/ALREADY_CATCHED  | sed 's/has no attribute//g' | sed 's/INTERNALERROR> AttributeError://g'
dev-python/jedi-0.10.2 : [TEST]  module object  QtGui 
dev-python/ptyprocess-0.5.2 : [TEST]  module object  QtGui 
dev-python/pexpect-4.2.1 : [TEST]  module object  QtGui 
dev-python/geventhttpclient-1.3.1 : [TEST]  module object  QtGui 
dev-python/lazy-object-proxy-1.3.1 : [TEST]  module object  QtGui 
dev-python/wcwidth-0.1.7-r1 : [TEST]  module object  QtGui 
dev-python/pyte-0.5.2-r2 : [TEST]  module object  QtGui 
dev-python/pytest-mock-1.6.3 : [TEST]  module object  QtGui 
app-shells/thefuck-3.25 : [TEST]  module PyQt4  QtGui 
dev-python/node-semver-0.2.0 : [TEST]  module object  QtGui
Comment 9 Andreas Sturmlechner gentoo-dev 2018-01-15 21:14:53 UTC
The error comes from dev-python/pytest-qt. It only specifies:

>        || (
>                dev-python/PyQt4
>                dev-python/PyQt5
>        )

Check if dev-python/PyQt4 was built with USE=X, it enables the QtGui module. In PyQt5 it is be aptly named USE=gui.

Please consider dropping the PyQt4 dep entirely, wrt bug 631788.
Comment 10 Anthony Basile gentoo-dev 2018-01-15 21:25:38 UTC
(In reply to Andreas Sturmlechner from comment #9)
> The error comes from dev-python/pytest-qt. It only specifies:
> 
> >        || (
> >                dev-python/PyQt4
> >                dev-python/PyQt5
> >        )
> 
> Check if dev-python/PyQt4 was built with USE=X, it enables the QtGui module.
> In PyQt5 it is be aptly named USE=gui.
> 
> Please consider dropping the PyQt4 dep entirely, wrt bug 631788.

Yeah I have little investment in dev-python/PyQt4.  I'll change that line to depend on dev-python/PyQt5[gui] and revbump.
Comment 11 Anthony Basile gentoo-dev 2018-01-15 21:30:13 UTC
This should fix it.  Reopen if there's an issue.

commit 706f04a56209e8370a385cab801be1f1d6005f76 (HEAD -> master, origin/master, origin/HEAD)
Author: Anthony G. Basile <blueness@gentoo.org>
Date:   Mon Jan 15 16:28:53 2018 -0500

    dev-python/pytest-qt: drop PyQt4, properly depend on PyQt5[gui], bug #644682
    
    Package-Manager: Portage-2.3.13, Repoman-2.3.3
Comment 12 Andreas Sturmlechner gentoo-dev 2018-01-16 18:18:50 UTC
*** Bug 644788 has been marked as a duplicate of this bug. ***
Comment 13 Andreas Sturmlechner gentoo-dev 2018-01-16 18:18:56 UTC
*** Bug 644790 has been marked as a duplicate of this bug. ***
Comment 14 Toralf Förster gentoo-dev 2018-01-16 18:26:43 UTC
*** Bug 644494 has been marked as a duplicate of this bug. ***
Comment 15 Toralf Förster gentoo-dev 2018-01-16 18:26:51 UTC
*** Bug 644486 has been marked as a duplicate of this bug. ***
Comment 16 Toralf Förster gentoo-dev 2018-01-16 18:26:56 UTC
*** Bug 644474 has been marked as a duplicate of this bug. ***