Can't compile any esp32 board (Resolved)

Hello friends, I have a problem that is very rare and maybe it has happened to someone. I've looked through the forums but I don't see anything that provides a solution

I describe:
IDE environment: Latest version of Arduino IDE 1.8.5
ESP32 version: Latest version 2.0.3
Selected board: Esp32 dev module (it does not matter which one you select, the error is given)
Operating System: WIN7 64Bit, Freshly installed. cleansed.
Program to compile: Empty, Setup and Loop blocks only

Compilation error:
Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_multiprocessing.py", line 12, in <module>
  File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
  File "multiprocessing\__init__.py", line 16, in <module>
  File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
  File "multiprocessing\context.py", line 6, in <module>
  File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
  File "multiprocessing\reduction.py", line 16, in <module>
  File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
  File "socket.py", line 49, in <module>
ImportError: DLL load failed while importing _socket: The parameter is not correct.
[1532] Failed to execute script 'pyi_rth_multiprocessing' due to unhandled exception! exit status 1
Error compiling for ESP32 Dev Module card.

That is.
If anyone has an idea..

Thanks for the help.
Fran

The real latest version of Arduino-IDE is 1.8.19

This means you try to run python 3.8.10 on Operating system Windows 7
I'm not familiar with which version of python or Arduino-IDE runs on Windows 7.
Have you ever considered updating to Windows 10?

Thanks for your time:

sorry last: 1.8.19
Well no, I had this clean pc with win7 64 and I thought it could work. I think that on the web it says that you can use win7 64 bit

i will try to upgrade to win10

As I have written above.
I'm not familiar with which version of python / Arduino-IDE will run on which OS

So the reason might be something different than outdated OS
google is always worth a quick search (= qoogling)
https://www.google.de/search?as_q=Failed+to+execute+script+'pyi_rth_multiprocessing'

Thanks for the hint.
with an update it works
https://www.catalog.update.microsoft.com/Search.aspx?q=KB3126587%20windows%207

Thanks StefanL38

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.