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: a bytes-like object is required, not 'str' #20

Open
justin604 opened this issue Aug 18, 2020 · 1 comment
Open

TypeError: a bytes-like object is required, not 'str' #20

justin604 opened this issue Aug 18, 2020 · 1 comment

Comments

@justin604
Copy link

Traceback (most recent call last):
  File "kindle.py", line 94, in <module>
    main()
  File "kindle.py", line 89, in main
    save_clips(clips)
  File "kindle.py", line 70, in save_clips
    json.dump(clips, f)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 180, in dump
    fp.write(chunk)
TypeError: a bytes-like object is required, not 'str'
@Chanuttha
Copy link

MilkShakeYoung updated it for Python3
#14 (comment)

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