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

AttributeError: 'bytes' object has no attribute 'encode' #19

Open
homocomputeris opened this issue Sep 20, 2018 · 0 comments
Open

AttributeError: 'bytes' object has no attribute 'encode' #19

homocomputeris opened this issue Sep 20, 2018 · 0 comments

Comments

@homocomputeris
Copy link

homocomputeris commented Sep 20, 2018

Update bibs using DOI field?y(yes)/n(do nothing)y
Get DOI absent using the title?y(yes, automatic)/m(manual)/n(do nothing)m

Original title: Optimized high-order splitting methods for some classes of
parabolic equations

Traceback (most recent call last):
  File "/usr/bin/bibcure", line 177, in <module>
    main()
  File "/usr/bin/bibcure", line 137, in main
    bibs = update_bibs_get_doi(bibs)
  File "/usr/lib/python3.7/site-packages/bibcure/title.py", line 26, in update_bibs_get_doi
    bibs[i] = update_bib(bib, get_first)
  File "/usr/lib/python3.7/site-packages/bibcure/title.py", line 10, in update_bib
    found, bib_string = get_bib_from_title(bib["title"], get_first)
  File "/usr/lib/python3.7/site-packages/title2bib/crossref.py", line 72, in get_bib_from_title
    found, item = get_from_title(title, get_first)
  File "/usr/lib/python3.7/site-packages/title2bib/crossref.py", line 65, in get_from_title
    found, item = ask_which_is(title, items)
  File "/usr/lib/python3.7/site-packages/title2bib/crossref.py", line 24, in ask_which_is
    unidecode(item["title"]), unidecode(title)))
  File "/usr/lib/python3.7/site-packages/unidecode/__init__.py", line 48, in unidecode_expect_ascii
    bytestring = string.encode('ASCII')
AttributeError: 'bytes' object has no attribute 'encode'
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

1 participant