toml files from current version will not parse and compile. I am specifically looking for the Waveshare 4.3B, but have tried building several with the same result. Example exception below.
python3-toml is installed. I am able to parse the files using tomllib in python 3.12 successfully.
`colin@iicontrols:~/lvgl_micropython$ sudo python3 make.py --toml ./display_configs/CYD-8048S070C.toml
Traceback (most recent call last):
File "/home/colin/lvgl_micropython/builder/toml_reader.py", line 493, in run
t_data = str(toml_obj)
^^^^^^^^^^^^^
File "/home/colin/lvgl_micropython/builder/toml_reader.py", line 187, in str
output.append(str(child))
^^^^^^^^^^
File "/home/colin/lvgl_micropython/builder/toml_reader.py", line 202, in str
output = [str(child) for child in self.__children]
^^^^^^^^^^
File "/home/colin/lvgl_micropython/builder/toml_reader.py", line 202, in str
output = [str(child) for child in self.__children]
^^^^^^^^^^
File "/home/colin/lvgl_micropython/builder/toml_reader.py", line 277, in str
raise RuntimeError
RuntimeError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/colin/lvgl_micropython/make.py", line 62, in
build_command = toml_reader.run(toml_path, driver_out_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/colin/lvgl_micropython/builder/toml_reader.py", line 525, in run
raise SyntaxError(f'Unable to parse .toml file ({toml_path})') from err
SyntaxError: Unable to parse .toml file (./display_configs/CYD-8048S070C.toml)
`
toml files from current version will not parse and compile. I am specifically looking for the Waveshare 4.3B, but have tried building several with the same result. Example exception below.
python3-toml is installed. I am able to parse the files using tomllib in python 3.12 successfully.
`colin@iicontrols:~/lvgl_micropython$ sudo python3 make.py --toml ./display_configs/CYD-8048S070C.toml
Traceback (most recent call last):
File "/home/colin/lvgl_micropython/builder/toml_reader.py", line 493, in run
t_data = str(toml_obj)
^^^^^^^^^^^^^
File "/home/colin/lvgl_micropython/builder/toml_reader.py", line 187, in str
output.append(str(child))
^^^^^^^^^^
File "/home/colin/lvgl_micropython/builder/toml_reader.py", line 202, in str
output = [str(child) for child in self.__children]
^^^^^^^^^^
File "/home/colin/lvgl_micropython/builder/toml_reader.py", line 202, in str
output = [str(child) for child in self.__children]
^^^^^^^^^^
File "/home/colin/lvgl_micropython/builder/toml_reader.py", line 277, in str
raise RuntimeError
RuntimeError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/colin/lvgl_micropython/make.py", line 62, in
build_command = toml_reader.run(toml_path, driver_out_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/colin/lvgl_micropython/builder/toml_reader.py", line 525, in run
raise SyntaxError(f'Unable to parse .toml file ({toml_path})') from err
SyntaxError: Unable to parse .toml file (./display_configs/CYD-8048S070C.toml)
`