google / fuzzbench

FuzzBench - Fuzzer benchmarking as a service.
https://google.github.io/fuzzbench/
Apache License 2.0
1.11k stars 271 forks source link

PyQt5 Issue #1942

Open VidmS opened 10 months ago

VidmS commented 10 months ago

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 commented 10 months ago

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

VidmS commented 10 months ago

`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`