kerrickstaley / genanki

A Python 3 library for generating Anki decks
MIT License
1.99k stars 150 forks source link

AttributeError: module 'pystache' has no attribute 'render' #91

Closed HappyHippo77 closed 2 years ago

HappyHippo77 commented 2 years ago

I'm not really sure what causes this. All I know is it happens when I try to do package.write_to_file('output.apkg').

HappyHippo77 commented 2 years ago

Updating to Python 3.10 fixed this.

brickfrog commented 2 years ago

I believe this is actually just a pystache issue. I had the same issue with 0.5.0, for some reason was installing with another package. Couldn't update to python 3.10 due to other dependencies, and tried forcing an install of pystache fresh from conda.

So for anyone else that wanders into this issue, try upgrading pystache first if it's not 0.5.4. Installing Py 3.10 might've inadvertantly forced the upgrade.