Pd2dsy -No module named jinja2

I get this error message after running the build command. I can run make but that throws a 'heavy" fatal error. I’m guessing this has something to do with the hvcc install on Catalina and M1? Cheers J

  File "hvcc/hvcc.py", line 26, in <module>
import generators.ir2c.ir2c as ir2c

File “/Users/johanenglund/Documents/GitHubp/pd2dsy/hvcc/generators/ir2c/ir2c.py”, line 19, in
import jinja2
ImportError: No module named jinja2

One of two things comes to mind.

It could be the version of python you’re using. HVCC is pretty old, and requires python2. While it is no longer being actively developed, I can’t imagine its unavailable on the M1 mac, though you may have to invoke it with python2, or install it differently.

Alternatively, you may just be missing some packages. You can use pip and the requirements.txt file in the hvcc folder to install them.

python -m pip install -r requirements.txt

or just

pip install -r requirements.txt

from the pd2dsy/hvcc folder.

Hope that helps!

Thanks buddy, that’s really useful.
I’ve got Python 2.7 installed but the pip install was troublesome. I think I need to do all of this on an older machine as I can’t get Oopsy to connect from this one either. It’s a shame cos I was hoping to use commute time to build stuff but oh well…