esp-idf-tools-setup-2.2.exe Installation has failed with exit code 1
Posted: Thu Jan 02, 2020 1:53 pm
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.