littlefs_create_partition_image fail: littlefs-python: error: unrecognized arguments: --image...
Posted: Fri Jul 12, 2024 2:03 pm
Hello,
I have been using littlefs for the last year in my project with no issue whatsoever.
My CMake simply calls the following to create my file system binary and load it into the ESP32:
However, when I tried to compile this morning (7/12/24), it returned the following error during compilation:
After investigating further, I found out that the littlefs-python had been updated to version 0.12.0 a few days ago:
https://pypi.org/project/littlefs-pytho ... escription
In the latest description of the package, they talk about the command line interface and the "--image" option is indeed not present.
I assume that the package has updated its interface and the esp littleFS component or the esp-idf itself needs to be updated.
While waiting for a fix to happen, is there anything I can do to fix the issue and be able to keep on working ?
For example, how could I force the esp-idf virtual environment to use an older version of littlefs-python ?
I have been using littlefs for the last year in my project with no issue whatsoever.
My CMake simply calls the following to create my file system binary and load it into the ESP32:
Code: Select all
littlefs_create_partition_image(website build/website_file_system FLASH_IN_PROJECT)
Code: Select all
FAILED: CMakeFiles/littlefs_website_bin C:/LocalCode/SW0412_ESP32/build/CMakeFiles/littlefs_website_bin
cmd.exe /C "cd /D C:\LocalCode\SW0412_ESP32\build && C:\LocalCode\SW0412_ESP32\build\littlefs_py_venv\Scripts\littlefs-python.exe create C:/LocalCode/SW0412_ESP32/build/website_file_system -v --image=C:/LocalCode/SW0412_ESP32/build/website.bin --fs-size=0xc00000 --name-max=64 --block-size=4096"
usage: littlefs-python [-h] [--version] {create,extract,list} ...
littlefs-python: error: unrecognized arguments: --image=C:/LocalCode/SW0412_ESP32/build/website.bin
https://pypi.org/project/littlefs-pytho ... escription
In the latest description of the package, they talk about the command line interface and the "--image" option is indeed not present.
I assume that the package has updated its interface and the esp littleFS component or the esp-idf itself needs to be updated.
While waiting for a fix to happen, is there anything I can do to fix the issue and be able to keep on working ?
For example, how could I force the esp-idf virtual environment to use an older version of littlefs-python ?