Skip to content

Python 3 #1

Description

@SdotVdot

It is not working with Python 3.8.5.
When I type:
python gen_citekeys.py --author=Rignot --year=2008 --doi="10.1038/ngeo102"
I get
Traceback (most recent call last):
File "gen_citekeys.py", line 141, in
main()
File "gen_citekeys.py", line 136, in main
citekey = gen_citekey(A,Y,D,T)
File "gen_citekeys.py", line 61, in gen_citekey
author = author.decode('unicode-escape')
AttributeError: 'str' object has no attribute 'decode'

EDIT: If I change from
author.decode('unicode-escape')
to
author.encode().decode('unicode-escape')
it works...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions