question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ping command fails: TypeError: float() argument must be a string or a number

See original GitHub issue

Observed 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:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jamalexcommented, Jan 9, 2018

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 into develop (where the fix is needed).

0reactions
jamalexcommented, Jan 9, 2018

Fixed in #3045, but let’s wait to close until https://github.com/learningequality/kolibri/pull/3055 is resolved and merged.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found