sobjornstad / AnkiLPCG

Addon for dae/anki for studying lyrics and poetry
https://ankilpcg.readthedocs.io/en/latest/index.html
GNU General Public License v3.0
155 stars 22 forks source link

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

Closed henningsway closed 10 years ago

henningsway commented 10 years ago

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)

sobjornstad commented 10 years ago

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