Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unsupported operand type(s) for +: 'float' and 'str' #28

Open
istar2metal opened this issue Feb 3, 2021 · 0 comments
Open
Assignees

Comments

@istar2metal
Copy link

Using:
docker-compose build project
grafana 7.1.0
corpglory-hastic-app-0.5.1
hastic/server:latest
hastic/analytics:latest

i got error in analytics log:

2021-02-03 08:34:23,794 [Analytics] [ERROR]  handle_analytic_task Exception: 'Traceback (most recent call last):
  File "bin/../analytics/analytic_unit_manager.py", line 89, in handle_analytic_task
    result_payload = await self.__handle_analytic_task(task)
  File "bin/../analytics/analytic_unit_manager.py", line 72, in __handle_analytic_task
    return await worker.do_train(segments, data, payload['cache'])
  File "bin/../analytics/analytic_unit_worker.py", line 42, in do_train
    new_cache: ModelCache = await asyncio.wait_for(self._training_future, timeout = config.LEARNING_TIMEOUT)
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 342, in wait_for
    timeout_handle = loop.call_later(timeout, _release_waiter, waiter)
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 544, in call_later
    timer = self.call_at(self.time() + delay, callback, *args)
TypeError: unsupported operand type(s) for +: 'float' and 'str'

I've tried using different "Detector type" and "Type" while creating "Analytics Unit" in grafana.
Also tried different datasource for metrics: Elasticsearch and prometheus.
Full analytics debug log is attached.
hastic.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants