Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927043 - net-misc/electrum-4.5.3: fails tests (electrum.GuiImportError: Error: Could not import PyQt6)
Summary: net-misc/electrum-4.5.3: fails tests (electrum.GuiImportError: Error: Could n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 926555
  Show dependency tree
 
Reported: 2024-03-15 05:09 UTC by Sam James
Modified: 2024-03-17 16:59 UTC (History)
1 user (show)

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


Attachments
build.log (file_927043.txt,354.73 KB, text/plain)
2024-03-15 05:09 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-15 05:09:25 UTC
Created attachment 887656 [details]
build.log

* python3_11: running distutils-r1_run_phase python_test
python3.11 -m pytest -vv -ra -l -Wdefault --color=yes -o console_output_style=count -o tmp_path_retention_count=0 -o tmp_path_retention_policy=failed -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -p no:pytest-describe -p no:plus -p no:tavern -p no:salt-factories
============================= test session starts ==============================
platform linux -- Python 3.11.8, pytest-7.4.4, pluggy-1.4.0 -- /var/tmp/portage/net-misc/electrum-4.5.3/work/electrum-4.5.3-python3_11/install/usr/bin/python3.11
cachedir: .pytest_cache
rootdir: /var/tmp/portage/net-misc/electrum-4.5.3/work/electrum-4.5.3
plugins: pkgcore-0.12.25, libtmux-0.30.2, rerunfailures-13.0, xdist-3.5.0
collecting ... collected 678 items / 1 error

==================================== ERRORS ====================================
___________________ ERROR collecting tests/test_qml_types.py ___________________
ImportError while importing test module '/var/tmp/portage/net-misc/electrum-4.5.3/work/electrum-4.5.3/tests/test_qml_types.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
electrum/gui/qml/__init__.py:8: in <module>
    import PyQt6
E   ModuleNotFoundError: No module named 'PyQt6'

The above exception was the direct cause of the following exception:
/usr/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/usr/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_qml_types.py:5: in <module>
    from electrum.gui.qml.qetypes import QEAmount
electrum/gui/qml/__init__.py:11: in <module>
    raise GuiImportError(
E   electrum.GuiImportError: Error: Could not import PyQt6. On Linux systems, you may try 'sudo apt-get install python3-pyqt6'
=========================== short test summary info ============================
ERROR tests/test_qml_types.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 1.65s ===============================
 * ERROR: net-misc/electrum-4.5.3::gentoo failed (test phase):
 *   pytest failed with python3.11

----
Comment 1 Larry the Git Cow gentoo-dev 2024-03-17 16:59:34 UTC
The bug has been closed via the following commit(s):

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

commit 5be5b80fcbbafd807ad8a8890514c34200116794
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-03-17 16:59:08 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-03-17 16:59:31 +0000

    net-misc/electrum: Ignore test_qml_types
    
    Closes: https://bugs.gentoo.org/927043
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 net-misc/electrum/electrum-4.5.3.ebuild | 5 +++++
 net-misc/electrum/electrum-4.5.4.ebuild | 5 +++++
 2 files changed, 10 insertions(+)