Skip to content

Installation instructions for Debian / Ubuntu OS fails due python script #1042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
birgersp opened this issue Jan 29, 2018 · 3 comments
Closed

Comments

@birgersp
Copy link
Contributor

Ubutu 17.10, 64-bit

Following these instructions fails:

birger@computer:~/Arduino/hardware/espressif/esp32/tools$ python get.pyTraceback (most recent call last):
  File "get.py", line 27, in <module>
    current_dir = os.path.dirname(os.path.realpath(unicode(__file__)))
NameError: name 'unicode' is not defined

And this answer on stack overflow explains the probable cause: https://stackoverflow.com/a/19877309/2583765

@birgersp
Copy link
Contributor Author

Changing the command from python get.py to python2 get.py fixes the issue

@jefarnham
Copy link

jefarnham commented Mar 11, 2018

When I enter "python2 get.py" in the Terminal, I get:
File "/usr/local/lib/python2.7/urllib.py", line 222, in open_unknown raise IOError, ('url error', 'unknown url type', type)
IOError: [Errno url error] unknown url type: 'https'

The script fails to create xtensa-esp32-elf folder and can't populate it with the required files to compile with the ESP32 board.
Any ideas about how to fix this?

@JamesGKent
Copy link

looking at the answer here:
https://stackoverflow.com/questions/28376506/urllib-https-request-urlopen-error-unknown-url-type-https

you need ssl support in your python installation.

Curclamas pushed a commit to Curclamas/arduino-esp32 that referenced this issue Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants