Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyQt5 Issue #1942

Open
VidmS opened this issue Jan 10, 2024 · 2 comments
Open

PyQt5 Issue #1942

VidmS opened this issue Jan 10, 2024 · 2 comments

Comments

@VidmS
Copy link

VidmS commented Jan 10, 2024

After installing Fuzzbench I went into an issue when I tried the "make presubmit" to test if the appication works. It hang up at some function corresponding to PyQt5. I was able to solve this issue by manually installing PyQt5 on my ubuntu via apt: "sudo apt-get install python3-pyqt5". After that all worked.

@VidmS
Copy link
Author

VidmS commented Jan 11, 2024

Here is the error when running "make presubmit":
Bildschirmfoto vom 2024-01-11 13-10-31

@VidmS
Copy link
Author

VidmS commented Jan 11, 2024

`Verify that your local setup is working correctly by running the presubmit check
source .venv/bin/activate && python3 presubmit.py
=========================================================================================== test session starts ============================================================================================
platform linux -- Python 3.10.12, pytest-7.1.3, pluggy-1.3.0 -- /root/cispa/fuzzbench/.venv/bin/python3
cachedir: .pytest_cache
rootdir: /root/cispa/fuzzbench, configfile: pytest.ini
plugins: anyio-4.2.0, pyfakefs-5.0.0
collected 293 items / 3 errors

================================================================================================== ERRORS ==================================================================================================
________________________________________________________________________________ ERROR collecting analysis/test_plotting.py ________________________________________________________________________________
ImportError while importing test module '/root/cispa/fuzzbench/analysis/test_plotting.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.venv/lib/python3.10/site-packages/_pytest/python.py:608: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
.venv/lib/python3.10/site-packages/_pytest/pathlib.py:533: in import_path
importlib.import_module(module_name)
/usr/lib/python3.10/importlib/init.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1050: in _gcd_import
???
:1027: in _find_and_load
???
:1006: in _find_and_load_unlocked
???
:688: in _load_unlocked
???
.venv/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:168: in exec_module
exec(co, module.dict)
analysis/test_plotting.py:19: in
from analysis import plotting
analysis/plotting.py:17: in
import Orange
.venv/lib/python3.10/site-packages/Orange/init.py:33: in
import pyqtgraph # import pyqtgraph first so that it can detect Qt5
.venv/lib/python3.10/site-packages/pyqtgraph/init.py:18: in
from .colors import palette
.venv/lib/python3.10/site-packages/pyqtgraph/colors/palette.py:1: in
from ..Qt import QtGui
.venv/lib/python3.10/site-packages/pyqtgraph/Qt/init.py:156: in
import PyQt5.QtGui
E ImportError: libGL.so.1: cannot open shared object file: No such file or directory
______________________________________________________________________________ ERROR collecting experiment/test_dispatcher.py ______________________________________________________________________________
ImportError while importing test module '/root/cispa/fuzzbench/experiment/test_dispatcher.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.venv/lib/python3.10/site-packages/_pytest/python.py:608: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
.venv/lib/python3.10/site-packages/_pytest/pathlib.py:533: in import_path
importlib.import_module(module_name)
/usr/lib/python3.10/importlib/init.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1050: in _gcd_import
???
:1027: in _find_and_load
???
:1006: in _find_and_load_unlocked
???
:688: in _load_unlocked
???
.venv/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:168: in exec_module
exec(co, module.dict)
experiment/test_dispatcher.py:23: in
from experiment import dispatcher
experiment/dispatcher.py:35: in
from experiment import reporter
experiment/reporter.py:27: in
from analysis import generate_report
analysis/generate_report.py:25: in
from analysis import plotting
analysis/plotting.py:17: in
import Orange
.venv/lib/python3.10/site-packages/Orange/init.py:33: in
import pyqtgraph # import pyqtgraph first so that it can detect Qt5
.venv/lib/python3.10/site-packages/pyqtgraph/init.py:18: in
from .colors import palette
.venv/lib/python3.10/site-packages/pyqtgraph/colors/palette.py:1: in
from ..Qt import QtGui
.venv/lib/python3.10/site-packages/pyqtgraph/Qt/init.py:156: in
import PyQt5.QtGui
E ImportError: libGL.so.1: cannot open shared object file: No such file or directory
_______________________________________________________________________________ ERROR collecting experiment/test_reporter.py _______________________________________________________________________________
ImportError while importing test module '/root/cispa/fuzzbench/experiment/test_reporter.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.venv/lib/python3.10/site-packages/_pytest/python.py:608: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
.venv/lib/python3.10/site-packages/_pytest/pathlib.py:533: in import_path
importlib.import_module(module_name)
/usr/lib/python3.10/importlib/init.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1050: in _gcd_import
???
:1027: in _find_and_load
???
:1006: in _find_and_load_unlocked
???
:688: in _load_unlocked
???
.venv/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:168: in exec_module
exec(co, module.dict)
experiment/test_reporter.py:22: in
from experiment import reporter
experiment/reporter.py:27: in
from analysis import generate_report
analysis/generate_report.py:25: in
from analysis import plotting
analysis/plotting.py:17: in
import Orange
.venv/lib/python3.10/site-packages/Orange/init.py:33: in
import pyqtgraph # import pyqtgraph first so that it can detect Qt5
.venv/lib/python3.10/site-packages/pyqtgraph/init.py:18: in
from .colors import palette
.venv/lib/python3.10/site-packages/pyqtgraph/colors/palette.py:1: in
from ..Qt import QtGui
.venv/lib/python3.10/site-packages/pyqtgraph/Qt/init.py:156: in
import PyQt5.QtGui
E ImportError: libGL.so.1: cannot open shared object file: No such file or directory
============================================================================================= warnings summary =============================================================================================
.venv/lib/python3.10/site-packages/google/cloud/logging_v2/init.py:17
/root/cispa/fuzzbench/.venv/lib/python3.10/site-packages/google/cloud/logging_v2/init.py:17: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources

.venv/lib/python3.10/site-packages/pkg_resources/init.py:2868: 12 warnings
/root/cispa/fuzzbench/.venv/lib/python3.10/site-packages/pkg_resources/init.py:2868: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('google').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)

.venv/lib/python3.10/site-packages/pkg_resources/init.py:2868
.venv/lib/python3.10/site-packages/pkg_resources/init.py:2868
.venv/lib/python3.10/site-packages/pkg_resources/init.py:2868
.venv/lib/python3.10/site-packages/pkg_resources/init.py:2868
.venv/lib/python3.10/site-packages/pkg_resources/init.py:2868
.venv/lib/python3.10/site-packages/pkg_resources/init.py:2868
.venv/lib/python3.10/site-packages/pkg_resources/init.py:2868
.venv/lib/python3.10/site-packages/pkg_resources/init.py:2868
/root/cispa/fuzzbench/.venv/lib/python3.10/site-packages/pkg_resources/init.py:2868: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('google.cloud').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)

.venv/lib/python3.10/site-packages/pkg_resources/init.py:2348
/root/cispa/fuzzbench/.venv/lib/python3.10/site-packages/pkg_resources/init.py:2348: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('google').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(parent)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================================= short test summary info ==========================================================================================
ERROR analysis/test_plotting.py
ERROR experiment/test_dispatcher.py
ERROR experiment/test_reporter.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================================================== 22 warnings, 3 errors in 7.07s ======================================================================================
ERROR: test failed, see errors above.
Failed checks: test
Failed.
make: *** [Makefile:60: presubmit] Error 1`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant