-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Description
Hey Kevin,
I'm not sure what's going on but I'm having trouble using the TOML function. I'm getting the below error and I've tried starting with a fresh VM and still hit the same issue. I know it's not your script as you and others are able to run it fine:
mike@DESKTOP-K5B8ST9:~/lvgl_micropython$ python3 make.py --toml=/home/mike/toml/t-display_amoled.toml
Traceback (most recent call last):
File "/home/mike/lvgl_micropython/builder/toml_reader.py", line 326, in run
toml_data = toml.load(f)
^^^^^^^^^^^^
File "/usr/lib/python3.12/tomllib/_parser.py", line 63, in load
raise TypeError(
TypeError: File must be opened in binary mode, e.g. use `open('foo.toml', 'rb')`
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/mike/lvgl_micropython/make.py", line 62, in <module>
build_command = toml_reader.run(toml_path, driver_out_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mike/lvgl_micropython/builder/toml_reader.py", line 362, in run
raise SyntaxError(f'Unable to parse .toml file ({toml_path})') from err
SyntaxError: Unable to parse .toml file (/home/mike/toml/t-display_amoled.toml)
This is on Ubuntu 24.04 on WSL, any ideas what I'm doing wrong?
Metadata
Metadata
Assignees
Labels
No labels