Cannot finish installation due to python requirements (VSC-444)
See original GitHub issueI have been trying to install the VS Code extension for a day, tried different versions of the ISP-IDF and still hit the same block. Here’s the terminal output:
Checking ESP-IDF Python requirements using C:\Users\721850\.espressif\python_env\idf4.1_py3.8_env\Scripts\python.exe
Python requirements from c:\Users\721850\Documents\esp-idf-v4.1\requirements.txt are satisfied.
The following Python requirements are not satisfied:
backports.functools-lru-cache>=1.5
gcovr
graphviz
psutil>=5.5.1
pygdbmi>=0.9.0.0
pylint>=1.9.4
requests>=2.21.0
typing>=3.6.6
pywin32; platform_system == "Windows"
xmlrunner>=1.7.7
To install the missing packages, please run "c:\Users\721850\Documents\esp-idf-v4.1\install.bat"
Command failed: "C:\Users\721850\.espressif\python_env\idf4.1_py3.8_env\Scripts\python.exe" "c:\Users\721850\Documents\esp-idf-v4.1\tools\check_python_dependencies.py" -r "c:\Users\721850\.vscode-insiders\extensions\espressif.esp-idf-extension-0.4.0\esp_debug_adapter\requirements.txt"
I then run c:\Users\721850\Documents\esp-idf-v4.1\install.bat
from the VS Code terminal and it succeeds, along with c:\Users\721850\Documents\esp-idf-v4.1\export.bat
. After that I run C:\Users\721850\.espressif\python_env\idf4.1_py3.8_env\Scripts\python.exe c:\Users\721850\Documents\esp-idf-v4.1\tools\check_python_dependencies.py -r c:\Users\721850\.vscode-insiders\extensions\espressif.esp-idf-extension-0.4.0\esp_debug_adapter\requirements.txt
and get the following output:
PS C:\Users\721850\Documents\PlatformIO\Projects\ESP32_WiFiConnect> C:\Users\721850\.espressif\python_env\idf4.1_py3.8_env\Scripts\python.exe c:\Users\721850\Documents\esp-idf-v4.1\tools\check_python_dependencies.py -r c:\Users\721850\.vscode-insiders\extensions\espressif.esp-idf-extension-0.4.0\esp_debug_adapter\requirements.txt
Traceback (most recent call last):
File "c:\Users\721850\Documents\esp-idf-v4.1\tools\check_python_dependencies.py", line 44, in <module>
default=os.path.join(idf_path, 'requirements.txt'))
File "C:\Users\721850\AppData\Local\Programs\Python\Python38\lib\ntpath.py", line 78, in join
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType
Please let me know if there’s a fix for that.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
pip fails to install packages from requirements.txt
It looks like the numexpr package has an install-time dependency on numpy. Pip makes two passes through your requirements: first it ...
Read more >Installing Python Modules (Legacy version) — Python 3.11.1 ...
Note. This guide only covers the basic tools for building and distributing extensions that are provided as part of this version of Python....
Read more >[SOLVED] Windows 10 Could Not Complete the Installation + ...
Step 1: On the error screen, you can press “Shift” key and “F10” key together to launch Command Prompt. Step 2: Then, type...
Read more >User Guide - pip documentation v22.3.1
Constraints files are requirements files that only control which version of a requirement is installed, not whether it is installed or not. Their...
Read more >Install Python, pip, and the EB CLI on Windows
Verify that Python and pip are both installed correctly by using the following commands. C:\Windows\System32> python --version Python 3.7.3 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the same problem today. Then I tried to directly install the missing packages, and that worked. In your case, it’s like
python -m pip install -r c:\Users\721850\.vscode-insiders\extensions\espressif.esp-idf-extension-0.4.0\esp_debug_adapter\esp_debug_adapter\requirements.txt
Try this in your directoryC:\Users\721850\.espressif\python_env\idf4.1_py3.8_env\Scripts
Thanks a lot mate, it’s fix my problem on VSCode