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?
cascadetoml
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
- gingle
- Posts: 49
- Joined: Tue Mar 07, 2017 2:46 pm
Re: cascadetoml
where in circuitpython should the file be located?
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: cascadetoml
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.
Installing the module with PiPy should put it in the correct place.
- gingle
- Posts: 49
- Joined: Tue Mar 07, 2017 2:46 pm
Re: cascadetoml
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?
What is the directory name?
- gingle
- Posts: 49
- Joined: Tue Mar 07, 2017 2:46 pm
Re: cascadetoml
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.
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: 49
- Joined: Tue Mar 07, 2017 2:46 pm
Re: cascadetoml
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.
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: cascadetoml
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.
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.
- gingle
- Posts: 49
- Joined: Tue Mar 07, 2017 2:46 pm
Re: cascadetoml
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 (37.65 KiB) Viewed 3496 times
- gingle
- Posts: 49
- Joined: Tue Mar 07, 2017 2:46 pm
Re: cascadetoml
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.
Please be positive and constructive with your questions and comments.