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)
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:
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)