Errors installing ESP-IDF Mac OS

Paladin
Posts: 23
Joined: Fri Jan 13, 2017 8:45 pm

Errors installing ESP-IDF Mac OS

Postby Paladin » Thu Dec 05, 2019 4:22 pm

This error comes up when I try to run the install script:
"no such option: --no-warn-script-location"

MacOS: 10.15.1
Python: 2.7.16
pip 1.5.4

Full text below:

Code: Select all

Installing ESP-IDF tools
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, esp32ulp-elf, openocd-esp32
Skipping xtensa-esp32-elf@esp-2019r2-8.2.0 (already installed)
Skipping xtensa-esp32s2-elf@esp-2019r2-8.2.0 (already installed)
Skipping esp32ulp-elf@2.28.51.20170517 (already installed)
Skipping openocd-esp32@v0.10.0-esp32-20190708 (already installed)
Installing Python environment and packages
Installing Python packages from /Users/username/esp/esp-idf/requirements.txt

Usage:   
  /Users/username/.espressif/python_env/idf4.1_py2.7_env/bin/python -m pip install [options] <requirement specifier> ...
  /Users/username/.espressif/python_env/idf4.1_py2.7_env/bin/python -m pip install [options] -r <requirements file> ...
  /Users/username/.espressif/python_env/idf4.1_py2.7_env/bin/python -m pip install [options] [-e] <vcs project url> ...
  /Users/username/.espressif/python_env/idf4.1_py2.7_env/bin/python -m pip install [options] [-e] <local project path> ...
  /Users/username/.espressif/python_env/idf4.1_py2.7_env/bin/python -m pip install [options] <archive url/path> ...

no such option: --no-warn-script-location
Traceback (most recent call last):
  File "/Users/username/esp/esp-idf/tools/idf_tools.py", line 1349, in <module>
    main(sys.argv[1:])
  File "/Users/username/esp/esp-idf/tools/idf_tools.py", line 1345, in main
    action_func(args)
  File "/Users/username/esp/esp-idf/tools/idf_tools.py", line 1163, in action_install_python_env
    subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/username/.espressif/python_env/idf4.1_py2.7_env/bin/python', '-m', 'pip', 'install', '--no-warn-script-location', '-r', '/Users/username/esp/esp-idf/requirements.txt']' returned non-zero exit status 2

jhubbardsf
Posts: 21
Joined: Wed Oct 30, 2019 5:17 am

Re: Errors installing ESP-IDF Mac OS

Postby jhubbardsf » Thu Dec 05, 2019 8:26 pm

Can you give a little more info on the steps you've taken before this and where you're at. I'm assuming you just ran the install.sh script, but what other steps have you followed so far?

Paladin
Posts: 23
Joined: Fri Jan 13, 2017 8:45 pm

Re: Errors installing ESP-IDF Mac OS

Postby Paladin » Thu Dec 05, 2019 11:28 pm

I've been simply following the getting started guide. Its been about 8 months since i used the ESP32 toolchain, so I decided to remove my old esp-idf folder and go through the setup process from step 1. When I ran

Code: Select all

./install.sh


I got the above error. I don't know what to try on my own. Google did not turn up anything I found useful.

jhubbardsf
Posts: 21
Joined: Wed Oct 30, 2019 5:17 am

Re: Errors installing ESP-IDF Mac OS

Postby jhubbardsf » Fri Dec 06, 2019 4:27 am

I've had to do this a few times on different macs and linux distros so I've seen a lot of errors but don't remember this one. Can you send me the link to the exact getting started guide? v4 just came out which is under latest but it's easy to accidentally read an older one or follow the make guide when you wanna do cmake (idf.py). That's why I'm asking.

Paladin
Posts: 23
Joined: Fri Jan 13, 2017 8:45 pm

Re: Errors installing ESP-IDF Mac OS

Postby Paladin » Fri Dec 06, 2019 9:24 pm

Thank you for taking the time to help.

here's the guide I'm using:
https://docs.espressif.com/projects/esp ... et-esp-idf

jhubbardsf
Posts: 21
Joined: Wed Oct 30, 2019 5:17 am

Re: Errors installing ESP-IDF Mac OS

Postby jhubbardsf » Fri Dec 06, 2019 11:08 pm

No problem, I very well how rough it can be to navigate Espressif software lol. Did you make sure to follow all the steps in https://docs.espressif.com/projects/esp ... setup.html as well?

Paladin
Posts: 23
Joined: Fri Jan 13, 2017 8:45 pm

Re: Errors installing ESP-IDF Mac OS

Postby Paladin » Sat Dec 07, 2019 2:08 am

yes I did.

jhubbardsf
Posts: 21
Joined: Wed Oct 30, 2019 5:17 am

Re: Errors installing ESP-IDF Mac OS

Postby jhubbardsf » Sat Dec 07, 2019 2:19 am

I just noticed that your pip is super old (I think).

https://pypi.org/project/pip/ says that current version is 19.3.1

Try upgrading it

Code: Select all

pip install -U pip
Then rerun the install. no-warn-script-location is a valid flag so maybe your version of pip is too old to have it?

Edit: If you run into trouble upgrading your pip, look at this https://stackoverflow.com/a/47299380

Paladin
Posts: 23
Joined: Fri Jan 13, 2017 8:45 pm

Re: Errors installing ESP-IDF Mac OS

Postby Paladin » Sat Dec 07, 2019 10:40 pm

So, ironically, the very first step in the getting started guide is to install pip:

Code: Select all

sudo easy_install pip
which I did, despite having pip already installed...and the version number ticked up, so I didn't even think to check that I had the latest version.

anyways, updating pip seems to have gotten my toolchain up and running. Now I need to dig back into my old project to see if I can get it up and running again.

Thank you for the help.

jhubbardsf
Posts: 21
Joined: Wed Oct 30, 2019 5:17 am

Re: Errors installing ESP-IDF Mac OS

Postby jhubbardsf » Sat Dec 07, 2019 11:12 pm

Glad you got it working.

Who is online

Users browsing this forum: Bing [Bot] and 151 guests