Version roll back using Eclipse Plugin 5.1 to 5.0 does not succeed with tool installation.

RalphD
Posts: 103
Joined: Thu Nov 25, 2021 9:02 pm

Version roll back using Eclipse Plugin 5.1 to 5.0 does not succeed with tool installation.

Postby RalphD » Tue Oct 17, 2023 8:14 pm

I am seeing this error:

Code: Select all

ERROR: Could not find a version that satisfies the requirement windows-curses (from versions: none)
ERROR: No matching distribution found for windows-curses
Traceback (most recent call last):
  File "C:\_esp-idf-v5.0.4\esp-idf-v5.0\tools\idf_tools.py", line 2529, in <module>
    main(sys.argv[1:])
  File "C:\_esp-idf-v5.0.4\esp-idf-v5.0\tools\idf_tools.py", line 2521, in main
    action_func(args)
  File "C:\_esp-idf-v5.0.4\esp-idf-v5.0\tools\idf_tools.py", line 2038, in action_install_python_env
    subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr, env=env_copy)
  File "C:\Python\Python312\Lib\subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\ralph\\.espressif\\python_env\\idf5.0_py3.12_env\\Scripts\\python.exe', '-m', 'pip', 'install', '--no-warn-script-location', '-r', 'C:\\_esp-idf-v5.0.4\\esp-idf-v5.0\\tools\\requirements\\requirements.core.txt', '--upgrade', '--constraint', 'C:\\Users\\ralph\\.espressif\\espidf.constraints.v5.0.txt', '--extra-index-url', 'https://dl.espressif.com/pypi']' returned non-zero exit status 1.
ErrorError
However, IDF 5.1 was working fine besides that we not managed to upgrade a project from 5.0.1 to 5.1.

RalphD
Posts: 103
Joined: Thu Nov 25, 2021 9:02 pm

Re: Version roll back using Eclipse Plugin 5.1 to 5.0 does not succeed with tool installation.

Postby RalphD » Thu Oct 19, 2023 11:56 am

If I try to compile a project after installing the earlier version (5.0.1) via Eclipse Plug In I am getting the following error

Code: Select all

Building in: C:\ESP-WS-2022-12-18\maxim-http\build
Configuring in: C:\ESP-WS-2022-12-18\maxim-http\build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\_esp-idf-v5.0.4\esp-idf-v5.0\tools\cmake\toolchain-esp32s2.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCCACHE_ENABLE=1 -DIDF_TARGET=esp32s2 C:\ESP-WS-2022-12-18\maxim-http
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.35.1.windows.2") 
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/ralph/.espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/ralph/.espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Users/ralph/.espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s2
-- Checking Python dependencies...
Constraint file: C:\Users\ralph\.espressif\espidf.constraints.v5.0.txt
Requirement files:
 - C:\_esp-idf-v5.0.4\esp-idf-v5.0\tools\requirements\requirements.core.txt
Python being checked: C:\Users\ralph\.espressif\python_env\idf5.0_py3.12_env\Scripts\python.exe
pkg_resources cannot be imported. The most common cause is a missing pip or setuptools package. If you've installed a custom Python then these packages are provided separately and have to be installed as well. Please refer to the Get Started section of the ESP-IDF Programming Guide for setting up the required packages.
CMake Error at C:/_esp-idf-v5.0.4/esp-idf-v5.0/tools/cmake/build.cmake:345 (message):
  Failed to run Python dependency check.  Python: python, Error: -1
-- Configuring incomplete, errors occurred!
See also "C:/ESP-WS-2022-12-18/maxim-http/build/CMakeFiles/CMakeOutput.log".
Call Stack (most recent call first):
  C:/_esp-idf-v5.0.4/esp-idf-v5.0/tools/cmake/build.cmake:480 (__build_check_python)
  C:/_esp-idf-v5.0.4/esp-idf-v5.0/tools/cmake/project.cmake:440 (idf_build_process)
  CMakeLists.txt:12 (project)


ESP_kondalkolipaka
Posts: 188
Joined: Wed Jul 17, 2019 5:26 pm

Re: Version roll back using Eclipse Plugin 5.1 to 5.0 does not succeed with tool installation.

Postby ESP_kondalkolipaka » Wed Nov 01, 2023 11:12 am

Hello,

When you switch a ESP-IDF version, please make sure to run the Install Tools from the IDE to get the compatible tools required. You can follow the below instructions.

1. Go to "Espressif" Menu from the IDE
2. Choose "ESP-IDF Tools Manager" > "Install Tools"
3. Provide the required paramters in the dialog and click on the "Install Tools". This will download and install the required toolset to work with the upgraded/downgraded esp-idf version and configure all the required paths in the IDE build environment.
4. Now right click on the project, and run "ESP-IDF:Python Clean".

Once the above process is done, you are good to go with the build!

I hope that helps!

RalphD
Posts: 103
Joined: Thu Nov 25, 2021 9:02 pm

Re: Version roll back using Eclipse Plugin 5.1 to 5.0 does not succeed with tool installation.

Postby RalphD » Sun Nov 05, 2023 11:23 am

I did all this but instead of Python clean I am used to delete the /build directory. It didn't help. However, I did change my computer anyway and have now other issues.
May be you let us know if deleting the build directory is as good as doing a python clean

ESP_kondalkolipaka
Posts: 188
Joined: Wed Jul 17, 2019 5:26 pm

Re: Version roll back using Eclipse Plugin 5.1 to 5.0 does not succeed with tool installation.

Postby ESP_kondalkolipaka » Mon Nov 06, 2023 1:34 pm

Yes, you can also delete the entire build directory, it's same as running "idf.py fullclean" command.

You should check this. https://docs.espressif.com/projects/esp ... df-py.html

$idf.py python-clean
This command deletes generated python byte code from the ESP-IDF directory. The byte code may cause issues when switching between ESP-IDF and Python versions. It is advised to run this target after switching versions of Python.

$idf.py fullclean
This command deletes the entire “build” directory contents, which includes all CMake configuration output. The next time the project is built, CMake will configure it from scratch. Note that this option recursively deletes all files in the build directory, so use with care. Project configuration is not deleted.

Who is online

Users browsing this forum: No registered users and 75 guests