4n4nd / prometheus-api-client-python Goto Github PK
View Code? Open in Web Editor NEWA python wrapper for the prometheus http api
License: MIT License
A python wrapper for the prometheus http api
License: MIT License
Describe the bug
Importing metric snapshot data frame fails when pandas version is 0.23.0.
Error Output
ModuleNotFoundError: No module named 'pandas._typing'
Here, the explanation for the oldest_data_datetime
parameter is a little vague. It is also a little hard to parse strings and define datetime objects which are then used to truncate the dataframes.
I think we should just remove the whole string parsing monkey business from the Metric
class (and from PrometheusConnect
as well), instead what I propose is:
oldest_data_datetime
can be a datetime.datetime
object or a datetime.timedelta
object passed as a parameter.
oldest_data_datetime
is an explicit datetime.datetime
object, then any data older than it will be deleted.oldest_data_datetime
is a datetime.timedelta
object, then any data that is older than [(latest metric timestamp) -oldest_data_datetime
] will be deleted.This will reduce the uncertainty for date parsing from inside the Metric class at least.
Checking in a .env file might have non obvious side effects fur people cloning the repo, therefore it might be better to use variables fur the zuul job, see https://zuul-ci.org/docs/zuul/user/config.html#attr-job.vars
Related: #55
Automatic dependency update failed for the current master with SHA 6682fe6.
The automatic dependency management cannot continue. Please fix errors reported bellow.
$ pipenv update --dev
Running $ pipenv lock then $ pipenv sync.
Creating a virtualenv for this project…
Pipfile: /tmp/tmp7eeiqtiq/Pipfile
Using /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python (3.6.8) to create virtualenv…
created virtual environment CPython3.6.8.final.0-64 in 485ms
creator CPython3Posix(dest=/tmp/tmp7eeiqtiq/.venv, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/tmp/tmpl98mp_yu/seed-app-data/v1.0.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Virtualenv location: /tmp/tmp7eeiqtiq/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
['Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop\n return self.timeout()\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout\n raise TIMEOUT(msg)\n', "pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f6f1c960710>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n", '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 501, in create_spinner\n yield sp\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps\n c = resolve(cmd, sp)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 517, in resolve\n result = c.expect(u"\\n", timeout=environments.PIPENV_INSTALL_TIMEOUT)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 215, in expect\n self.subprocess.expect(pattern=pattern, timeout=timeout)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect\n timeout, searchwindowsize, async_)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list\n return exp.expect_loop(timeout)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop\n return self.timeout(e)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout\n raise TIMEOUT(msg)\n', "pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f6f1c960710>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n<pexpect.popen_spawn.PopenSpawn object at 0x7f6f1c960710>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n"]
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop
return self.timeout()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f6f1c960710>
searcher: searcher_re:
0: re.compile('\n')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/bin/pipenv", line 8, in <module>
sys.exit(cli())
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/cli/command.py", line 514, in update
pypi_mirror=state.pypi_mirror,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1068, in do_lock
lockfile=lockfile
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps
c = resolve(cmd, sp)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 517, in resolve
result = c.expect(u"\n", timeout=environments.PIPENV_INSTALL_TIMEOUT)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 215, in expect
self.subprocess.expect(pattern=pattern, timeout=timeout)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect
timeout, searchwindowsize, async_)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list
return exp.expect_loop(timeout)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop
return self.timeout(e)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f6f1c960710>
searcher: searcher_re:
0: re.compile('\n')
<pexpect.popen_spawn.PopenSpawn object at 0x7f6f1c960710>
searcher: searcher_re:
0: re.compile('\n')
Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-redhat-8.2-Ootpa
pipenv version: pipenv, version 2018.11.26
dateparser==0.7.4
- python-dateutil [required: Any, installed: 2.8.1]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: Any, installed: 2020.1]
- regex [required: !=2019.02.19, installed: 2020.5.14]
- tzlocal [required: Any, installed: 2.1]
- pytz [required: Any, installed: 2020.1]
httmock==1.3.0
- requests [required: >=1.0.0, installed: 2.23.0]
- certifi [required: >=2017.4.17, installed: 2020.4.5.1]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.9]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.9]
matplotlib==3.2.1
- cycler [required: >=0.10, installed: 0.10.0]
- six [required: Any, installed: 1.15.0]
- kiwisolver [required: >=1.0.1, installed: 1.2.0]
- numpy [required: >=1.11, installed: 1.18.4]
- pyparsing [required: >=2.0.1,!=2.1.6,!=2.1.2,!=2.0.4, installed: 2.4.7]
- python-dateutil [required: >=2.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.15.0]
pandas==1.0.4
- numpy [required: >=1.13.3, installed: 1.18.4]
- python-dateutil [required: >=2.6.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
retrying==1.3.3
- six [required: >=1.7.0, installed: 1.15.0]
For more information, see Pipfile and Pipfile.lock.
Once this issue is resolved, the issue will be automatically closed by bot.
how to access HTTPS?
it seems there is no the CERT argu to send the API PrometheusConnect
when I use disable_ssl: False,then the PrometheusConnect function's argu ssl_verification will be turn to true.
Then it should access the HTTPS by cert file,but how to transfer CERT into the API?
Thanks a lot.
Can we have store_locally: bool
option for get_current_metric_value
as we have in get_current_metric_value
?
Create a Pandas Dataframe from the collected metrics
No dependency management found for this repository. If you want to keep your dependencies managed, please submit Pipfile
or requirements.in
or requirements-dev.in
file.
To generate a Pipfile
, use:"
$ pipenv install --skip-lock --code ./
$ git add Pipfile
$ git commit -m 'Add Pipfile for dependency management'
Make sure your Pipfile
or requirements.in
or requirements-dev.in
is placed in the root of your Git repository.
This should enable the user to stream requested metrics from the Prometheus Server.
Also, need to add an exporter that can output the stream metrics to Parquet. (Similar to prom-exporter)
@durandom @accorvin @gmfrasca @tumido
Automatic dependency update failed for the current master with SHA f791d94.
The automatic dependency management cannot continue. Please fix errors reported bellow.
$ pipenv update --dev
Running $ pipenv lock then $ pipenv sync.
Creating a virtualenv for this project…
Pipfile: /tmp/tmpb3volbwt/Pipfile
Using /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python (3.6.8) to create virtualenv…
created virtual environment CPython3.6.8.final.0-64 in 449ms
creator CPython3Posix(dest=/tmp/tmpb3volbwt/.venv, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/tmp/tmpx3q7fzff/seed-app-data/v1.0.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Virtualenv location: /tmp/tmpb3volbwt/.venv
Locking [dev-packages] dependencies…
FAIL
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connection.py", line 171, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/util/connection.py", line 56, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 849, in _validate_conn
conn.connect()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connection.py", line 314, in connect
conn = self._new_conn()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connection.py", line 180, in _new_conn
self, "Failed to establish a new connection: %s" % e)
pipenv.patched.notpip._vendor.urllib3.exceptions.NewConnectionError: <pipenv.patched.notpip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24e66e438>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/adapters.py", line 445, in send
timeout=timeout
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 667, in urlopen
**response_kw)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 667, in urlopen
**response_kw)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 667, in urlopen
**response_kw)
[Previous line repeated 2 more times]
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/util/retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
pipenv.patched.notpip._vendor.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/4e/17/0e25f808c3ff3b818923a346bf00882fa779489329306970092935c56741/httmock-1.3.0.tar.gz (Caused by NewConnectionError('<pipenv.patched.notpip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24e66e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 126, in <module>
main()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 119, in main
parsed.requirements_dir, parsed.packages)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 85, in _main
requirements_dir=requirements_dir,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 69, in resolve
req_dir=requirements_dir
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 726, in resolve_deps
req_dir=req_dir,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
resolved_tree = resolver.resolve()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 385, in resolve
results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 102, in resolve
has_changed, best_matches = self._resolve_one_round()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 206, in _resolve_one_round
for dep in self._iter_dependencies(best_match):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 301, in _iter_dependencies
dependencies = self.repository.get_dependencies(ireq)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 234, in get_dependencies
legacy_results = self.get_legacy_dependencies(ireq)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 426, in get_legacy_dependencies
results, ireq = self.resolve_reqs(download_dir, ireq, wheel_cache)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 297, in resolve_reqs
results = resolver._resolve_one(reqset, ireq)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 260, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 213, in _get_abstract_dist_for
self.require_hashes
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 279, in prepare_linked_requirement
progress_bar=self.progress_bar
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/download.py", line 837, in unpack_url
progress_bar=progress_bar
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/download.py", line 674, in unpack_http_url
progress_bar)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/download.py", line 869, in _download_http_url
stream=True,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/sessions.py", line 525, in get
return self.request('GET', url, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/download.py", line 397, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/sessions.py", line 512, in request
resp = self.send(prep, **send_kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/sessions.py", line 622, in send
r = adapter.send(request, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/cachecontrol/adapter.py", line 53, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/adapters.py", line 513, in send
raise ConnectionError(e, request=request)
pipenv.patched.notpip._vendor.requests.exceptions.ConnectionError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/4e/17/0e25f808c3ff3b818923a346bf00882fa779489329306970092935c56741/httmock-1.3.0.tar.gz (Caused by NewConnectionError('<pipenv.patched.notpip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24e66e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connection.py", line 171, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/util/connection.py", line 56, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 849, in _validate_conn
conn.connect()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connection.py", line 314, in connect
conn = self._new_conn()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connection.py", line 180, in _new_conn
self, "Failed to establish a new connection: %s" % e)
pipenv.patched.notpip._vendor.urllib3.exceptions.NewConnectionError: <pipenv.patched.notpip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24e66e438>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/adapters.py", line 445, in send
timeout=timeout
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 667, in urlopen
**response_kw)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 667, in urlopen
**response_kw)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 667, in urlopen
**response_kw)
[Previous line repeated 2 more times]
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/urllib3/util/retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
pipenv.patched.notpip._vendor.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/4e/17/0e25f808c3ff3b818923a346bf00882fa779489329306970092935c56741/httmock-1.3.0.tar.gz (Caused by NewConnectionError('<pipenv.patched.notpip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24e66e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 126, in <module>
main()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 119, in main
parsed.requirements_dir, parsed.packages)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 85, in _main
requirements_dir=requirements_dir,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 69, in resolve
req_dir=requirements_dir
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 726, in resolve_deps
req_dir=req_dir,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
resolved_tree = resolver.resolve()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 385, in resolve
results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 102, in resolve
has_changed, best_matches = self._resolve_one_round()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 206, in _resolve_one_round
for dep in self._iter_dependencies(best_match):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 301, in _iter_dependencies
dependencies = self.repository.get_dependencies(ireq)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 234, in get_dependencies
legacy_results = self.get_legacy_dependencies(ireq)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 426, in get_legacy_dependencies
results, ireq = self.resolve_reqs(download_dir, ireq, wheel_cache)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 297, in resolve_reqs
results = resolver._resolve_one(reqset, ireq)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 260, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 213, in _get_abstract_dist_for
self.require_hashes
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 279, in prepare_linked_requirement
progress_bar=self.progress_bar
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/download.py", line 837, in unpack_url
progress_bar=progress_bar
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/download.py", line 674, in unpack_http_url
progress_bar)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/download.py", line 869, in _download_http_url
stream=True,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/sessions.py", line 525, in get
return self.request('GET', url, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/download.py", line 397, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/sessions.py", line 512, in request
resp = self.send(prep, **send_kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/sessions.py", line 622, in send
r = adapter.send(request, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/cachecontrol/adapter.py", line 53, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/adapters.py", line 513, in send
raise ConnectionError(e, request=request)
pipenv.patched.notpip._vendor.requests.exceptions.ConnectionError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/4e/17/0e25f808c3ff3b818923a346bf00882fa779489329306970092935c56741/httmock-1.3.0.tar.gz (Caused by NewConnectionError('<pipenv.patched.notpip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb24e66e438>: Failed to establish a new connection: [Errno -2] Name or service not known',))
['Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 501, in create_spinner\n yield sp\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps\n c = resolve(cmd, sp)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 539, in resolve\n sys.exit(c.return_code)\n', 'SystemExit: 1\n']
Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-redhat-8.1-Ootpa
pipenv version: pipenv, version 2018.11.26
Unable to obtain dependency graph:
An error occurred while installing httmock! Will try again.
An error occurred while installing retrying! Will try again.
An error occurred while installing dateparser! Will try again.
An error occurred while installing pandas! Will try again.
An error occurred while installing matplotlib! Will try again.
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/cli/command.py", line 254, in install
[pipenv.exceptions.InstallError]: editable_packages=state.installstate.editables,
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1874, in do_install
[pipenv.exceptions.InstallError]: keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]: pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 862, in do_install_dependencies
[pipenv.exceptions.InstallError]: _cleanup_procs(procs, False, failed_deps_queue, retry=False)
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]: raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Collecting httmock']
[pipenv.exceptions.InstallError]: ["WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2110d43dd8>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /packages/4e/17/0e25f808c3ff3b818923a346bf00882fa779489329306970092935c56741/httmock-1.3.0.tar.gz", " WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f211044e198>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /packages/4e/17/0e25f808c3ff3b818923a346bf00882fa779489329306970092935c56741/httmock-1.3.0.tar.gz", " WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f211044e390>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /packages/4e/17/0e25f808c3ff3b818923a346bf00882fa779489329306970092935c56741/httmock-1.3.0.tar.gz", " WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2110d3f668>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /packages/4e/17/0e25f808c3ff3b818923a346bf00882fa779489329306970092935c56741/httmock-1.3.0.tar.gz", " WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2110d3f518>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /packages/4e/17/0e25f808c3ff3b818923a346bf00882fa779489329306970092935c56741/httmock-1.3.0.tar.gz", "ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/4e/17/0e25f808c3ff3b818923a346bf00882fa779489329306970092935c56741/httmock-1.3.0.tar.gz (Caused by NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2110d3f860>: Failed to establish a new connection: [Errno -2] Name or service not known',))"]
ERROR: ERROR: Package installation failed...
For more information, see Pipfile and Pipfile.lock.
Once this issue is resolved, the issue will be automatically closed by bot.
The following code sample is breaking for me when attempting to instantiate a metricslist object
pc = PrometheusConnect(
url="my_prometheus_instance",
headers={"Authorization":"bearer my_private_token" },
disable_ssl=True,
)
end_time = datetime.datetime.now()
start_time = end_time - datetime.timedelta(days=365)
chunk_size = parse_timedelta("now", "1d")
query_result = pc.custom_query(query='avg_over_time(min(up{job=~"foo"})[7d:])*100')
bar=MetricsList(query_result)
This is the output of the code in question
bar=MetricsList(foo)
for item in bar:
print(item.metric_name, item.label_config)
print(item.metric_values)
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-12-6b7c63e24b2a> in <module>
----> 1 bar=MetricsList(foo)
2 for item in bar:
3 print(item.metric_name, item.label_config)
4 print(item.metric_values)
/opt/app-root/lib/python3.6/site-packages/prometheus_api_client/metrics_list.py in __init__(self, metric_data_list)
40 metric_object_list.append(metric_object)
41 else:
---> 42 metric_object = Metric(i)
43 if metric_object in metric_object_list:
44 metric_object_list[metric_object_list.index(metric_object)] += metric_object
/opt/app-root/lib/python3.6/site-packages/prometheus_api_client/metric.py in __init__(self, metric, oldest_data_datetime)
68 self.oldest_data_datetime = oldest_data_datetime
69 else:
---> 70 self.metric_name = metric["metric"]["__name__"]
71 self.label_config = deepcopy(metric["metric"])
72 self.oldest_data_datetime = oldest_data_datetime
KeyError: '__name__'
The value of query_result
is [{'metric': {}, 'value': [1566485171.497, '14735']}]
My guess is that any prometheus query that returns a time_series without a name
will break. Setting a default value of some sort is probably the simplest solution here.
I'm an old-fashioned guy who likes to consume his code via dnf install foo
, where it is generally less random and better controlled by an organization that I already trust. Would you contribute this code to Fedora as a python3-prometheus-api-client.rpm
?
Automatic dependency update failed for the current master with SHA 2369475.
The automatic dependency management cannot continue. Please fix errors reported bellow.
$ pipenv update --dev
Running $ pipenv lock then $ pipenv sync.
Creating a virtualenv for this project…
Pipfile: /tmp/tmptpc_c7om/Pipfile
Using /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python (3.6.8) to create virtualenv…
Already using interpreter /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python
Using real prefix '/usr'
No LICENSE.txt / LICENSE found in source
New python executable in /tmp/tmptpc_c7om/.venv/bin/python
Installing setuptools, pip, wheel...
done.
Running virtualenv with interpreter /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python
Virtualenv location: /tmp/tmptpc_c7om/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
FAIL
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 126, in <module>
main()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 119, in main
parsed.requirements_dir, parsed.packages)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 85, in _main
requirements_dir=requirements_dir,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 69, in resolve
req_dir=requirements_dir
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 726, in resolve_deps
req_dir=req_dir,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
resolved_tree = resolver.resolve()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 385, in resolve
results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 102, in resolve
has_changed, best_matches = self._resolve_one_round()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 206, in _resolve_one_round
for dep in self._iter_dependencies(best_match):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 301, in _iter_dependencies
dependencies = self.repository.get_dependencies(ireq)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 234, in get_dependencies
legacy_results = self.get_legacy_dependencies(ireq)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 419, in get_legacy_dependencies
os.makedirs(download_dir)
File "/tmp/tmptpc_c7om/.venv/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/user/.cache/pipenv/pkgs'
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 126, in <module>
main()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 119, in main
parsed.requirements_dir, parsed.packages)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 85, in _main
requirements_dir=requirements_dir,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 69, in resolve
req_dir=requirements_dir
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 726, in resolve_deps
req_dir=req_dir,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
resolved_tree = resolver.resolve()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 385, in resolve
results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 102, in resolve
has_changed, best_matches = self._resolve_one_round()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 206, in _resolve_one_round
for dep in self._iter_dependencies(best_match):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 301, in _iter_dependencies
dependencies = self.repository.get_dependencies(ireq)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 234, in get_dependencies
legacy_results = self.get_legacy_dependencies(ireq)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 419, in get_legacy_dependencies
os.makedirs(download_dir)
File "/tmp/tmptpc_c7om/.venv/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/user/.cache/pipenv/pkgs'
['Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 501, in create_spinner\n yield sp\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps\n c = resolve(cmd, sp)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 539, in resolve\n sys.exit(c.return_code)\n', 'SystemExit: 1\n']
Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-redhat-8.0-Ootpa
pipenv version: pipenv, version 2018.11.26
dateparser==0.7.2
- python-dateutil [required: Any, installed: 2.8.0]
- six [required: >=1.5, installed: 1.12.0]
- pytz [required: Any, installed: 2019.3]
- regex [required: Any, installed: 2019.8.19]
- tzlocal [required: Any, installed: 2.0.0]
- pytz [required: Any, installed: 2019.3]
matplotlib==3.1.1
- cycler [required: >=0.10, installed: 0.10.0]
- six [required: Any, installed: 1.12.0]
- kiwisolver [required: >=1.0.1, installed: 1.1.0]
- setuptools [required: Any, installed: 41.4.0]
- numpy [required: >=1.11, installed: 1.17.3]
- pyparsing [required: >=2.0.1,!=2.1.6,!=2.1.2,!=2.0.4, installed: 2.4.2]
- python-dateutil [required: >=2.1, installed: 2.8.0]
- six [required: >=1.5, installed: 1.12.0]
pandas==0.25.1
- numpy [required: >=1.13.3, installed: 1.17.3]
- python-dateutil [required: >=2.6.1, installed: 2.8.0]
- six [required: >=1.5, installed: 1.12.0]
- pytz [required: >=2017.2, installed: 2019.3]
requests==2.22.0
- certifi [required: >=2017.4.17, installed: 2019.9.11]
- chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
- idna [required: >=2.5,<2.9, installed: 2.8]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.6]
retrying==1.3.3
- six [required: >=1.7.0, installed: 1.12.0]
For more information, see Pipfile and Pipfile.lock.
Once this issue is resolved, the issue will be automatically closed by bot.
Hi, my team and I are using some features (bfb6eee) of this library that are not available in the published package in PyPI. When do you have plans to publish a new version?
Thanks!
After going through the recent PRs manually, I think we need some unit testing for the library. If anyone has any suggestions for it please comment here.
The configuration to generate docs for the new module is missing from the source
@chauhankaranraj
Add some mock tests for class PrometheusConnect
, so it can be tested without using a real prometheus instance.
I think we can use the mock object library in python for this
The Thoth-Coala image needs to be updated to include remark-cli
.
Jobs including the Markdown bear are failing: Zuul Logs
When downloading metrics in multiple chunks, the first chunk might not have the __name__
label
More info like what Prometheus is, and what kind of metrics does it serve would be good information in the project README
How about adding some small code snippets that highlight the features of the library and how it's used.
Just like in https://github.com/prometheus/prometheus_api_client_ruby
Automatic dependency update failed for the current master with SHA 93d4099.
The automatic dependency management cannot continue. Please fix errors reported bellow.
$ pipenv update --dev
Running $ pipenv lock then $ pipenv sync.
Creating a virtualenv for this project…
Pipfile: /tmp/tmpyrv9ft_v/Pipfile
Using /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python (3.6.8) to create virtualenv…
created virtual environment CPython3.6.8.final.0-64 in 444ms
creator CPython3Posix(dest=/tmp/tmpyrv9ft_v/.venv, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/tmp/tmpdmabah7z/seed-app-data/v1.0.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Virtualenv location: /tmp/tmpyrv9ft_v/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
['Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop\n return self.timeout()\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout\n raise TIMEOUT(msg)\n', "pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7ff91d25e978>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n", '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 501, in create_spinner\n yield sp\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps\n c = resolve(cmd, sp)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 517, in resolve\n result = c.expect(u"\\n", timeout=environments.PIPENV_INSTALL_TIMEOUT)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 215, in expect\n self.subprocess.expect(pattern=pattern, timeout=timeout)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect\n timeout, searchwindowsize, async_)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list\n return exp.expect_loop(timeout)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop\n return self.timeout(e)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout\n raise TIMEOUT(msg)\n', "pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7ff91d25e978>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n<pexpect.popen_spawn.PopenSpawn object at 0x7ff91d25e978>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n"]
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop
return self.timeout()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7ff91d25e978>
searcher: searcher_re:
0: re.compile('\n')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/bin/pipenv", line 8, in <module>
sys.exit(cli())
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/cli/command.py", line 514, in update
pypi_mirror=state.pypi_mirror,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1068, in do_lock
lockfile=lockfile
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps
c = resolve(cmd, sp)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 517, in resolve
result = c.expect(u"\n", timeout=environments.PIPENV_INSTALL_TIMEOUT)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 215, in expect
self.subprocess.expect(pattern=pattern, timeout=timeout)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect
timeout, searchwindowsize, async_)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list
return exp.expect_loop(timeout)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop
return self.timeout(e)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7ff91d25e978>
searcher: searcher_re:
0: re.compile('\n')
<pexpect.popen_spawn.PopenSpawn object at 0x7ff91d25e978>
searcher: searcher_re:
0: re.compile('\n')
Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-redhat-8.2-Ootpa
pipenv version: pipenv, version 2018.11.26
dateparser==0.7.4
- python-dateutil [required: Any, installed: 2.8.1]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: Any, installed: 2020.1]
- regex [required: !=2019.02.19, installed: 2020.5.14]
- tzlocal [required: Any, installed: 2.1]
- pytz [required: Any, installed: 2020.1]
httmock==1.3.0
- requests [required: >=1.0.0, installed: 2.23.0]
- certifi [required: >=2017.4.17, installed: 2020.4.5.1]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.9]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.9]
matplotlib==3.2.1
- cycler [required: >=0.10, installed: 0.10.0]
- six [required: Any, installed: 1.15.0]
- kiwisolver [required: >=1.0.1, installed: 1.2.0]
- numpy [required: >=1.11, installed: 1.18.4]
- pyparsing [required: >=2.0.1,!=2.1.6,!=2.1.2,!=2.0.4, installed: 2.4.7]
- python-dateutil [required: >=2.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.15.0]
pandas==1.0.3
- numpy [required: >=1.13.3, installed: 1.18.4]
- python-dateutil [required: >=2.6.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
retrying==1.3.3
- six [required: >=1.7.0, installed: 1.15.0]
For more information, see Pipfile and Pipfile.lock.
Once this issue is resolved, the issue will be automatically closed by bot.
Hey, Kebechet!
Create a new minor release, please.
Automatic dependency update failed for the current master with SHA 6682fe6.
The automatic dependency management cannot continue. Please fix errors reported bellow.
$ pipenv update --dev
Running $ pipenv lock then $ pipenv sync.
Creating a virtualenv for this project…
Pipfile: /tmp/tmptglhvdea/Pipfile
Using /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python (3.6.8) to create virtualenv…
created virtual environment CPython3.6.8.final.0-64 in 472ms
creator CPython3Posix(dest=/tmp/tmptglhvdea/.venv, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/tmp/tmp0bjwwwz2/seed-app-data/v1.0.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Virtualenv location: /tmp/tmptglhvdea/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
['Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop\n return self.timeout()\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout\n raise TIMEOUT(msg)\n', "pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f4744279828>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n", '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 501, in create_spinner\n yield sp\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps\n c = resolve(cmd, sp)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 517, in resolve\n result = c.expect(u"\\n", timeout=environments.PIPENV_INSTALL_TIMEOUT)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 215, in expect\n self.subprocess.expect(pattern=pattern, timeout=timeout)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect\n timeout, searchwindowsize, async_)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list\n return exp.expect_loop(timeout)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop\n return self.timeout(e)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout\n raise TIMEOUT(msg)\n', "pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f4744279828>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n<pexpect.popen_spawn.PopenSpawn object at 0x7f4744279828>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n"]
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop
return self.timeout()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f4744279828>
searcher: searcher_re:
0: re.compile('\n')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/bin/pipenv", line 8, in <module>
sys.exit(cli())
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/cli/command.py", line 514, in update
pypi_mirror=state.pypi_mirror,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1068, in do_lock
lockfile=lockfile
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps
c = resolve(cmd, sp)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 517, in resolve
result = c.expect(u"\n", timeout=environments.PIPENV_INSTALL_TIMEOUT)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 215, in expect
self.subprocess.expect(pattern=pattern, timeout=timeout)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect
timeout, searchwindowsize, async_)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list
return exp.expect_loop(timeout)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop
return self.timeout(e)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f4744279828>
searcher: searcher_re:
0: re.compile('\n')
<pexpect.popen_spawn.PopenSpawn object at 0x7f4744279828>
searcher: searcher_re:
0: re.compile('\n')
Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-redhat-8.2-Ootpa
pipenv version: pipenv, version 2018.11.26
dateparser==0.7.4
- python-dateutil [required: Any, installed: 2.8.1]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: Any, installed: 2020.1]
- regex [required: !=2019.02.19, installed: 2020.5.14]
- tzlocal [required: Any, installed: 2.1]
- pytz [required: Any, installed: 2020.1]
httmock==1.3.0
- requests [required: >=1.0.0, installed: 2.23.0]
- certifi [required: >=2017.4.17, installed: 2020.4.5.1]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.9]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.9]
matplotlib==3.2.1
- cycler [required: >=0.10, installed: 0.10.0]
- six [required: Any, installed: 1.15.0]
- kiwisolver [required: >=1.0.1, installed: 1.2.0]
- numpy [required: >=1.11, installed: 1.18.5]
- pyparsing [required: >=2.0.1,!=2.1.6,!=2.1.2,!=2.0.4, installed: 2.4.7]
- python-dateutil [required: >=2.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.15.0]
pandas==1.0.4
- numpy [required: >=1.13.3, installed: 1.18.5]
- python-dateutil [required: >=2.6.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: >=2017.2, installed: 2020.1]
retrying==1.3.3
- six [required: >=1.7.0, installed: 1.15.0]
For more information, see Pipfile and Pipfile.lock.
Once this issue is resolved, the issue will be automatically closed by bot.
Since a MetricList object has the same data as a MetricSnapShotDataFrame object for multiple timestamps, it makes sense to have a MetricsList.get_snapshot(timestamp)
class function for MetricsList that returns a MetricSnapShotDF object for the given timestamp.
Automatic dependency update failed for the current master with SHA f791d94.
The automatic dependency management cannot continue. Please fix errors reported bellow.
$ pipenv update --dev
Running $ pipenv lock then $ pipenv sync.
Installing dependencies from Pipfile.lock (949963)…
Installing initially failed dependencies…
Creating a virtualenv for this project…
Pipfile: /tmp/tmpnlc3kae4/Pipfile
Using /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python (3.6.8) to create virtualenv…
created virtual environment CPython3.6.8.final.0-64 in 424ms
creator CPython3Posix(dest=/tmp/tmpnlc3kae4/.venv, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/tmp/tmpi36u6mpq/seed-app-data/v1.0.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Virtualenv location: /tmp/tmpnlc3kae4/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (949963)!
An error occurred while installing numpy==1.18.3 --hash=sha256:163c78c04f47f26ca1b21068cea25ed7c5ecafe5f5ab2ea4895656a750582b56 --hash=sha256:1e37626bcb8895c4b3873fcfd54e9bfc5ffec8d0f525651d6985fcc5c6b6003c --hash=sha256:3d9e1554cd9b5999070c467b18e5ae3ebd7369f02706a8850816f576a954295f --hash=sha256:40c24960cd5cec55222963f255858a1c47c6fa50a65a5b03fd7de75e3700eaaa --hash=sha256:48e15612a8357393d176638c8f68a19273676877caea983f8baf188bad430379 --hash=sha256:a6bc9432c2640b008d5f29bad737714eb3e14bb8854878eacf3d7955c4e91c36 --hash=sha256:eb2286249ebfe8fcb5b425e5ec77e4736d53ee56d3ad296f8947f67150f495e3! Will try again.
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 2611, in do_sync
[pipenv.exceptions.InstallError]: system=system,
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]: pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]: retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]: _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]: raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Collecting numpy==1.18.3', ' Using cached numpy-1.18.3-cp36-cp36m-manylinux1_x86_64.whl (20.2 MB)']
[pipenv.exceptions.InstallError]: ['ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.', ' numpy==1.18.3 from https://files.pythonhosted.org/packages/3d/fc/4763e5f17ac6e7e7d55f377cde859ca1c5d5ac624441ab45315bc578aa9e/numpy-1.18.3-cp36-cp36m-manylinux1_x86_64.whl#sha256=a551d8cc267c634774830086da42e4ba157fa41dd3b93982bc9501b284b0c689 (from -r /tmp/pipenv-nrcjdx3c-requirements/pipenv-7bhvm2lt-requirement.txt (line 1)):', ' Expected sha256 163c78c04f47f26ca1b21068cea25ed7c5ecafe5f5ab2ea4895656a750582b56', ' Expected or 1e37626bcb8895c4b3873fcfd54e9bfc5ffec8d0f525651d6985fcc5c6b6003c', ' Expected or 3d9e1554cd9b5999070c467b18e5ae3ebd7369f02706a8850816f576a954295f', ' Expected or 40c24960cd5cec55222963f255858a1c47c6fa50a65a5b03fd7de75e3700eaaa', ' Expected or 48e15612a8357393d176638c8f68a19273676877caea983f8baf188bad430379', ' Expected or a6bc9432c2640b008d5f29bad737714eb3e14bb8854878eacf3d7955c4e91c36', ' Expected or eb2286249ebfe8fcb5b425e5ec77e4736d53ee56d3ad296f8947f67150f495e3', ' Got a551d8cc267c634774830086da42e4ba157fa41dd3b93982bc9501b284b0c689']
ERROR: ERROR: Package installation failed...
Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-redhat-8.1-Ootpa
pipenv version: pipenv, version 2018.11.26
dateparser==0.7.4
- python-dateutil [required: Any, installed: 2.8.1]
- six [required: >=1.5, installed: 1.14.0]
- pytz [required: Any, installed: 2019.3]
- regex [required: !=2019.02.19, installed: 2020.4.4]
- tzlocal [required: Any, installed: 2.0.0]
- pytz [required: Any, installed: 2019.3]
httmock==1.3.0
- requests [required: >=1.0.0, installed: 2.23.0]
- certifi [required: >=2017.4.17, installed: 2020.4.5.1]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.9]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.9]
matplotlib==3.2.1
- cycler [required: >=0.10, installed: 0.10.0]
- six [required: Any, installed: 1.14.0]
- kiwisolver [required: >=1.0.1, installed: 1.2.0]
- numpy [required: >=1.11, installed: 1.18.3]
- pyparsing [required: >=2.0.1,!=2.1.6,!=2.1.2,!=2.0.4, installed: 2.4.7]
- python-dateutil [required: >=2.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.14.0]
pandas==1.0.3
- numpy [required: >=1.13.3, installed: 1.18.3]
- python-dateutil [required: >=2.6.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.14.0]
- pytz [required: >=2017.2, installed: 2019.3]
retrying==1.3.3
- six [required: >=1.7.0, installed: 1.14.0]
For more information, see Pipfile and Pipfile.lock.
Once this issue is resolved, the issue will be automatically closed by bot.
Describe the bug
Tests are failing on master
To Reproduce
Run the test.
Btw what is the preferred way of running tests? This should be documented in the Readme.md.
Expected behavior
Test should pass on master.
@retry(stop_max_attempt_number=MAX_REQUEST_RETRIES, wait_fixed=CONNECTION_RETRY_WAIT_TIME)
def query_range(self, query: str, start_time: datetime, end_time: datetime, step: str, params: dict = None) -> Dict:
"""
A method to send a query_range to a Prometheus Host.
This method takes as input a string which will be sent as a query to
the specified Prometheus Host. This query is a PromQL query.
:param query: (str) This is a PromQL query, a few examples can be found
at https://prometheus.io/docs/prometheus/latest/querying/examples/
:param start_time: (datetime) A datetime object that specifies the query range start time.
:param end_time: (datetime) A datetime object that specifies the query range end time.
:param step: (str) Query resolution step width in duration format or float number of seconds
:param params: (dict) Optional dictionary containing GET parameters to be
sent along with the API request, such as "timeout"
:returns: (dict) A dict of metric data received in response of the query sent
:raises: (Exception) Raises an exception in case of a connection error
"""
start = round(start_time.timestamp())
end = round(end_time.timestamp())
params = params or {}
data = None
query = str(query)
# using the query_range API to get raw data
response = requests.get(
"{0}/api/v1/query_range".format(self.url),
params={**{"query": query,
"start": start,
"end": end,
"step": step},
**params},
verify=self.ssl_verification,
headers=self.headers,
)
if response.status_code == 200:
data = response.json()["data"]["result"]
else:
raise Exception(
"HTTP Status Code {} ({})".format(response.status_code, response.content)
)
return data
Automatic dependency update failed for the current master with SHA 49d0fdf.
The automatic dependency management cannot continue. Please fix errors reported bellow.
$ pipenv update --dev
Running $ pipenv lock then $ pipenv sync.
Creating a virtualenv for this project…
Pipfile: /tmp/tmpa5yakhui/Pipfile
Using /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python (3.6.8) to create virtualenv…
created virtual environment CPython3.6.8.final.0-64 in 706ms
creator CPython3Posix(dest=/tmp/tmpa5yakhui/.venv, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/tmp/tmp_a56xdtk/seed-app-data/v1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Virtualenv location: /tmp/tmpa5yakhui/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
['Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop\n return self.timeout()\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout\n raise TIMEOUT(msg)\n', "pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f36a8716d30>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n", '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 501, in create_spinner\n yield sp\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps\n c = resolve(cmd, sp)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 517, in resolve\n result = c.expect(u"\\n", timeout=environments.PIPENV_INSTALL_TIMEOUT)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 215, in expect\n self.subprocess.expect(pattern=pattern, timeout=timeout)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect\n timeout, searchwindowsize, async_)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list\n return exp.expect_loop(timeout)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop\n return self.timeout(e)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout\n raise TIMEOUT(msg)\n', "pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f36a8716d30>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n<pexpect.popen_spawn.PopenSpawn object at 0x7f36a8716d30>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n"]
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop
return self.timeout()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f36a8716d30>
searcher: searcher_re:
0: re.compile('\n')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/bin/pipenv", line 8, in <module>
sys.exit(cli())
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/cli/command.py", line 514, in update
pypi_mirror=state.pypi_mirror,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1068, in do_lock
lockfile=lockfile
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps
c = resolve(cmd, sp)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 517, in resolve
result = c.expect(u"\n", timeout=environments.PIPENV_INSTALL_TIMEOUT)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 215, in expect
self.subprocess.expect(pattern=pattern, timeout=timeout)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect
timeout, searchwindowsize, async_)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list
return exp.expect_loop(timeout)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop
return self.timeout(e)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f36a8716d30>
searcher: searcher_re:
0: re.compile('\n')
<pexpect.popen_spawn.PopenSpawn object at 0x7f36a8716d30>
searcher: searcher_re:
0: re.compile('\n')
Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-redhat-8.1-Ootpa
pipenv version: pipenv, version 2018.11.26
dateparser==0.7.4
- python-dateutil [required: Any, installed: 2.8.1]
- six [required: >=1.5, installed: 1.14.0]
- pytz [required: Any, installed: 2019.3]
- regex [required: !=2019.02.19, installed: 2020.2.20]
- tzlocal [required: Any, installed: 2.0.0]
- pytz [required: Any, installed: 2019.3]
httmock==1.3.0
- requests [required: >=1.0.0, installed: 2.23.0]
- certifi [required: >=2017.4.17, installed: 2019.11.28]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.9]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.8]
matplotlib==3.2.1
- cycler [required: >=0.10, installed: 0.10.0]
- six [required: Any, installed: 1.14.0]
- kiwisolver [required: >=1.0.1, installed: 1.1.0]
- setuptools [required: Any, installed: 46.0.0]
- numpy [required: >=1.11, installed: 1.18.2]
- pyparsing [required: >=2.0.1,!=2.1.6,!=2.1.2,!=2.0.4, installed: 2.4.6]
- python-dateutil [required: >=2.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.14.0]
pandas==1.0.3
- numpy [required: >=1.13.3, installed: 1.18.2]
- python-dateutil [required: >=2.6.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.14.0]
- pytz [required: >=2017.2, installed: 2019.3]
retrying==1.3.3
- six [required: >=1.7.0, installed: 1.14.0]
For more information, see Pipfile and Pipfile.lock.
Once this issue is resolved, the issue will be automatically closed by bot.
Currently, the MetricList
class can be used to group a metric time series by unique label configs. (See How MetricsList works
in MetricList_example.ipynb). This lets the user work with a metric by working with time series values in Metric
objects separately.
However in some use cases you might need to work with values of a metric for all different label configs, at a given timestamp.So we need a easy-to-work-with representation for this task.
The basic difference between what's already in the library and what this issue asks for is
metric =
badger_disk_writes:rate1m_Fourier {'ae_source': 'https://prometheus-exporter-alpha-0.thoth-dgraph-stage.svc:8080/debug/prometheus_metrics', 'instance': 'prometheus-aggregate-exporter-thoth-dgraph-stage.cloud.paas.psi.redhat.com:80', 'job': 'Thoth Dgraph aggregate-exporter (stage)', 'monitor': 'datahub', 'value_type': 'yhat_lower'}
timeseries =
timestamp | value |
---|---|
2020-02-02 | 0 |
metric =
badger_disk_writes:rate1m_Fourier {'ae_source': 'https://prometheus-exporter-alpha-0.thoth-dgraph-stage.svc:8080/debug/prometheus_metrics', 'instance': 'prometheus-aggregate-exporter-thoth-dgraph-stage.cloud.paas.psi.redhat.com:80', 'job': 'Thoth Dgraph aggregate-exporter (stage)', 'monitor': 'datahub', 'value_type': 'yhat_upper'}
timeseries =
timestamp | value |
---|---|
2020-02-02 | 1 |
timestamp = 2020-02-02
name | ae_source | value_type | value | timestamp |
---|---|---|---|---|
badger_disk_writes:rate1m_Fourier | thesource | yhat_lower | 0 | 1583355394 |
badger_disk_writes:rate1m_Fourier | thesource | yhat_upper | 1 | 1583355394 |
https://github.com/AICoE/prometheus-api-client-python/blob/v0.0.2/prometheus_api_client/metric.py#L146-L148
Here, sometimes the dateparser parses date in a yyyy-dd-mm format which is incorrect.
We can add settings={"DATE_ORDER": "YMD"}
to fix this issue.
While at it, we should make this change in every place dateparser.parse is used
Just like store_locally, add support to store directly to some s3 like storage
Describe the bug
https://prometheus-api-client-python.readthedocs.io/en/latest/index.html is quite empty. It should have a word about what the library does, how to obtain it, and (links to?) basic usage.
Connections can fail, more better logging would be helpful
ability to cache the results to disk and read from disk.
filename = md5(query)
result = client.q(query)
put(result, filename)
the problem might be with a now
in the query.
Features to be added before release of v0.0.2:
If you have any feature requests please comment about it in this thread.
Describe the bug
examples/MetricsList_example.ipynb
does not work. The server does not exist (even inside the VPN).
To Reproduce
Open the notebook via jupyter notebook examples/MetricsList_example.ipynb
Observe a number of cells fail.
Expected behavior
Cells would render fine.
Additional context
If we implement result caching (https://github.com/AICoE/prometheus-api-client-python/issues/82) then the notebook example might include the cached requests and would work w/o access to the server.
Problem
I would like to be able to get a Pandas Dataframe of a PromQL range query, instead of just having the instantaneous dataframe, which comprises the first or last values of a range query at the moment.
Proposal
A new class called MetricRangeDataFrame
which creates a Pandas MultiIndex. The DataFrame could look something like this, where timestamp is its own index and all the other labels and name fields are the same as in MetricSnapshotDataFrame
Alternatives
Extending the current MetricRangeDataFrame is a possible solution, however, I'm thinking its better to make two independent dataframe types corresponding to an instant vector and a range vector in PromQL.
Comments
If this is a viable option, I can work on adding this.
Best,
Allen
Hey, Kebechet!
Create a new patch release, please.
When the chunk size is greater than end_time - start_time, the client just exits printing an error, it should raise an exception instead
Automatic dependency update failed for the current master with SHA 15f0185.
The automatic dependency management cannot continue. Please fix errors reported bellow.
$ pipenv update --dev
Running $ pipenv lock then $ pipenv sync.
Installing dependencies from Pipfile.lock (c20ad5)…
Installing initially failed dependencies…
Creating a virtualenv for this project…
Pipfile: /tmp/tmp_smvl2oh/Pipfile
Using /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python (3.6.8) to create virtualenv…
Already using interpreter /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python
Using real prefix '/usr'
No LICENSE.txt / LICENSE found in source
New python executable in /tmp/tmp_smvl2oh/.venv/bin/python
Installing setuptools, pip, wheel...
done.
Running virtualenv with interpreter /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python
Virtualenv location: /tmp/tmp_smvl2oh/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (c20ad5)!
An error occurred while installing certifi==2019.11.28 --hash=sha256:017c25db2a153ce562900032d5bc68e9f191e44e9a0f762f373977de9df1fbb3 --hash=sha256:25b64c7da4cd7479594d035c08c2d809eb4aab3a26e5a990ea98cc450c320f1f! Will try again.
An error occurred while installing chardet==3.0.4 --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691! Will try again.
An error occurred while installing cycler==0.10.0 --hash=sha256:1d8a5ae1ff6c5cf9b93e8811e581232ad8920aeec647c37316ceac982b08cb2d --hash=sha256:cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8! Will try again.
An error occurred while installing dateparser==0.7.2 --hash=sha256:983d84b5e3861cb0aa240cad07f12899bb10b62328aae188b9007e04ce37d665 --hash=sha256:e1eac8ef28de69a554d5fcdb60b172d526d61924b1a40afbbb08df459a36006b! Will try again.
An error occurred while installing idna==2.8 --hash=sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c! Will try again.
An error occurred while installing kiwisolver==1.1.0 --hash=sha256:05b5b061e09f60f56244adc885c4a7867da25ca387376b02c1efc29cc16bcd0f --hash=sha256:210d8c39d01758d76c2b9a693567e1657ec661229bc32eac30761fa79b2474b0 --hash=sha256:26f4fbd6f5e1dabff70a9ba0d2c4bd30761086454aa30dddc5b52764ee4852b7 --hash=sha256:3b15d56a9cd40c52d7ab763ff0bc700edbb4e1a298dc43715ecccd605002cf11 --hash=sha256:3b2378ad387f49cbb328205bda569b9f87288d6bc1bf4cd683c34523a2341efe --hash=sha256:400599c0fe58d21522cae0e8b22318e09d9729451b17ee61ba8e1e7c0346565c --hash=sha256:47b8cb81a7d18dbaf4fed6a61c3cecdb5adec7b4ac292bddb0d016d57e8507d5 --hash=sha256:53eaed412477c836e1b9522c19858a8557d6e595077830146182225613b11a75 --hash=sha256:58e626e1f7dfbb620d08d457325a4cdac65d1809680009f46bf41eaf74ad0187 --hash=sha256:5a52e1b006bfa5be04fe4debbcdd2688432a9af4b207a3f429c74ad625022641 --hash=sha256:5c7ca4e449ac9f99b3b9d4693debb1d6d237d1542dd6a56b3305fe8a9620f883 --hash=sha256:682e54f0ce8f45981878756d7203fd01e188cc6c8b2c5e2cf03675390b4534d5 --hash=sha256:76275ee077772c8dde04fb6c5bc24b91af1bb3e7f4816fd1852f1495a64dad93 --hash=sha256:79bfb2f0bd7cbf9ea256612c9523367e5ec51d7cd616ae20ca2c90f575d839a2 --hash=sha256:7f4dd50874177d2bb060d74769210f3bce1af87a8c7cf5b37d032ebf94f0aca3 --hash=sha256:8944a16020c07b682df861207b7e0efcd2f46c7488619cb55f65882279119389 --hash=sha256:8aa7009437640beb2768bfd06da049bad0df85f47ff18426261acecd1cf00897 --hash=sha256:9105ce82dcc32c73eb53a04c869b6a4bc756b43e4385f76ea7943e827f529e4d --hash=sha256:933df612c453928f1c6faa9236161a1d999a26cd40abf1dc5d7ebbc6dbfb8fca --hash=sha256:939f36f21a8c571686eb491acfffa9c7f1ac345087281b412d63ea39ca14ec4a --hash=sha256:9491578147849b93e70d7c1d23cb1229458f71fc79c51d52dce0809b2ca44eea --hash=sha256:9733b7f64bd9f807832d673355f79703f81f0b3e52bfce420fc00d8cb28c6a6c --hash=sha256:a02f6c3e229d0b7220bd74600e9351e18bc0c361b05f29adae0d10599ae0e326 --hash=sha256:a0c0a9f06872330d0dd31b45607197caab3c22777600e88031bfe66799e70bb0 --hash=sha256:aa716b9122307c50686356cfb47bfbc66541868078d0c801341df31dca1232a9 --hash=sha256:acc4df99308111585121db217681f1ce0eecb48d3a828a2f9bbf9773f4937e9e --hash=sha256:b64916959e4ae0ac78af7c3e8cef4becee0c0e9694ad477b4c6b3a536de6a544 --hash=sha256:d22702cadb86b6fcba0e6b907d9f84a312db9cd6934ee728144ce3018e715ee1 --hash=sha256:d3fcf0819dc3fea58be1fd1ca390851bdb719a549850e708ed858503ff25d995 --hash=sha256:d52e3b1868a4e8fd18b5cb15055c76820df514e26aa84cc02f593d99fef6707f --hash=sha256:db1a5d3cc4ae943d674718d6c47d2d82488ddd94b93b9e12d24aabdbfe48caee --hash=sha256:e3a21a720791712ed721c7b95d433e036134de6f18c77dbe96119eaf7aa08004 --hash=sha256:e8bf074363ce2babeb4764d94f8e65efd22e6a7c74860a4f05a6947afc020ff2 --hash=sha256:f16814a4a96dc04bf1da7d53ee8d5b1d6decfc1a92a63349bb15d37b6a263dd9 --hash=sha256:f2b22153870ca5cf2ab9c940d7bc38e8e9089fa0f7e5856ea195e1cf4ff43d5a --hash=sha256:f790f8b3dff3d53453de6a7b7ddd173d2e020fb160baff578d578065b108a05f --hash=sha256:fe51b79da0062f8e9d49ed0182a626a7dc7a0cbca0328f612c6ee5e4711c81e4! Will try again.
An error occurred while installing matplotlib==3.1.2 --hash=sha256:08ccc8922eb4792b91c652d3e6d46b1c99073f1284d1b6705155643e8046463a --hash=sha256:161dcd807c0c3232f4dcd4a12a382d52004a498174cbfafd40646106c5bcdcc8 --hash=sha256:1f9e885bfa1b148d16f82a6672d043ecf11197f6c71ae222d0546db706e52eb2 --hash=sha256:2d6ab54015a7c0d727c33e36f85f5c5e4172059efdd067f7527f6e5d16ad01aa --hash=sha256:5d2e408a2813abf664bd79431107543ecb449136912eb55bb312317edecf597e --hash=sha256:61c8b740a008218eb604de518eb411c4953db0cb725dd0b32adf8a81771cab9e --hash=sha256:80f10af8378fccc136da40ea6aa4a920767476cdfb3241acb93ef4f0465dbf57 --hash=sha256:819d4860315468b482f38f1afe45a5437f60f03eaede495d5ff89f2eeac89500 --hash=sha256:8cc0e44905c2c8fda5637cad6f311eb9517017515a034247ab93d0cf99f8bb7a --hash=sha256:8e8e2c2fe3d873108735c6ee9884e6f36f467df4a143136209cff303b183bada --hash=sha256:98c2ffeab8b79a4e3a0af5dd9939f92980eb6e3fec10f7f313df5f35a84dacab --hash=sha256:d59bb0e82002ac49f4152963f8a1079e66794a4f454457fd2f0dcc7bf0797d30 --hash=sha256:ee59b7bb9eb75932fe3787e54e61c99b628155b0cedc907864f24723ba55b309! Will try again.
An error occurred while installing numpy==1.18.1 --hash=sha256:1786a08236f2c92ae0e70423c45e1e62788ed33028f94ca99c4df03f5be6b3c6 --hash=sha256:17aa7a81fe7599a10f2b7d95856dc5cf84a4eefa45bc96123cbbc3ebc568994e --hash=sha256:20b26aaa5b3da029942cdcce719b363dbe58696ad182aff0e5dcb1687ec946dc --hash=sha256:2d75908ab3ced4223ccba595b48e538afa5ecc37405923d1fea6906d7c3a50bc --hash=sha256:39d2c685af15d3ce682c99ce5925cc66efc824652e10990d2462dfe9b8918c6a --hash=sha256:56bc8ded6fcd9adea90f65377438f9fea8c05fcf7c5ba766bef258d0da1554aa --hash=sha256:590355aeade1a2eaba17617c19edccb7db8d78760175256e3cf94590a1a964f3 --hash=sha256:70a840a26f4e61defa7bdf811d7498a284ced303dfbc35acb7be12a39b2aa121 --hash=sha256:77c3bfe65d8560487052ad55c6998a04b654c2fbc36d546aef2b2e511e760971 --hash=sha256:9537eecf179f566fd1c160a2e912ca0b8e02d773af0a7a1120ad4f7507cd0d26 --hash=sha256:9acdf933c1fd263c513a2df3dceecea6f3ff4419d80bf238510976bf9bcb26cd --hash=sha256:ae0975f42ab1f28364dcda3dde3cf6c1ddab3e1d4b2909da0cb0191fa9ca0480 --hash=sha256:b3af02ecc999c8003e538e60c89a2b37646b39b688d4e44d7373e11c2debabec --hash=sha256:b6ff59cee96b454516e47e7721098e6ceebef435e3e21ac2d6c3b8b02628eb77 --hash=sha256:b765ed3930b92812aa698a455847141869ef755a87e099fddd4ccf9d81fffb57 --hash=sha256:c98c5ffd7d41611407a1103ae11c8b634ad6a43606eca3e2a5a269e5d6e8eb07 --hash=sha256:cf7eb6b1025d3e169989416b1adcd676624c2dbed9e3bcb7137f51bfc8cc2572 --hash=sha256:d92350c22b150c1cae7ebb0ee8b5670cc84848f6359cf6b5d8f86617098a9b73 --hash=sha256:e422c3152921cece8b6a2fb6b0b4d73b6579bd20ae075e7d15143e711f3ca2ca --hash=sha256:e840f552a509e3380b0f0ec977e8124d0dc34dc0e68289ca28f4d7c1d0d79474 --hash=sha256:f3d0a94ad151870978fb93538e95411c83899c9dc63e6fb65542f769568ecfa5! Will try again.
An error occurred while installing pandas==0.25.3 --hash=sha256:00dff3a8e337f5ed7ad295d98a31821d3d0fe7792da82d78d7fd79b89c03ea9d --hash=sha256:22361b1597c8c2ffd697aa9bf85423afa9e1fcfa6b1ea821054a244d5f24d75e --hash=sha256:255920e63850dc512ce356233081098554d641ba99c3767dde9e9f35630f994b --hash=sha256:26382aab9c119735908d94d2c5c08020a4a0a82969b7e5eefb92f902b3b30ad7 --hash=sha256:33970f4cacdd9a0ddb8f21e151bfb9f178afb7c36eb7c25b9094c02876f385c2 --hash=sha256:4545467a637e0e1393f7d05d61dace89689ad6d6f66f267f86fff737b702cce9 --hash=sha256:52da74df8a9c9a103af0a72c9d5fdc8e0183a90884278db7f386b5692a2220a4 --hash=sha256:61741f5aeb252f39c3031d11405305b6d10ce663c53bc3112705d7ad66c013d0 --hash=sha256:6a3ac2c87e4e32a969921d1428525f09462770c349147aa8e9ab95f88c71ec71 --hash=sha256:7458c48e3d15b8aaa7d575be60e1e4dd70348efcd9376656b72fecd55c59a4c3 --hash=sha256:78bf638993219311377ce9836b3dc05f627a666d0dbc8cec37c0ff3c9ada673b --hash=sha256:8153705d6545fd9eb6dd2bc79301bff08825d2e2f716d5dced48daafc2d0b81f --hash=sha256:975c461accd14e89d71772e89108a050fa824c0b87a67d34cedf245f6681fc17 --hash=sha256:9962957a27bfb70ab64103d0a7b42fa59c642fb4ed4cb75d0227b7bb9228535d --hash=sha256:adc3d3a3f9e59a38d923e90e20c4922fc62d1e5a03d083440468c6d8f3f1ae0a --hash=sha256:bbe3eb765a0b1e578833d243e2814b60c825b7fdbf4cdfe8e8aae8a08ed56ecf --hash=sha256:df8864824b1fe488cf778c3650ee59c3a0d8f42e53707de167ba6b4f7d35f133 --hash=sha256:e45055c30a608076e31a9fcd780a956ed3b1fa20db61561b8d88b79259f526f7 --hash=sha256:ee50c2142cdcf41995655d499a157d0a812fce55c97d9aad13bc1eef837ed36c! Will try again.
An error occurred while installing pyparsing==2.4.6 --hash=sha256:4c830582a84fb022400b85429791bc551f1f4871c33f23e44f353119e92f969f --hash=sha256:c342dccb5250c08d45fd6f8b4a559613ca603b57498511740e65cd11a2e7dcec! Will try again.
An error occurred while installing python-dateutil==2.8.1 --hash=sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c --hash=sha256:75bb3f31ea686f1197762692a9ee6a7550b59fc6ca3a1f4b5d7e32fb98e2da2a! Will try again.
An error occurred while installing pytz==2019.3 --hash=sha256:1c557d7d0e871de1f5ccd5833f60fb2550652da6be2693c1e02300743d21500d --hash=sha256:b02c06db6cf09c12dd25137e563b31700d3b80fcc4ad23abb7a315f2789819be! Will try again.
An error occurred while installing regex==2020.1.8 --hash=sha256:07b39bf943d3d2fe63d46281d8504f8df0ff3fe4c57e13d1656737950e53e525 --hash=sha256:0932941cdfb3afcbc26cc3bcf7c3f3d73d5a9b9c56955d432dbf8bbc147d4c5b --hash=sha256:0e182d2f097ea8549a249040922fa2b92ae28be4be4895933e369a525ba36576 --hash=sha256:10671601ee06cf4dc1bc0b4805309040bb34c9af423c12c379c83d7895622bb5 --hash=sha256:23e2c2c0ff50f44877f64780b815b8fd2e003cda9ce817a7fd00dea5600c84a0 --hash=sha256:26ff99c980f53b3191d8931b199b29d6787c059f2e029b2b0c694343b1708c35 --hash=sha256:27429b8d74ba683484a06b260b7bb00f312e7c757792628ea251afdbf1434003 --hash=sha256:3e77409b678b21a056415da3a56abfd7c3ad03da71f3051bbcdb68cf44d3c34d --hash=sha256:4e8f02d3d72ca94efc8396f8036c0d3bcc812aefc28ec70f35bb888c74a25161 --hash=sha256:4eae742636aec40cf7ab98171ab9400393360b97e8f9da67b1867a9ee0889b26 --hash=sha256:6a6ae17bf8f2d82d1e8858a47757ce389b880083c4ff2498dba17c56e6c103b9 --hash=sha256:6a6ba91b94427cd49cd27764679024b14a96874e0dc638ae6bdd4b1a3ce97be1 --hash=sha256:7bcd322935377abcc79bfe5b63c44abd0b29387f267791d566bbb566edfdd146 --hash=sha256:98b8ed7bb2155e2cbb8b76f627b2fd12cf4b22ab6e14873e8641f266e0fb6d8f --hash=sha256:bd25bb7980917e4e70ccccd7e3b5740614f1c408a642c245019cff9d7d1b6149 --hash=sha256:d0f424328f9822b0323b3b6f2e4b9c90960b24743d220763c7f07071e0778351 --hash=sha256:d58e4606da2a41659c84baeb3cfa2e4c87a74cec89a1e7c56bee4b956f9d7461 --hash=sha256:e3cd21cc2840ca67de0bbe4071f79f031c81418deb544ceda93ad75ca1ee9f7b --hash=sha256:e6c02171d62ed6972ca8631f6f34fa3281d51db8b326ee397b9c83093a6b7242 --hash=sha256:e7c7661f7276507bce416eaae22040fd91ca471b5b33c13f8ff21137ed6f248c --hash=sha256:ecc6de77df3ef68fee966bb8cb4e067e84d4d1f397d0ef6fce46913663540d77! Will try again.
An error occurred while installing requests==2.22.0 --hash=sha256:11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4 --hash=sha256:9cf5292fcd0f598c671cfc1e0d7d1a7f13bb8085e9a590f48c010551dc6c4b31! Will try again.
An error occurred while installing retrying==1.3.3 --hash=sha256:08c039560a6da2fe4f2c426d0766e284d3b736e355f8dd24b37367b0bb41973b! Will try again.
An error occurred while installing six==1.14.0 --hash=sha256:236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a --hash=sha256:8f3cd2e254d8f793e7f3d6d9df77b92252b52637291d0f0da013c76ea2724b6c! Will try again.
An error occurred while installing tzlocal==2.0.0 --hash=sha256:11c9f16e0a633b4b60e1eede97d8a46340d042e67b670b290ca526576e039048 --hash=sha256:949b9dd5ba4be17190a80c0268167d7e6c92c62b30026cf9764caf3e308e5590! Will try again.
An error occurred while installing urllib3==1.25.7 --hash=sha256:a8a318824cc77d1fd4b2bec2ded92646630d7fe8619497b142c84a9e6f5a7293 --hash=sha256:f3c5fd51747d450d4dcf6f923c81f78f811aab8205fda64b0aba34a4e48b0745! Will try again.
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/cli/command.py", line 527, in update
[pipenv.exceptions.InstallError]: pypi_mirror=state.pypi_mirror,
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 2611, in do_sync
[pipenv.exceptions.InstallError]: system=system,
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]: pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 862, in do_install_dependencies
[pipenv.exceptions.InstallError]: _cleanup_procs(procs, False, failed_deps_queue, retry=False)
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]: raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: []
[pipenv.exceptions.InstallError]: ['Traceback (most recent call last):', ' File "/tmp/tmp_smvl2oh/.venv/bin/pip", line 10, in <module>', ' sys.exit(main())', ' File "/tmp/tmp_smvl2oh/.venv/lib/python3.6/site-packages/pip/_internal/cli/main.py", line 73, in main', ' command = create_command(cmd_name, isolated=("--isolated" in cmd_args))', ' File "/tmp/tmp_smvl2oh/.venv/lib/python3.6/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command', ' module = importlib.import_module(module_path)', ' File "/tmp/tmp_smvl2oh/.venv/lib64/python3.6/importlib/__init__.py", line 126, in import_module', ' return _bootstrap._gcd_import(name[level:], package, level)', ' File "<frozen importlib._bootstrap>", line 994, in _gcd_import', ' File "<frozen importlib._bootstrap>", line 971, in _find_and_load', ' File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked', ' File "<frozen importlib._bootstrap>", line 665, in _load_unlocked', ' File "<frozen importlib._bootstrap_external>", line 678, in exec_module', ' File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed', ' File "/tmp/tmp_smvl2oh/.venv/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 24, in <module>', ' from pip._internal.cli.req_command import RequirementCommand', ' File "/tmp/tmp_smvl2oh/.venv/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 20, in <module>', ' from pip._internal.operations.prepare import RequirementPreparer', ' File "/tmp/tmp_smvl2oh/.venv/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 16, in <module>', ' from pip._internal.distributions import (', ' File "/tmp/tmp_smvl2oh/.venv/lib/python3.6/site-packages/pip/_internal/distributions/__init__.py", line 1, in <module>', ' from pip._internal.distributions.source import SourceDistribution', "ImportError: cannot import name 'SourceDistribution'"]
ERROR: ERROR: Package installation failed...
Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-redhat-8.1-Ootpa
pipenv version: pipenv, version 2018.11.26
Unable to obtain dependency graph:
An error occurred while installing retrying! Will try again.
An error occurred while installing requests! Will try again.
An error occurred while installing dateparser! Will try again.
An error occurred while installing pandas! Will try again.
An error occurred while installing matplotlib! Will try again.
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/cli/command.py", line 254, in install
[pipenv.exceptions.InstallError]: editable_packages=state.installstate.editables,
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1874, in do_install
[pipenv.exceptions.InstallError]: keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]: pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 862, in do_install_dependencies
[pipenv.exceptions.InstallError]: _cleanup_procs(procs, False, failed_deps_queue, retry=False)
[pipenv.exceptions.InstallError]: File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]: raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: []
[pipenv.exceptions.InstallError]: ['Traceback (most recent call last):', ' File "/tmp/tmp_smvl2oh/.venv/bin/pip", line 10, in <module>', ' sys.exit(main())', ' File "/tmp/tmp_smvl2oh/.venv/lib/python3.6/site-packages/pip/_internal/cli/main.py", line 73, in main', ' command = create_command(cmd_name, isolated=("--isolated" in cmd_args))', ' File "/tmp/tmp_smvl2oh/.venv/lib/python3.6/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command', ' module = importlib.import_module(module_path)', ' File "/tmp/tmp_smvl2oh/.venv/lib64/python3.6/importlib/__init__.py", line 126, in import_module', ' return _bootstrap._gcd_import(name[level:], package, level)', ' File "<frozen importlib._bootstrap>", line 994, in _gcd_import', ' File "<frozen importlib._bootstrap>", line 971, in _find_and_load', ' File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked', ' File "<frozen importlib._bootstrap>", line 665, in _load_unlocked', ' File "<frozen importlib._bootstrap_external>", line 678, in exec_module', ' File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed', ' File "/tmp/tmp_smvl2oh/.venv/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 24, in <module>', ' from pip._internal.cli.req_command import RequirementCommand', ' File "/tmp/tmp_smvl2oh/.venv/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 20, in <module>', ' from pip._internal.operations.prepare import RequirementPreparer', ' File "/tmp/tmp_smvl2oh/.venv/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 16, in <module>', ' from pip._internal.distributions import (', ' File "/tmp/tmp_smvl2oh/.venv/lib/python3.6/site-packages/pip/_internal/distributions/__init__.py", line 1, in <module>', ' from pip._internal.distributions.source import SourceDistribution', "ImportError: cannot import name 'SourceDistribution'"]
ERROR: ERROR: Package installation failed...
For more information, see Pipfile and Pipfile.lock.
Once this issue is resolved, the issue will be automatically closed by bot.
https://github.com/AICoE/prometheus-api-client-python/blob/v0.0.2/prometheus_api_client/metric.py#L67
Here the errors
param is broken in pandas==0.25, it should work in pandas==0.24.2
Automatic dependency update failed for the current master with SHA 15f0185.
The automatic dependency management cannot continue. Please fix errors reported bellow.
$ pipenv update --dev
Running $ pipenv lock then $ pipenv sync.
Creating a virtualenv for this project…
Pipfile: /tmp/tmpg2jml7dd/Pipfile
Using /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python (3.6.8) to create virtualenv…
Already using interpreter /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python
Using real prefix '/usr'
No LICENSE.txt / LICENSE found in source
New python executable in /tmp/tmpg2jml7dd/.venv/bin/python
Installing setuptools, pip, wheel...
done.
Running virtualenv with interpreter /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python
Virtualenv location: /tmp/tmpg2jml7dd/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
['Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop\n return self.timeout()\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout\n raise TIMEOUT(msg)\n', "pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f38256da400>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n", '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 501, in create_spinner\n yield sp\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps\n c = resolve(cmd, sp)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 517, in resolve\n result = c.expect(u"\\n", timeout=environments.PIPENV_INSTALL_TIMEOUT)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 215, in expect\n self.subprocess.expect(pattern=pattern, timeout=timeout)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect\n timeout, searchwindowsize, async_)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list\n return exp.expect_loop(timeout)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop\n return self.timeout(e)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout\n raise TIMEOUT(msg)\n', "pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f38256da400>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n<pexpect.popen_spawn.PopenSpawn object at 0x7f38256da400>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n"]
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop
return self.timeout()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f38256da400>
searcher: searcher_re:
0: re.compile('\n')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/bin/pipenv", line 8, in <module>
sys.exit(cli())
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/cli/command.py", line 514, in update
pypi_mirror=state.pypi_mirror,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1068, in do_lock
lockfile=lockfile
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps
c = resolve(cmd, sp)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 517, in resolve
result = c.expect(u"\n", timeout=environments.PIPENV_INSTALL_TIMEOUT)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 215, in expect
self.subprocess.expect(pattern=pattern, timeout=timeout)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect
timeout, searchwindowsize, async_)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list
return exp.expect_loop(timeout)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop
return self.timeout(e)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f38256da400>
searcher: searcher_re:
0: re.compile('\n')
<pexpect.popen_spawn.PopenSpawn object at 0x7f38256da400>
searcher: searcher_re:
0: re.compile('\n')
Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-redhat-8.1-Ootpa
pipenv version: pipenv, version 2018.11.26
dateparser==0.7.2
- python-dateutil [required: Any, installed: 2.8.1]
- six [required: >=1.5, installed: 1.14.0]
- pytz [required: Any, installed: 2019.3]
- regex [required: Any, installed: 2020.1.8]
- tzlocal [required: Any, installed: 2.0.0]
- pytz [required: Any, installed: 2019.3]
matplotlib==3.1.2
- cycler [required: >=0.10, installed: 0.10.0]
- six [required: Any, installed: 1.14.0]
- kiwisolver [required: >=1.0.1, installed: 1.1.0]
- setuptools [required: Any, installed: 45.1.0]
- numpy [required: >=1.11, installed: 1.18.1]
- pyparsing [required: >=2.0.1,!=2.1.6,!=2.1.2,!=2.0.4, installed: 2.4.6]
- python-dateutil [required: >=2.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.14.0]
pandas==0.25.3
- numpy [required: >=1.13.3, installed: 1.18.1]
- python-dateutil [required: >=2.6.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.14.0]
- pytz [required: >=2017.2, installed: 2019.3]
requests==2.22.0
- certifi [required: >=2017.4.17, installed: 2019.11.28]
- chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
- idna [required: >=2.5,<2.9, installed: 2.8]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.8]
retrying==1.3.3
- six [required: >=1.7.0, installed: 1.14.0]
For more information, see Pipfile and Pipfile.lock.
Once this issue is resolved, the issue will be automatically closed by bot.
Automatic dependency update failed for the current master with SHA 93d4099.
The automatic dependency management cannot continue. Please fix errors reported bellow.
$ pipenv update --dev
Running $ pipenv lock then $ pipenv sync.
Creating a virtualenv for this project…
Pipfile: /tmp/tmpf1dg2eq1/Pipfile
Using /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python (3.6.8) to create virtualenv…
created virtual environment CPython3.6.8.final.0-64 in 536ms
creator CPython3Posix(dest=/tmp/tmpf1dg2eq1/.venv, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/tmp/tmppfdjguqd/seed-app-data/v1.0.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Virtualenv location: /tmp/tmpf1dg2eq1/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
['Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop\n return self.timeout()\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout\n raise TIMEOUT(msg)\n', "pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f314c223a90>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n", '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 501, in create_spinner\n yield sp\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps\n c = resolve(cmd, sp)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 517, in resolve\n result = c.expect(u"\\n", timeout=environments.PIPENV_INSTALL_TIMEOUT)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 215, in expect\n self.subprocess.expect(pattern=pattern, timeout=timeout)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect\n timeout, searchwindowsize, async_)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list\n return exp.expect_loop(timeout)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop\n return self.timeout(e)\n', ' File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout\n raise TIMEOUT(msg)\n', "pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f314c223a90>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n<pexpect.popen_spawn.PopenSpawn object at 0x7f314c223a90>\nsearcher: searcher_re:\n 0: re.compile('\\n')\n"]
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop
return self.timeout()
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f314c223a90>
searcher: searcher_re:
0: re.compile('\n')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/bin/pipenv", line 8, in <module>
sys.exit(cli())
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/cli/command.py", line 514, in update
pypi_mirror=state.pypi_mirror,
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1068, in do_lock
lockfile=lockfile
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps
c = resolve(cmd, sp)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 517, in resolve
result = c.expect(u"\n", timeout=environments.PIPENV_INSTALL_TIMEOUT)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/delegator.py", line 215, in expect
self.subprocess.expect(pattern=pattern, timeout=timeout)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect
timeout, searchwindowsize, async_)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list
return exp.expect_loop(timeout)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop
return self.timeout(e)
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f314c223a90>
searcher: searcher_re:
0: re.compile('\n')
<pexpect.popen_spawn.PopenSpawn object at 0x7f314c223a90>
searcher: searcher_re:
0: re.compile('\n')
Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-redhat-8.2-Ootpa
pipenv version: pipenv, version 2018.11.26
dateparser==0.7.4
- python-dateutil [required: Any, installed: 2.8.1]
- six [required: >=1.5, installed: 1.14.0]
- pytz [required: Any, installed: 2020.1]
- regex [required: !=2019.02.19, installed: 2020.5.14]
- tzlocal [required: Any, installed: 2.1]
- pytz [required: Any, installed: 2020.1]
httmock==1.3.0
- requests [required: >=1.0.0, installed: 2.23.0]
- certifi [required: >=2017.4.17, installed: 2020.4.5.1]
- chardet [required: >=3.0.2,<4, installed: 3.0.4]
- idna [required: >=2.5,<3, installed: 2.9]
- urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.9]
matplotlib==3.2.1
- cycler [required: >=0.10, installed: 0.10.0]
- six [required: Any, installed: 1.14.0]
- kiwisolver [required: >=1.0.1, installed: 1.2.0]
- numpy [required: >=1.11, installed: 1.18.4]
- pyparsing [required: >=2.0.1,!=2.1.6,!=2.1.2,!=2.0.4, installed: 2.4.7]
- python-dateutil [required: >=2.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.14.0]
pandas==1.0.3
- numpy [required: >=1.13.3, installed: 1.18.4]
- python-dateutil [required: >=2.6.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.14.0]
- pytz [required: >=2017.2, installed: 2020.1]
retrying==1.3.3
- six [required: >=1.7.0, installed: 1.14.0]
For more information, see Pipfile and Pipfile.lock.
Once this issue is resolved, the issue will be automatically closed by bot.
Change version number to 0.2.0 instead of 0.0.2. Just like the suggestions in #44.
Describe the bug
As thoth-station is mirgating from zuul. The zuul service on the repository is having issue with regards to running pytest, lets move the repo from zuul and work on running the pytest through aicoe-ci.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
pytest check should be run by aicoe-ci.
Additional context
Related-to: #127
Hey, Kebechet!
Create a new minor release, please.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.