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

Metrics server broken with prometheus-client 0.8 #198

Open
nritsche opened this issue May 25, 2020 · 0 comments
Open

Metrics server broken with prometheus-client 0.8 #198

nritsche opened this issue May 25, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@nritsche
Copy link
Contributor

Currently this is fixed by limiting the version to <0.8 in 1f5db51

0.91s$ PYTHONPATH=. pytest -xs --cov-report term-missing:skip-covered --cov=coco tests/test_*.py

============================= test session starts ==============================

platform linux -- Python 3.7.1, pytest-4.3.1, py-1.7.0, pluggy-0.8.0

rootdir: /home/travis/build/chime-experiment/coco, inifile:

plugins: cov-2.9.0

collecting ... 

==================================== ERRORS ====================================

___________________ ERROR collecting tests/test_blacklist.py ___________________

ImportError while importing test module '/home/travis/build/chime-experiment/coco/tests/test_blacklist.py'.

Hint: make sure your test modules/packages have valid Python names.

Traceback:

tests/test_blacklist.py:6: in <module>

    from coco.blacklist import Blacklist

coco/__init__.py:19: in <module>

    from .request_forwarder import RequestForwarder, ExternalForward, CocoForward

coco/request_forwarder.py:13: in <module>

    from .metric import start_metrics_server

coco/metric.py:11: in <module>

    from prometheus_client.exposition import (

E   ImportError: cannot import name '_ThreadingSimpleServer' from 'prometheus_client.exposition' (/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/prometheus_client/exposition.py)

=========================== 1 error in 0.33 seconds ============================

The command "PYTHONPATH=. pytest -xs --cov-report term-missing:skip-covered --cov=coco tests/test_*.py" exited with 1.
cache.2

store build cache
@nritsche nritsche added the bug Something isn't working label May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant