Page 1 of 1

ESP32 - python.exe doesn't support asyncio --no-hints

Posted: Wed May 10, 2023 10:54 am
by BenR
Hello,

For anyone experiencing this.
python.exe doesn't support asyncio. The issue can be worked around by re-running idf.py with the "--no-hints" argument.
This seems to be cropping up a lot at the moment. Until we work out a catch all fix anyone with this problem will need to do the following.

First make sure you are fully up to date with libray updates by clicking Help -> Library Updates, changing Files in use to Full Database and getting the latest files. Next check if you can compile, it could be we have already solved this issue with an update.

If you're still getting the error then continue.

Navigate to this directory by copying and pasting the path into your file explorer address bar.

V9

Code: Select all

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch
V10

Code: Select all

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ESP\Batch
Open the file esp32_build.bat in a text editor by right clicking the file and selecting edit.

Find these lines.

Code: Select all

@idf.py build
REM @idf.py --no-hints build
Move the REM up a line so you get this instead, the REM is basically commenting out the rest of the code on the line.

Code: Select all

REM @idf.py build
@idf.py --no-hints build
Save and close the file.

Now repeat with the file esp32_prog.bat

These lines

Code: Select all

@idf.py -p %PORT% -b %BAUD% flash
REM @idf.py --no-hints -p %PORT% -b %BAUD% flash
Change to look like this.

Code: Select all

REM @idf.py -p %PORT% -b %BAUD% flash
@idf.py --no-hints -p %PORT% -b %BAUD% flash
Save and close the file.

Hopefully Flowcode can now compile correctly.

Be careful when doing library updates as this will try and overwrite the batch files back to factory defaults. If you do overwrite the files you may have to re-apply the fix.

Not sure what has changed but i'll keep investigating how we fix this for everyone without breaking existing working setups.

Some advice on creating a working ESP32 toolchain is offered here.
viewtopic.php?p=11300#p11300

Re: ESP32 - python.exe doesn't support asyncio --no-hints

Posted: Sun May 14, 2023 3:04 pm
by nmjb18
Hi,

This fixed my issue, thank you. I will watch out for the permanent fix.

Thanks!

Re: ESP32 - python.exe doesn't support asyncio --no-hints

Posted: Fri May 19, 2023 5:57 pm
by RGV250
Hi,
That fixed it for me as well. It is just as well it is quite a capable and cheap device to make it worth the initial pain setting it up.

Bob

Re: ESP32 - python.exe doesn't support asyncio --no-hints

Posted: Sat Nov 25, 2023 3:14 pm
by pmgreene01
I just had this issue and doing the library updates resolved it for me. Thanks.

Re: ESP32 - python.exe doesn't support asyncio --no-hints

Posted: Wed Nov 29, 2023 9:04 pm
by george_b
Hi all,

Having the same issues after installing the ESP Tool chain! I expect this kind of fixes to be done on the feature updates of FC10 without the need of release FC11 !

Thanks for the information of this topic i fixed the compilation error and now the ESP package is working.


Regards
George

Re: ESP32 - python.exe doesn't support asyncio --no-hints

Posted: Wed Nov 29, 2023 10:22 pm
by medelec35
Hi George.
The only fix required is a Full database library update, as the editing of the file is no longer required for FC10.
No need to wait for Flowcode v11 for a fix.,