Upgrading from 4.3.2 to 4.4 gives virtual environment script errors

greyarea
Posts: 4
Joined: Mon Jan 31, 2022 2:10 pm

Upgrading from 4.3.2 to 4.4 gives virtual environment script errors

Postby greyarea » Tue Mar 15, 2022 8:08 pm

I am running ESP-IDF 4.3.2 (in ~home/docs/code/esp/esp-idf) and downloaded the 4.4 ZIP file to put it alongside my esp-idf directory in ../esp-idf-release-v4.4

I have the prerequisites listed but when I run ./install.sh I get the below error - note that I am NOT running it from a virtual environment. What's the correct/best way to upgrade to 4.4?

Code: Select all

$ ./install.sh 
Detecting the Python interpreter
Checking "python" ...
Python 3.8.10
"python" has been detected
Installing ESP-IDF tools
Selected targets are: esp32c3, esp32s2, esp32, esp32s3
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, xtensa-esp32s3-elf, riscv32-esp-elf, esp32ulp-elf, esp32s2ulp-elf, openocd-esp32
Installing xtensa-esp32-elf@esp-2021r2-patch3-8.4.0
Downloading xtensa-esp32-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz to /home/mattb/.espressif/dist/xtensa-esp32-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz.tmp
Done
Extracting /home/mattb/.espressif/dist/xtensa-esp32-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz to /home/mattb/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0
Installing xtensa-esp32s2-elf@esp-2021r2-patch3-8.4.0
Downloading xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz to /home/mattb/.espressif/dist/xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz.tmp
Done
Extracting /home/mattb/.espressif/dist/xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz to /home/mattb/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch3-8.4.0
Installing xtensa-esp32s3-elf@esp-2021r2-patch3-8.4.0
Downloading xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz to /home/mattb/.espressif/dist/xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz.tmp
Done
Extracting /home/mattb/.espressif/dist/xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz to /home/mattb/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0
Installing riscv32-esp-elf@esp-2021r2-patch3-8.4.0
Downloading riscv32-esp-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz to /home/mattb/.espressif/dist/riscv32-esp-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz.tmp
Done
Extracting /home/mattb/.espressif/dist/riscv32-esp-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz to /home/mattb/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0
Skipping esp32ulp-elf@2.28.51-esp-20191205 (already installed)
Skipping esp32s2ulp-elf@2.28.51-esp-20191205 (already installed)
Installing openocd-esp32@v0.11.0-esp32-20211220
Downloading openocd-esp32-linux-amd64-0.11.0-esp32-20211220.tar.gz to /home/mattb/.espressif/dist/openocd-esp32-linux-amd64-0.11.0-esp32-20211220.tar.gz.tmp
Done
Extracting /home/mattb/.espressif/dist/openocd-esp32-linux-amd64-0.11.0-esp32-20211220.tar.gz to /home/mattb/.espressif/tools/openocd-esp32/v0.11.0-esp32-20211220
Installing Python environment and packages
fatal: not a git repository (or any of the parent directories): .git
WARNING: Git describe was unsuccessful: b''
ERROR: This script was called from a virtual environment, can not create a virtual environment again

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: Upgrading from 4.3.2 to 4.4 gives virtual environment script errors

Postby ESP_Roland » Thu Mar 17, 2022 8:25 am

The error indicates that you are running the install script in a terminal where tools were already set up for use by sourcing export.sh.

The solution is to run it in a clean terminal.

Your path indicates that you might be using Vscode. If that is the case then please look for proper upgrade guide in the vscode extention github repository.

Who is online

Users browsing this forum: Baidu [Spider] and 76 guests