sobjornstad / AnkiLPCG

Addon for dae/anki for studying lyrics and poetry

Home Page:https://ankilpcg.readthedocs.io/en/latest/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: coercing to Unicode: need string or buffer, NoneType found

henningsway opened this issue · comments

Hey Soren,

I just started to use Anki and stumbled upon your script. I did install the note type and have been trying to run the script on a poem and a testfile. The result has been the same:

Title: testtext
Tags (optional): testtext
Traceback (most recent call last):
  File "./lpcg.py", line 173, in <module>
    main()
  File "./lpcg.py", line 122, in main
    lyrics_file = open(input_file)
TypeError: coercing to Unicode: need string or buffer, NoneType found

What's the problem here? I tried to make sure, my files are encoded in UTF-8. Any ideas? (I'm on a Mac and use Python 2.7.5)

Sorry for the delay; I fixed this a little while ago in b9b1543.