Skip to content

installation problem "AttributeError: function 'CancelIoEx' not found" #1161

@djwfly

Description

@djwfly

Hardware:

Board: ?ESP32 Dev Module?
Core Installation/update date: ?11/jul/2017?
IDE name: ?Arduino IDE? ?Platform.io? ?IDF component?
Flash Frequency: ?40Mhz?
Upload Speed: ?115200?

Description:

For a few days I have been installing the arduino-esp32 development enviroment again and again. But failed all the time. The esp32 module could been found in the arduino. But when compile and upload , it failed... The error message is as below:

Archiving built core (caching) in: C:\DOCUME1\dell\LOCALS1\Temp\arduino_cache_197603\core\core_espressif_esp32_esp32_FlashMode_qio,FlashFreq_80,FlashSize_4M,UploadSpeed_921600,DebugLevel_none_2b738b201fc88a468b2acb947ad43f23.a
Traceback (most recent call last):

File "esptool.py", line 25, in

File "c:\python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module

# executes the module code. This is crucial because the module

File "site-packages\serial_init_.py", line 27, in

File "c:\python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module

# executes the module code. This is crucial because the module

File "site-packages\serial\serialwin32.py", line 15, in

File "c:\python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module

# executes the module code. This is crucial because the module

File "site-packages\serial\win32.py", line 182, in

File "ctypes_init_.py", line 375, in getattr

File "ctypes_init_.py", line 380, in getitem

AttributeError: function 'CancelIoEx' not found

Failed to execute script esptool

exit status -1

My PC is windows xp sp3, python use python 2.7. I have tried the following methods:
----try python2.7.10 and then 2.7.12
-----change pyserial from 2.7 to pyserial3.0.1;
-----change arduino from version 1.8.2 to 1.8.5;
-----change the directory from" C:\Documents and Settings\dell\My Documents\Arduino\hardware \espressif\esp32" to "C:\Program Files\Arduino\hardware\espressif\esp32"

All the time it failed. This trouble me for a few days. Anyone know how to resolve this problem, thanks very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions