Question/Issue: I am working on a machine learning project using Arduino. The zip file download for esp32 won’t run because of a cfloat error. I have gone through the entire zip file and found no clfoat file that links to the numpy location. How do I fix this error?
I have the same issue, this is the error copy pasted:
In file included from C:\Users\berniabadr\Documents\Arduino\libraries\stemmervanpulhof-project-1_inferencing\src/edge-impulse-sdk/classifier/ei_model_types.h:24:0,
from C:\Users\berniabadr\Documents\Arduino\libraries\stemmervanpulhof-project-1_inferencing\src/edge-impulse-sdk/classifier/ei_run_dsp.h:21,
from C:\Users\berniabadr\Documents\Arduino\libraries\stemmervanpulhof-project-1_inferencing\src/edge-impulse-sdk/classifier/ei_run_classifier.h:23,
from C:\Users\berniabadr\Documents\Arduino\libraries\stemmervanpulhof-project-1_inferencing\src/stemmervanpulhof-project-1_inferencing.h:49,
from C:\Users\berniabadr\AppData\Local\Temp.arduinoIDE-unsaved2024031-30596-1cofyw8.q9r6\static_buffer\static_buffer.ino:18:
C:\Users\berniabadr\Documents\Arduino\libraries\stemmervanpulhof-project-1_inferencing\src/edge-impulse-sdk/dsp/numpy.hpp:32:10: fatal error: cfloat: No such file or directory #include
^~~~~~~~
compilation terminated.
exit status 1
No worries, thanks for helping me out! I have not yet figured it out.
The project ID number is: 284341. I’ve also got the link in case you’d need it: stemmervanpulhof-project-1 - Dashboard - Edge Impulse.
For the board package, I haven’t downloaded any library since I deleted the Arduino IDE application and reinstalled it to see if it would work. I did have a library installed before but I do not know precisely which one.
Sorry for the late response, I hadn’t touched my project since friday and I didn’t see your message. Apart from that, it worked! I really appreciate the help. I do have another issue though, it keeps giving me an error exit status 2. Does it have to do with the cable I use to connect the esp32 to the PC? Because I’ve tried multiple cables and nothing works. This is the error:
Sketch uses 447345 bytes (34%) of program storage space. Maximum is 1310720 bytes.
Global variables use 26460 bytes (8%) of dynamic memory, leaving 301220 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM6
Connecting…
The error could be related to a number of issues: bad cable, bad driver, board not in bootloader. Please check out these threads to see if any of the advice in there helps:
Same issue when porting to new c++ based project. When calling “#include “edge-impulse-sdk/classifier/ei_run_classifier.h””, it gives me an error, fatal error: ‘cfloat’ file not found