You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pip install -r requirements.txt fails with a shallow clone.
Expected Behavior
The installation should complete.
Actual Behavior
pip install fails with the following stack trace:
Extracting /home/hack/.espressif/dist/openocd-esp32-linux64-0.10.0-esp32-20190313.tar.gz to /home/hack/.espressif/tools/openocd-esp32/v0.10.0-esp32-20190313
Installing Python environment and packages
fatal: No names found, cannot describe anything.
Traceback (most recent call last):
File "/mnt/test/projects/esp32/esp/idf/tools/idf_tools.py", line 1344, in <module>
main(sys.argv[1:])
File "/mnt/test/projects/esp32/esp/idf/tools/idf_tools.py", line 1340, in main
action_func(args)
File "/mnt/test/projects/esp32/esp/idf/tools/idf_tools.py", line 1139, in action_install_python_env
idf_python_env_path, _, virtualenv_python = get_python_env_path()
File "/mnt/test/projects/esp32/esp/idf/tools/idf_tools.py", line 840, in get_python_env_path
idf_version_str = subprocess.check_output(['git', '--work-tree=' + global_idf_path, 'describe', '--tags'], cwd=global_idf_path, env=os.environ).decode()
File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
**kwargs).stdout
File "/usr/lib/python3.7/subprocess.py", line 487, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', '--work-tree=/mnt/test/projects/esp32/esp/idf', 'describe', '--tags']' returned non-zero exit status 128.
Steps to reproduce
I'm running the following script to setup IDF on my machine:
Hi @hackaugusto. I can reproduce this error message but just to note that it is not related to pip install. It fails for tools/idf_tool.py probably while you are invoking it directly or through export.sh.
Environment
Problem Description
pip install -r requirements.txt
fails with a shallow clone.Expected Behavior
The installation should complete.
Actual Behavior
pip install
fails with the following stack trace:Steps to reproduce
I'm running the following script to setup IDF on my machine:
I just noticed the venv was created with python3, however the git command seems to be unrelated to that.
Ideally the setup would work with a shallow copy, otherwise documenting this would be useful.
The text was updated successfully, but these errors were encountered: