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

import breaks with new release of prometheus client #2

Open
lhelleckes opened this issue Apr 6, 2022 · 1 comment
Open

import breaks with new release of prometheus client #2

lhelleckes opened this issue Apr 6, 2022 · 1 comment

Comments

@lhelleckes
Copy link

This morning, I got the following error:

Traceback (most recent call last):
  File "/main/dibdcs/run.py", line 35, in <module>
    import dibdcs
  File "/main/dibdcs/dibdcs/__init__.py", line 69, in <module>
    from . import app
  File "/main/dibdcs/dibdcs/app.py", line 16, in <module>
    import tornado_prometheus
  File "/usr/local/lib/python3.8/site-packages/tornado_prometheus/__init__.py", line 3, in <module>
    from prometheus_client.exposition import choose_encoder
ImportError: cannot import name 'choose_encoder' from 'prometheus_client.exposition' (/usr/local/lib/python3.8/site-packages/prometheus_client/exposition.py)

It seems like the release 0.14.0 of prometheus-client might have caused this.

@SDJustus
Copy link

SDJustus commented Apr 7, 2022

Facing the same issue... Downgrading to 0.13.1 fixes the problem

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

2 participants