ESP32 dev board compile error

I have just hooked up an ESP32 dev board for the first time. This One

I have installed the drivers and added the ESP32 boards via the boards manager. The serial port shows up and I am using “ESP 32 Dev Module”.

I am running the most basic blink program to test. The problem is with compiling, it doesn’t finish compiling let alone upload. The error message seems to be something to do with Python.

Here is my error message:

Arduino: 1.8.6 (Windows XP), Board: "ESP32 Dev Module, Disabled, Default, 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

Traceback (most recent call last):

  File "", line 35, in <module>

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

  File "site-packages\serial\", line 27, in <module>

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

  File "site-packages\serial\", line 15, in <module>

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

  File "site-packages\serial\", line 182, in <module>

  File "ctypes\", line 375, in __getattr__

  File "ctypes\", line 380, in __getitem__

AttributeError: function 'CancelIoEx' not found

Failed to execute script esptool

exit status -1
Error compiling for board ESP32 Dev Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I noticed it was referring to python27 on C:, I didn’t have that, so installed python2.7, which made no difference (I already had python 3.4 on C:).

Windows XP machine by the way…

Windows XP machine by the way...

May be significant