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

For general Flowcode discussion that does not belong in the other sections.
Post Reply
BenR
Matrix Staff
Posts: 1739
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

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

Post 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

nmjb18
Posts: 15
Joined: Mon Apr 19, 2021 4:47 pm
Has thanked: 9 times
Been thanked: 1 time

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

Post by nmjb18 »

Hi,

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

Thanks!

RGV250
Posts: 264
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 23 times
Been thanked: 30 times

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

Post 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

pmgreene01
Posts: 35
Joined: Sat Jul 08, 2023 7:39 pm
Has thanked: 3 times
Been thanked: 4 times

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

Post by pmgreene01 »

I just had this issue and doing the library updates resolved it for me. Thanks.

george_b
Posts: 18
Joined: Fri Jul 01, 2022 5:00 pm
Has thanked: 9 times
Been thanked: 2 times

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

Post 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

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

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

Post 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.,
Martin

Post Reply