davidswelt / zot_bib_web

Create interactive web bibliographies based on Zotero collections
163 stars 19 forks source link

ImportError: No module named pyzotero #17

Open pskyhx opened 3 years ago

pskyhx commented 3 years ago

on Mac OS after cloning the repo, chmodding as per setup docs, installing pyzotero (with both pip and pip3 because I've found that avoids problems sometimes).

./zot.py --help
Traceback (most recent call last):
  File "./zot.py", line 266, in <module>
    from pyzotero import zotero, zotero_errors
ImportError: No module named pyzotero

because it's mac OS, what's going on is:

python --version
Python 2.7.16

I tried making a venv to run in because all instructions found mentioned this. but this stuff isn't really my strong suit so eventually gave up on that. That would be my fault for not knowing what I'm doing; maybe it would be a viable path for someone else.

solution

run like this instead:

python3 zot.py --help

This error also appeared in https://github.com/davidswelt/zot_bib_web/issues/13#issuecomment-558831126 but was apparently resolved back then. I have no insight as what the problem is or how to fix permanently aside from what's presented above.

When I ran the demo command as per instructions, the file zotero-bib.html was generated successfully.

thank you for the tool!