cascadetoml

Microsoft's MakeCode platform for easy blocks-style programming

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
gingle
 
Posts: 49
Joined: Tue Mar 07, 2017 2:46 pm

cascadetoml

Post by gingle »

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?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: cascadetoml

Post by adafruit_support_mike »

It looks like you can get it with PyPi:

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

User avatar
gingle
 
Posts: 49
Joined: Tue Mar 07, 2017 2:46 pm

Re: cascadetoml

Post by gingle »

where in circuitpython should the file be located?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: cascadetoml

Post by adafruit_support_mike »

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.

User avatar
gingle
 
Posts: 49
Joined: Tue Mar 07, 2017 2:46 pm

Re: cascadetoml

Post by gingle »

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?

User avatar
gingle
 
Posts: 49
Joined: Tue Mar 07, 2017 2:46 pm

Re: cascadetoml

Post by gingle »

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.

User avatar
gingle
 
Posts: 49
Joined: Tue Mar 07, 2017 2:46 pm

Re: cascadetoml

Post by gingle »

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.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: cascadetoml

Post by adafruit_support_mike »

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.

User avatar
gingle
 
Posts: 49
Joined: Tue Mar 07, 2017 2:46 pm

Re: cascadetoml

Post by gingle »

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 3490 times

User avatar
gingle
 
Posts: 49
Joined: Tue Mar 07, 2017 2:46 pm

Re: cascadetoml

Post by gingle »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “MakeCode”