esp-quick-toolchain icon indicating copy to clipboard operation
esp-quick-toolchain copied to clipboard

msvcrt issue and ssl missing from python bundle on macOS

Open aimass opened this issue 3 years ago • 0 comments

Hi,

Arduino IDE 1.8.19 on macOS BigSur 11.6 Installed from source per: https://arduino-esp8266.readthedocs.io/en/latest/installing.html#instructions-other-os

When compiling a simple program I get this:

Traceback (most recent call last): File "/Users/alejandroimass/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/lib/python3.8/subprocess.py", line 64, in <module> import msvcrt ModuleNotFoundError: No module named 'msvcrt'

I peeked ta the code and it seems to test load msvcrt to determine if this is a Win system but then it blows up when trying to load _posixsubprocess with:

ModuleNotFoundError: No module named '_posixsubprocess'

Also, if I try to install anything with the bundled Python:

cd Arduino/hardware/esp8266com/esp8266/tools python3/python3 -m pip install whatever WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. etc..

Thanks,

-- Alex

aimass avatar Feb 22 '22 20:02 aimass