esp-idf-tools-setup-2.2.exe Installation has failed with exit code 1
esp-idf-tools-setup-2.2.exe Installation has failed with exit code 1
I have been trying to get the IDF setup for several days and have not been able to get the setup tool to run without error. I have searched for and tried all the suggestions that I can find with no luck. I keep getting this error and don't know what to do to fix it.
2020-01-02 07:44:14.159 Running command: C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\python.exe "C:\Users\Ed\.espressif\idf_tools_fallback.py" --idf-path C:\Users\Ed\Desktop\esp-idf-2 --tools "C:\Users\Ed\.espressif\tools_fallback.json" install-python-env
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 2634, in <module>
main()
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 870, in main
symlink=options.symlink,
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 1162, in create_environment
install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages=site_packages, clear=clear, symlink=symlink)
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 1532, in install_python
shutil.copyfile(executable, py_executable)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
OSError: [Errno 22] Invalid argument: 'C:\\Users\\Ed\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\python.exe'
Using base prefix 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0'
New python executable in C:\Users\Ed\.espressif\python_env\idf3.2_py3.7_env\Scripts\python.exe
Creating a new Python environment in C:\Users\Ed\.espressif\python_env\idf3.2_py3.7_env
Traceback (most recent call last):
File "C:\Users\Ed\.espressif\idf_tools_fallback.py", line 1387, in <module>
main(sys.argv[1:])
File "C:\Users\Ed\.espressif\idf_tools_fallback.py", line 1383, in main
action_func(args)
File "C:\Users\Ed\.espressif\idf_tools_fallback.py", line 1189, in action_install_python_env
stdout=sys.stdout, stderr=sys.stderr)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\Ed\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\python.exe', '-m', 'virtualenv', '--no-site-packages', 'C:\\Users\\Ed\\.espressif\\python_env\\idf3.2_py3.7_env']' returned non-zero exit status 1.
2020-01-02 07:44:14.159 Running command: C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\python.exe "C:\Users\Ed\.espressif\idf_tools_fallback.py" --idf-path C:\Users\Ed\Desktop\esp-idf-2 --tools "C:\Users\Ed\.espressif\tools_fallback.json" install-python-env
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 2634, in <module>
main()
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 870, in main
symlink=options.symlink,
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 1162, in create_environment
install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages=site_packages, clear=clear, symlink=symlink)
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 1532, in install_python
shutil.copyfile(executable, py_executable)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
OSError: [Errno 22] Invalid argument: 'C:\\Users\\Ed\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\python.exe'
Using base prefix 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0'
New python executable in C:\Users\Ed\.espressif\python_env\idf3.2_py3.7_env\Scripts\python.exe
Creating a new Python environment in C:\Users\Ed\.espressif\python_env\idf3.2_py3.7_env
Traceback (most recent call last):
File "C:\Users\Ed\.espressif\idf_tools_fallback.py", line 1387, in <module>
main(sys.argv[1:])
File "C:\Users\Ed\.espressif\idf_tools_fallback.py", line 1383, in main
action_func(args)
File "C:\Users\Ed\.espressif\idf_tools_fallback.py", line 1189, in action_install_python_env
stdout=sys.stdout, stderr=sys.stderr)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\Ed\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\python.exe', '-m', 'virtualenv', '--no-site-packages', 'C:\\Users\\Ed\\.espressif\\python_env\\idf3.2_py3.7_env']' returned non-zero exit status 1.
Re: esp-idf-tools-setup-2.2.exe Installation has failed with exit code 1
It looks like you may be trying to use the new tools installer with IDF v3.2?
For v3.2, the getting started guide for Windows is here: https://docs.espressif.com/projects/esp ... setup.html. It involves using an MSYS based environment.
Do you need to use specifically IDF v3.2 (e.g. because of some dependency, such as ESP-MDF)?
If yes, then you have to follow the guide linked above, for IDF v3.2.
If no, then please try again with a newer version of IDF, such as release/v4.0 branch. You can learn more about the IDF versions here: https://docs.espressif.com/projects/esp ... sions.html
For v3.2, the getting started guide for Windows is here: https://docs.espressif.com/projects/esp ... setup.html. It involves using an MSYS based environment.
Do you need to use specifically IDF v3.2 (e.g. because of some dependency, such as ESP-MDF)?
If yes, then you have to follow the guide linked above, for IDF v3.2.
If no, then please try again with a newer version of IDF, such as release/v4.0 branch. You can learn more about the IDF versions here: https://docs.espressif.com/projects/esp ... sions.html
Re: esp-idf-tools-setup-2.2.exe Installation has failed with exit code 1
Still getting it with with v4.0. I was trying to install the 3.2 because of a build issue I had that other reported as corrected with the v3.2 IDF.
2020-01-02 08:24:11.557 Running command: C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\python.exe C:\Users\Ed\Desktop\esp-idf\tools\idf_tools.py install-python-env
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 2634, in <module>
main()
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 870, in main
symlink=options.symlink,
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 1162, in create_environment
install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages=site_packages, clear=clear, symlink=symlink)
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 1532, in install_python
shutil.copyfile(executable, py_executable)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
OSError: [Errno 22] Invalid argument: 'C:\\Users\\Ed\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\python.exe'
Using base prefix 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0'
New python executable in C:\Users\Ed\.espressif\python_env\idf4.0_py3.7_env\Scripts\python.exe
Creating a new Python environment in C:\Users\Ed\.espressif\python_env\idf4.0_py3.7_env
Traceback (most recent call last):
File "C:\Users\Ed\Desktop\esp-idf\tools\idf_tools.py", line 1372, in <module>
main(sys.argv[1:])
File "C:\Users\Ed\Desktop\esp-idf\tools\idf_tools.py", line 1368, in main
action_func(args)
File "C:\Users\Ed\Desktop\esp-idf\tools\idf_tools.py", line 1184, in action_install_python_env
stdout=sys.stdout, stderr=sys.stderr)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\Ed\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\python.exe', '-m', 'virtualenv', '--no-site-packages', 'C:\\Users\\Ed\\.espressif\\python_env\\idf4.0_py3.7_env']' returned non-zero exit status 1.
2020-01-02 08:24:11.557 Running command: C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\python.exe C:\Users\Ed\Desktop\esp-idf\tools\idf_tools.py install-python-env
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 2634, in <module>
main()
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 870, in main
symlink=options.symlink,
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 1162, in create_environment
install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages=site_packages, clear=clear, symlink=symlink)
File "C:\Users\Ed\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\virtualenv.py", line 1532, in install_python
shutil.copyfile(executable, py_executable)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
OSError: [Errno 22] Invalid argument: 'C:\\Users\\Ed\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\python.exe'
Using base prefix 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0'
New python executable in C:\Users\Ed\.espressif\python_env\idf4.0_py3.7_env\Scripts\python.exe
Creating a new Python environment in C:\Users\Ed\.espressif\python_env\idf4.0_py3.7_env
Traceback (most recent call last):
File "C:\Users\Ed\Desktop\esp-idf\tools\idf_tools.py", line 1372, in <module>
main(sys.argv[1:])
File "C:\Users\Ed\Desktop\esp-idf\tools\idf_tools.py", line 1368, in main
action_func(args)
File "C:\Users\Ed\Desktop\esp-idf\tools\idf_tools.py", line 1184, in action_install_python_env
stdout=sys.stdout, stderr=sys.stderr)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\Ed\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\python.exe', '-m', 'virtualenv', '--no-site-packages', 'C:\\Users\\Ed\\.espressif\\python_env\\idf4.0_py3.7_env']' returned non-zero exit status 1.
Re: esp-idf-tools-setup-2.2.exe Installation has failed with exit code 1
and it also fails on the release/v4.0 IDF so I don't think this has anything to do with the IDF version.
Re: esp-idf-tools-setup-2.2.exe Installation has failed with exit code 1
Was able to get around this problem by switching to Python 2.7. Guess it isn't working with the version of Python I had (3.7.5)
Re: esp-idf-tools-setup-2.2.exe Installation has failed with exit code 1
Was the Python 3.7 installed using python.org installer, or as a Windows Store app? We have tested the installer with python.org distributions, but I think we haven't checked how it behaves with the Windows Store app, yet.
Re: esp-idf-tools-setup-2.2.exe Installation has failed with exit code 1
I don't remember how it was installed. There is no entry for it in the Windows programs control panel.
-
- Posts: 1
- Joined: Fri Feb 21, 2020 10:14 am
Re: esp-idf-tools-setup-2.2.exe Installation has failed with exit code 1
hi,
I have faced with this problem right now,
I have tried every thing that i can.
installing, uninstalling pythons, 2.7, 3.7, 3.8
tried many times but no success.
In addition, espressif has messed up everything. here are some confusions:
1. no eclipse support (I have seen somewhere) for v4.0, but there is an eclipse plugin which does not works for me. https://github.com/espressif/idf-eclipse-plugin
2. esp-mdf uses old esp-idf. currently trying to install this.
3.there was not literally install guide for anything (except for esp-idf v3.3 it was really good)
4. I have installed ESP8266-RTOS-SDK on windows by my efforts (your install guide was not work)
in every guides there are abeyances, in all, they have some problems.
I think you should review your tools, documents and others.
I have faced with this problem right now,
I have tried every thing that i can.
installing, uninstalling pythons, 2.7, 3.7, 3.8
tried many times but no success.
In addition, espressif has messed up everything. here are some confusions:
1. no eclipse support (I have seen somewhere) for v4.0, but there is an eclipse plugin which does not works for me. https://github.com/espressif/idf-eclipse-plugin
2. esp-mdf uses old esp-idf. currently trying to install this.
3.there was not literally install guide for anything (except for esp-idf v3.3 it was really good)
4. I have installed ESP8266-RTOS-SDK on windows by my efforts (your install guide was not work)
in every guides there are abeyances, in all, they have some problems.
I think you should review your tools, documents and others.
Re: esp-idf-tools-setup-2.2.exe Installation has failed with exit code 1
I had the same issue on Win7 .
Exactly this python2.x and 3.x
I also noticed that python3.4+(64bit) is not installing correctly on Win7
When I switched to Win10 , All works out of the box with no Issues .
And python 3.7 (64bit) is installing fine .
I think IDF is only supporting python3.7 (64bit)
Check if that is the issue cause the log you put shows the errors related to python .
Exactly this python2.x and 3.x
I also noticed that python3.4+(64bit) is not installing correctly on Win7
When I switched to Win10 , All works out of the box with no Issues .
And python 3.7 (64bit) is installing fine .
I think IDF is only supporting python3.7 (64bit)
Check if that is the issue cause the log you put shows the errors related to python .
Re: esp-idf-tools-setup-2.2.exe Installation has failed with exit code 1
I am getting the same kind of trouble, and I don't see a solution in this thread, but please correct me if I am wrong?
Best regards,
Peter
Best regards,
Peter
Who is online
Users browsing this forum: Google [Bot] and 107 guests