question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'unrecognized arguments: --no-site-packages' during esp-idf tools installation (IEP-181)

See original GitHub issue

Hi, I freshly downloaded and installed esp-idf 4.0 on Win10 according to the documentation I could successfully flash and monitor the hello world example from command line. Then I wanted to do the same in eclipse, so I proceeded by the readme.md of this project. At ‘Installing ESP-IDF Tools’ the console shows this error:

Executing C:\Program Files (x86)\Python38-32\python.exe C:\DEV\esp-idf40\dl\tools\idf_tools.py install-python-env
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--clear-app-data] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-win,venv}] [--seeder {app-data,pip}] [--no-seed] [--activators comma_sep_list]
                  [--clear] [--system-site-packages] [--copies] [--no-download | --download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools] [--no-wheel]
                  [--symlink-app-data] [--prompt prompt] [-h]
                  dest
virtualenv: error: unrecognized arguments: --no-site-packages
Creating a new Python environment in C:\DEV\esp-idf40\python_env\idf4.0_py3.8_env
Traceback (most recent call last):
  File "C:\DEV\esp-idf40\dl\tools\idf_tools.py", line 1372, in <module>
    main(sys.argv[1:])
  File "C:\DEV\esp-idf40\dl\tools\idf_tools.py", line 1368, in main
    action_func(args)
  File "C:\DEV\esp-idf40\dl\tools\idf_tools.py", line 1182, in action_install_python_env
    subprocess.check_call([sys.executable, '-m', 'virtualenv', '--no-site-packages', idf_python_env_path],
  File "C:\Program Files (x86)\Python38-32\lib\subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Program Files (x86)\\Python38-32\\python.exe', '-m', 'virtualenv', '--no-site-packages', 'C:\\DEV\\esp-idf40\\python_env\\idf4.0_py3.8_env']' returned non-zero exit status 2.

To Reproduce

  1. Delete the ‘python-env’ folder from your ‘esp-idf’ folder, and make sure you have Python38-32 installed
  2. Install ESP-IDF Tools as described in the readme.md
  3. See the console

Expected behavior successfull installation, and an item showing up in eclipse ‘Help/Espressive IDF tools manager/List installed tools’

Screenshots screenshot

Environment Information: eclipseConfig.txt

ESP-IDF Tools Information: Help > Espressif Tools Manager > List Installed Tools —> this list is empty 😦

Any help is welcome - Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
igrrcommented, May 15, 2020

Hi @ahinsen, this is an issue in v4.0 release, which has a fix on release/v4.0 branch (see https://github.com/espressif/esp-idf/issues/5204#issuecomment-620537960). Please try one of the following:

  • run the installer again, this time choosing “release/v4.0” version of IDF to download
  • update the existing copy of IDF using git checkout release/v4.0, git pull origin release/v4.0.
0reactions
kolipakakondalcommented, Feb 16, 2021

Closing this issue for now, please report us back if you see the same issue with our recent release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing esp-idf 4.0 RC Tools - ESP32 Forum
Installing ESP-IDF tools Installing tools : xtensa-esp32-elf, ... error: unrecognized arguments: --no-site-packages Traceback (most recent ...
Read more >
esp-idf installation failed (Please help!) : r/esp32 - Reddit
But while installing the esp-idf-tools-setup-2.2.exe, ... [-h] dest virtualenv: error: unrecognized arguments: --no-site-packages Creating a ...
Read more >
Installing virtualenv: unrecognized arguments: --no-site ...
When the virtualenv version is greater than 20, it is the default no site packages parameter.
Read more >
no-site-packages 已弃用, 无法识别的参数 - 免费编程教程
须藤'unrecognized arguments: --no-site-packages' during esp-idf tools 'unrecognized arguments: --no-site-packages' 在esp-idf 工具安装期间install-python-env ...
Read more >
Standard Setup of Toolchain for Windows - ESP32
ESP-IDF requires some prerequisite tools to be installed so you can build firmware for supported chips. The prerequisite tools include Python, Git, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found