0

cascadetoml
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

cascadetoml

by gingle on Thu Aug 26, 2021 7:06 pm

I am attempting to compile boards in Ubuntu and I am getting the error:

GEN build-metro_m4_express/genhdr/devices.h
Traceback (most recent call last):
File "../../tools/gen_nvm_devices.py", line 2, in <module>
import cascadetoml
ModuleNotFoundError: No module named 'cascadetoml'

Would you know where the module cascadetoml might be located?

gingle
 
Posts: 45
Joined: Tue Mar 07, 2017 2:46 pm

Re: cascadetoml

by adafruit_support_mike on Fri Aug 27, 2021 2:57 am

It looks like you can get it with PyPi:

https://pypi.org/project/cascadetoml/

adafruit_support_mike
 
Posts: 63716
Joined: Thu Feb 11, 2010 2:51 pm

Re: cascadetoml

by gingle on Mon Aug 30, 2021 3:06 pm

where in circuitpython should the file be located?

gingle
 
Posts: 45
Joined: Tue Mar 07, 2017 2:46 pm

Re: cascadetoml

by adafruit_support_mike on Mon Aug 30, 2021 9:39 pm

It goes into the same directory as the other system-wide loadable modules.

Installing the module with PiPy should put it in the correct place.

adafruit_support_mike
 
Posts: 63716
Joined: Thu Feb 11, 2010 2:51 pm

Re: cascadetoml

by gingle on Tue Aug 31, 2021 11:27 am

Thanks for the reply Mike. Could you be more specific when you say "same directory as the other system-wide loadable modules".
What is the directory name?

gingle
 
Posts: 45
Joined: Tue Mar 07, 2017 2:46 pm

Re: cascadetoml

by gingle on Tue Aug 31, 2021 11:46 am

Mike, I don't know what is going on. After installing cascadetoml I am not finding jinja2...

CC ../../devices/ble_hci/supervisor/bluetooth.c
GEN build-metro_m4_express/genhdr/devices.h
Traceback (most recent call last):
File "../../tools/gen_nvm_devices.py", line 5, in <module>
from jinja2 import Template
ModuleNotFoundError: No module named 'jinja2'

I am using VM VirtualBox and have tried the latest circuitpython 7.x download and going to 6.3.x. Both downloads are missing components in gen_nvm_devices.py. I am following the directions in Building CircuitPython by Dan Halbert starting at page 10. The downloads seem incomplete.

gingle
 
Posts: 45
Joined: Tue Mar 07, 2017 2:46 pm

Re: cascadetoml

by gingle on Tue Aug 31, 2021 12:08 pm

Mike I was able to compile successfully after installing the missing cascadetoml and jinja files. Thanks, I am interested in knowing why the files were not included with the circuitpython download.

gingle
 
Posts: 45
Joined: Tue Mar 07, 2017 2:46 pm

Re: cascadetoml

by adafruit_support_mike on Tue Aug 31, 2021 5:11 pm

Glad to hear you got it working.

What code are you running that requires the cascadetoml module? We don’t write or support that one, and I don’t know any CircuitPython code of ours that uses it.

adafruit_support_mike
 
Posts: 63716
Joined: Thu Feb 11, 2010 2:51 pm

Re: cascadetoml

by gingle on Tue Aug 31, 2021 5:27 pm

I am following the instructions on page 10 of Building CircuitPython by Dan Halbert as updatated 2021-06-10. I tried it with just the procedure attached and then with 6.3.x with the same problem.
Attachments
make.jpg
make.jpg (37.65 KiB) Viewed 2585 times

gingle
 
Posts: 45
Joined: Tue Mar 07, 2017 2:46 pm

Re: cascadetoml

by gingle on Tue Aug 31, 2021 5:43 pm

I just deleted CircuitPython re-downloaded it and it compiled OK according to page 10. I have no idea what was going on, it must be software. Thanks for showing how to get missing files. That is a big help if I ever run into this again.

gingle
 
Posts: 45
Joined: Tue Mar 07, 2017 2:46 pm

Please be positive and constructive with your questions and comments.