forked from brendio/convertphrase
-
Notifications
You must be signed in to change notification settings - Fork 349
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
'bytes' is not JSON serializable bug #30
Comments
same issue |
I add this function to the end of the file
and also modified the balance function to support python3
and works |
I got past the 'bytes is not JSON serializable error by installing
This works because the script first tries to load |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using python3 - i know its experimental,
Traceback (most recent call last):
File "/home/a/pywallet/pywallet.py", line 3936, in
wallet = json.dumps(json_db, sort_keys=True, indent=4)
File "/usr/lib/python3.6/json/init.py", line 238, in dumps
**kw).encode(obj)
File "/usr/lib/python3.6/json/encoder.py", line 201, in encode
chunks = list(chunks)
File "/usr/lib/python3.6/json/encoder.py", line 430, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/usr/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict
yield from chunks
File "/usr/lib/python3.6/json/encoder.py", line 325, in _iterencode_list
yield from chunks
File "/usr/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict
yield from chunks
File "/usr/lib/python3.6/json/encoder.py", line 437, in _iterencode
o = _default(o)
File "/usr/lib/python3.6/json/encoder.py", line 180, in default
o.class.name)
TypeError: Object of type 'bytes' is not JSON serializable
Any chance it can be debugged?
Thanks!
The text was updated successfully, but these errors were encountered: