shariltumin / esp32-cam-micropython-2022

MicroPython esp32-cam firmware with camera support compiled with esp-idf-4.4.0. Python script files for live streaming
MIT License
174 stars 33 forks source link

PROBLEM IN THONNY'S BACK-END: Exception while handling 'get_dirs_children_info' (thonny.plugins.micropython.mp_back.ManagementError: Script produced errors). See Thonny's backend.log for more info. You may need to press "Stop/Restart" or hard-reset your MicroPython device and try again. #19

Open shaguahehehe opened 1 year ago

shaguahehehe commented 1 year ago

Mount the SD card, the point folder can't go in

PROBLEM IN THONNY'S BACK-END: Exception while handling 'get_dirs_children_info' (thonny.plugins.micropython.mp_back.ManagementError: Script produced errors). See Thonny's backend.log for more info. You may need to press "Stop/Restart" or hard-reset your MicroPython device and try again.

shariltumin commented 1 year ago

I'm not sure what you're trying to accomplish here. I'm assuming you were attempting to mount an SD card in your script and encountered an error. Could you try mounting the SD card in the 'Thonny' shell window? Here's what I got:

Could not query builtin modules. Code completion may not work properly.
WARNING: Could not determine epoch year (can't import name localtime), assuming 2000
MicroPython v1.20.0-39-g61b8e1b2d-kaki5 on 2023-05-23; ESP32 CAMERA w/SSL (KAKI5) with ESP32
>>> import machine
>>> sdcard = machine.SDCard()
>>> uos.mount(sdcard, '/sd')
>>> uos.listdir('/sd')
[]
>>> 

Please ensure that you have a formatted SD card with a minimum capacity of 4GB and a maximum capacity of 32GB in the slot.