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

Some JSON Python Exception #448

Closed
EceChaik opened this issue Sep 29, 2020 · 2 comments
Closed

Some JSON Python Exception #448

EceChaik opened this issue Sep 29, 2020 · 2 comments
Milestone

Comments

@EceChaik
Copy link

Hi guys,

I have built installed the client from source in my Ubuntu 16 and I run it in a virtualenv.
Everything appears to be working and I was able to fly my crazyflie using a PS4 controller, but after looking at the terminal window I noticed this exception had appeared, apparently during starting the client.

Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/home/dc4204/crazyflie-clients-python/src/cfclient/ui/dialogs/bootloader.py", line 397, in _get_firmware_releases
response = json.load(resp)
File "/usr/lib/python3.5/json/init.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'

It appears to be originating from the bootloader script, any ideas how I can fix it, or if I should not pay attention to it?

@krichardsson
Copy link
Contributor

Hi!

This seems to be related to your python version. I can verify that I get the same problem in python 3.5.7 but it works in 3.7.3.

The API changed in 3.6 https://docs.python.org/3/whatsnew/3.6.html#json
Maybe we should do something to support 3.5?

Upgrading python would be a workaround, if possible.

@jonasdn
Copy link
Contributor

jonasdn commented Mar 8, 2021

Hi, thank you for reporting this!

As of pip version 21 out 2021-01-23 support for Python 3.5 was dropped. Taking that in to account I, unfortunately , do not think it is feasible for us to support or fix problems that only appear < Python 3.6.

@jonasdn jonasdn closed this as completed Mar 8, 2021
@jonasdn jonasdn added this to the next-release milestone Mar 17, 2021
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

3 participants