Bugzilla – Bug 1211575
gcovr not working
Last modified: 2024-06-23 23:21:31 UTC
After installing gcovr ``` zypper in gcovr python3-Pygments ``` It fails with the following error: ``` gcovr --version Traceback (most recent call last): File "/usr/bin/gcovr", line 11, in <module> load_entry_point('gcovr==5.2', 'console_scripts', 'gcovr')() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point return ep.load() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2443, in load return self.resolve() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2449, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python3.6/site-packages/gcovr/__main__.py", line 31, in <module> from .configuration import ( File "/usr/lib/python3.6/site-packages/gcovr/configuration.py", line 20 from __future__ import annotations ^ SyntaxError: future feature annotations is not defined ``` --- I'm not python guru, but my research shows that this version 5.2 of `gcovr` needs python version >= 3.7
Yes, only gcovr 5.1 supports python 3.6... https://github.com/gcovr/gcovr/pull/550 Seems that SUSE needs here some more testing ;-) As a workaround you could install https://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-15-SP4/standard/noarch/gcovr-5.0-bp154.1.23.noarch.rpm