OSX - Error with Arduino Setup Terminal Script (get.py)

Moderators: mdrjr, odroid

OSX - Error with Arduino Setup Terminal Script (get.py)

Unread postby d97 » Sat Jul 07, 2018 12:06 pm

Hi - My Odroid-Go arrived today and after assembling it, I tried to connect it to the Arduino IDE (1.85) in OSX .

My error seems to come from the get.py part of the script:

I am not sure what the relevant lines are so I've included the whole thing. The error seems to pop up after this line:

Downloading mkspiffs-0.2.3-arduino-esp32-osx.tar.gz

The boards get populated in the hardware folder but my machine cannot connect via serial / usb.

Here is the error ... Any thoughts?
--------------
File "get.py", line 148, in <module>
get_tool(tool)
File "get.py", line 103, in get_tool
urlretrieve(url, local_path, report_progress)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 98, in urlretrieve
return opener.retrieve(url, filename, reporthook, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 245, in retrieve
fp = self.open(url, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 213, in open
return getattr(self, name)(url)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 443, in open_https
h.endheaders(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1049, in endheaders
self._send_output(message_body)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 893, in _send_output
self.send(msg)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 855, in send
self.connect()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1274, in connect
server_hostname=server_hostname)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 352, in wrap_socket
_context=self)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 579, in __init__
self.do_handshake()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 808, in do_handshake
self._sslobj.do_handshake()
IOError: [Errno socket error] [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)
-------
Thanks

D.
d97
 
Posts: 8
Joined: Sat Jul 07, 2018 11:55 am
languages_spoken: english

Re: OSX - Error with Arduino Setup Terminal Script (get.py)

Unread postby db9979 » Sat Jul 07, 2018 2:58 pm

Hi, did you read the firmwareinstallation guide here https://odroidgo.db-cloud.de there is a tap with a guide how to make firmwareupdates on a mac.
Did you see already our Rom List - and many other Informations?
Go here:
https://odroidgo.db-cloud.de
Facebook-Group
https://www.facebook.com/groups/odroidgo/
db9979
 
Posts: 23
Joined: Tue Jul 03, 2018 5:56 pm
languages_spoken: english, german
ODROIDs: Odroid-Go

Re: OSX - Error with Arduino Setup Terminal Script (get.py)

Unread postby d97 » Sun Jul 08, 2018 1:09 am

Hi - Thanks for the reply, I appreciate it. I don't think that this is a firmware issue. I am trying to connect the GO to the Arduino IDE on OSX. There is a script on this page: https://github.com/espressif/arduino-es ... ide/mac.md

that is supposed to download the necessary drivers, etc. to allow the board to talk to a mac. The "get.py" script fails about half-way through. The boards are populated properly in the IDE but the software necessary for serial / usb connection seems not to have been installed.

For the record, the error message mentioned on the page is not relevant to the failure of the script. Any ideas?

D.
d97
 
Posts: 8
Joined: Sat Jul 07, 2018 11:55 am
languages_spoken: english

Re: OSX - Error with Arduino Setup Terminal Script (get.py)

Unread postby dayveeboi » Mon Jul 09, 2018 12:26 am

Yes, python is trying to use an unsupported protocol due to outdated version of ssl. You could manually download the modules but you will likely come upon this problem again at some point in the future. The better solution is to update openSSL as described in this post https://stackoverflow.com/questions/243 ... 5#46308535
dayveeboi
 
Posts: 2
Joined: Mon Jul 09, 2018 12:05 am
languages_spoken: english
ODROIDs: Odroid-Go

Re: OSX - Error with Arduino Setup Terminal Script (get.py)

Unread postby d97 » Wed Jul 11, 2018 12:58 pm

Ahh! Thanks for that! That looks like the solution that I need.

Thanks again.

D.
d97
 
Posts: 8
Joined: Sat Jul 07, 2018 11:55 am
languages_spoken: english

Re: OSX - Error with Arduino Setup Terminal Script (get.py)

Unread postby dayveeboi » Mon Jul 16, 2018 7:16 am

No problem, hope it worked for you.
dayveeboi
 
Posts: 2
Joined: Mon Jul 09, 2018 12:05 am
languages_spoken: english
ODROIDs: Odroid-Go


Return to General Chat

Who is online

Users browsing this forum: No registered users and 2 guests