Hi everyone,
I am trying to install the ESP32 Board in Arduino IDE under MacOS. Unfortunately, I have an error at the end of the installation, a priori when installing the “get.py” script.
Could you help me ?
Here are the error messages :
Downloading mkspiffs-0.2.2-arduino-esp32-osx.tar.gz
Traceback (most recent call last):
File “get.py”, line 148, in
get_tool(tool)
File “get.py”, line 103, in get_tool
urlretrieve(url, local_path, report_progress)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py”, line 98, in urlretrieve
return opener.retrieve(url, filename, reporthook, data)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py”, line 245, in retrieve
fp = self.open(url, data)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py”, line 213, in open
return getattr(self, name)(url)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py”, line 443, in open_https
h.endheaders(data)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py”, line 997, in endheaders
self._send_output(message_body)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py”, line 850, in _send_output
self.send(msg)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py”, line 812, in send
self.connect()
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py”, line 1212, in connect
server_hostname=server_hostname)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py”, line 350, in wrap_socket
_context=self)
Thanks so much
Best regards
Hi Jean,
I’ve used Python 2.7 on my Mac OS to install the ESP32 on Arduino IDE and it should work just fine. I’ve searched your problem and it seems that some people experienced that problem too.
Can you upgrade your Python installation from 2.7.X to 3.X?
Run this command to install Homebrew:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Run these commands to install openssl and Python 3:
$ brew update
$ brew install openssl
$ brew install python3
Test which Python version do you have with:
$ python --version
Python 3.6.4
If it upgraded to 3.6.X. Then, follow the same procedure on Installing the ESP32 Board in Arduino IDE Unit:
mkdir -p ~/Documents/Arduino/hardware/espressif && \
cd ~/Documents/Arduino/hardware/espressif && \
git clone https://github.com/espressif/arduino-esp32.git esp32 && \
cd esp32 && \
git submodule update --init --recursive && \
cd tools && \
python get.py
Did it work?
Regards,
Rui
Hi everybody,
My problem is solved.
I followed Rui’s above instructions to the letter and now it works. I am really happy.
Thanks a lot