Bug 1211575 - gcovr not working
Summary: gcovr not working
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Development (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-21 17:45 UTC by Georgi Georgiev
Modified: 2024-06-23 23:21 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Georgiev 2023-05-21 17:45:53 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
Comment 1 Markus Kolb 2024-06-23 23:17:29 UTC
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