ping command fails: TypeError: float() argument must be a string or a number
See original GitHub issueObserved behavior
I think this fails silently in its own thread. Happened on Python 2.7, not sure why, but traceback is easy to fix.
Expected behavior
n/a
User-facing consequences
None, but ping doesn’t happen
Errors and logs
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/media/archive/code/kolibri/kolibri/utils/server.py", line 98, in run
call_command("ping")
File ".virtualenvs/kolibri/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 131, in call_command
return command.execute(*args, **defaults)
File ".virtualenvs/kolibri/local/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/media/archive/code/kolibri/kolibri/core/analytics/management/commands/ping.py", line 34, in handle
interval = float(options.get("interval", DEFAULT_PING_INTERVAL))
TypeError: float() argument must be a string or a number
Steps to reproduce
Sorry can’t say for sure, was just reading a log.
Context
Tell us about your environment, including:
- Kolibri version: Either 0.7 or
develop
😃 - Operating system: The best linux distro version 16.04
- Browser: n/a
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Pandas : TypeError: float() argument must be a string or a ...
1. It seems you forget inplace=True in data["country"]. · So use data["country"]. · Another possible solution is data[["country", "ads_channel", " ...
Read more >float() argument must be a string or a real number, not list
The Python "TypeError: float() argument must be a string or a real number, not 'list'" occurs when we pass a list to the...
Read more >TypeError: float() argument must be a string or a number, not ...
Hi can anyone help me how to solve this problem please :slight_smile: model = ViolenceModel(modelUsed,pretrained) svclassifier ...
Read more >"TypeError: float() argument must be a string or a number, not ...
Hi there, I've successfully downloaded and installed HotspotAnalysis plugin on my QGIS 3.2.3, but as soon as I launch the plugin I get...
Read more >TypeError: float() argument must be a string or a number - Odoo
I want to add a computation in purchase.order.line using the existing onchange_product_id but I'm getting with an error of this: TypeError: float() argument...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be fixed in https://github.com/learningequality/kolibri/pull/3045 – note that it’ll need to be merged to
release-v0.7.x
and then from there merged up intodevelop
(where the fix is needed).Fixed in #3045, but let’s wait to close until https://github.com/learningequality/kolibri/pull/3055 is resolved and merged.