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

Unable to start exporter #19

Open
shqnayaz opened this issue Sep 20, 2022 · 0 comments
Open

Unable to start exporter #19

shqnayaz opened this issue Sep 20, 2022 · 0 comments

Comments

@shqnayaz
Copy link

Hello everyone,
Your advice is appreciated,
I am trying to install exporter, the installation is successful, but fails to start exporter service.

  Running setup.py install for hpilo-exporter ... done
Successfully installed hpilo-exporter-0.4.5
You are using pip version 8.1.2, however version 22.2.2 is available.

and when I try to start, it says

# /bin/hpilo-exporter --address=192.168.10.1 --port=9416 --endpoint="/metrics"
Traceback (most recent call last):
  File "/bin/hpilo-exporter", line 9, in <module>
    load_entry_point('hpilo-exporter==0.4.5', 'console_scripts', 'hpilo-exporter')()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/site-packages/hpilo_exporter/main.py", line 7, in <module>
    from hpilo_exporter.exporter import ILOExporterServer
  File "/usr/lib/python2.7/site-packages/hpilo_exporter/exporter.py", line 10, in <module>
    import prometheus_metrics
  File "/usr/lib/python2.7/site-packages/hpilo_exporter/prometheus_metrics.py", line 1, in <module>
    from prometheus_client import Gauge
  File "/usr/lib/python2.7/site-packages/prometheus_client/__init__.py", line 3, in <module>
    from . import (
  File "/usr/lib/python2.7/site-packages/prometheus_client/exposition.py", line 113
    def make_wsgi_app(registry: CollectorRegistry = REGISTRY, disable_compression: bool = False) -> Callable:
                              ^
SyntaxError: invalid syntax

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