prometheus-barman-exporter icon indicating copy to clipboard operation
prometheus-barman-exporter copied to clipboard

Error running the exporter when installed from pip

Open shamil opened this issue 2 years ago • 0 comments

I get error

ModuleNotFoundError: No module named 'barman_exporter.barman_exporter'; 'barman_exporter' is not a package

Once I modify the bin wrapper from:

from barman_exporter.barman_exporter import main

to

from barman_exporter import main

it works

I assume the issue is from

https://github.com/marcinhlybin/prometheus-barman-exporter/blob/c7a4889ee4ac19669cfe043f6c53952a33672b5c/setup.py#L14

shamil avatar Jun 21 '22 20:06 shamil