Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Python 3.13 (on Windows) (IDFGH-14120) #11

Open
3 tasks done
MuRongPIG opened this issue Nov 23, 2024 · 4 comments
Open
3 tasks done

Support Python 3.13 (on Windows) (IDFGH-14120) #11

MuRongPIG opened this issue Nov 23, 2024 · 4 comments
Assignees

Comments

@MuRongPIG
Copy link

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Provided a clear description of your suggestion.
  • Included any relevant context or examples.

Issue or Suggestion Description

When i tried to install esp-idf-kconfig on a computer with python 3.13.0, I got some errors. I checked pypi.org, and it notices me that the package only supports python 3.8-3.12. As python 3.13.0 was released on Oct. 7, 2024 and became the latest version ,I think it would be nice to add support. Thank you.

@github-actions github-actions bot changed the title support python 3.13 support python 3.13 (IDFGH-14120) Nov 23, 2024
@dobairoland
Copy link
Collaborator

Hi @MuRongPIG. We haven't updated yet the list on pypi.org. That by itself doesn't mean it is not supported.

Can you share the full error logs you've encountered?

@MuRongPIG
Copy link
Author

Processing esp32-c3-devkitm-1 (board: esp32-c3-devkitm-1; platform: espressif32@^6.4.0; framework: espidf)
---------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-c3-devkitm-1.html
PLATFORM: Espressif 32 (6.9.0) > Espressif ESP32-C3-DevKitM-1
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-espidf @ 3.50102.0 (5.1.2)
 - tool-cmake @ 3.16.4
 - tool-esptoolpy @ 1.40501.0 (4.5.1)
 - tool-idf @ 1.0.1
 - tool-mconf @ 1.4060000.20190628 (406.0.0)
 - tool-ninja @ 1.9.0
 - tool-riscv32-esp-elf-gdb @ 11.2.0+20220823
 - tool-xtensa-esp-elf-gdb @ 11.2.0+20230208
 - toolchain-esp32ulp @ 1.23800.240113 (2.38.0)
 - toolchain-riscv32-esp @ 13.2.0+20240530
Installing ESP-IDF's Python dependencies
Collecting urllib3<2
  Using cached urllib3-1.26.20-py2.py3-none-any.whl.metadata (50 kB)
Collecting cryptography~=41.0.1
  Using cached cryptography-41.0.7-cp37-abi3-win_amd64.whl.metadata (5.3 kB)
Collecting future>=0.18.3
  Using cached future-1.0.0-py3-none-any.whl.metadata (4.0 kB)
Collecting pyparsing<4,>=3.1.0
  Using cached pyparsing-3.2.0-py3-none-any.whl.metadata (5.0 kB)
Collecting kconfiglib~=14.1.0
  Using cached kconfiglib-14.1.0-py2.py3-none-any.whl.metadata (39 kB)
Collecting idf-component-manager~=1.5.2
  Using cached idf_component_manager-1.5.3-py2.py3-none-any.whl.metadata (12 kB)
Collecting esp-idf-kconfig<2.0.0,>=1.4.2
  Using cached esp_idf_kconfig-1.4.3-py3-none-any.whl.metadata (15 kB)
Collecting cffi>=1.12 (from cryptography~=41.0.1)
  Using cached cffi-1.17.1-cp313-cp313-win_amd64.whl.metadata (1.6 kB)
Collecting packaging (from idf-component-manager~=1.5.2)
  Using cached packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
Collecting requests<3 (from idf-component-manager~=1.5.2)
  Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting requests-file<2 (from idf-component-manager~=1.5.2)
  Using cached requests_file-1.5.1-py2.py3-none-any.whl.metadata (596 bytes)
Collecting requests-toolbelt (from idf-component-manager~=1.5.2)
  Using cached requests_toolbelt-1.0.0-py2.py3-none-any.whl.metadata (14 kB)
Collecting schema<=0.7.5 (from idf-component-manager~=1.5.2)
  Using cached schema-0.7.5-py2.py3-none-any.whl.metadata (34 kB)
Collecting six (from idf-component-manager~=1.5.2)
  Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting tqdm<5 (from idf-component-manager~=1.5.2)
  Using cached tqdm-4.67.1-py3-none-any.whl.metadata (57 kB)
Collecting colorama (from idf-component-manager~=1.5.2)
  Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting pyyaml>5.2 (from idf-component-manager~=1.5.2)
  Using cached PyYAML-6.0.2-cp313-cp313-win_amd64.whl.metadata (2.1 kB)
Collecting cachecontrol>0.12.6 (from cachecontrol[filecache]>0.12.6; python_version >= "3.6"->idf-component-manager~=1.5.2)
  Using cached cachecontrol-0.14.1-py3-none-any.whl.metadata (3.1 kB)
Collecting contextlib2>0.6.0 (from idf-component-manager~=1.5.2)
  Using cached contextlib2-21.6.0-py2.py3-none-any.whl.metadata (4.1 kB)
Collecting click (from idf-component-manager~=1.5.2)
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
INFO: pip is looking at multiple versions of esp-idf-kconfig to determine which version is compatible with other requirements. This could take a while.
Collecting esp-idf-kconfig<2.0.0,>=1.4.2
  Using cached esp_idf_kconfig-1.4.2-py3-none-any.whl.metadata (15 kB)
ERROR: Cannot install esp-idf-kconfig==1.4.2 and esp-idf-kconfig==1.4.3 because these package versions have conflicting dependencies.

The conflict is caused by:
    esp-idf-kconfig 1.4.3 depends on windows-curses; platform_system == "Windows"
    esp-idf-kconfig 1.4.2 depends on windows-curses; platform_system == "Windows"

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict


[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: C:\Users\MuRongPIG\.platformio\penv\.espidf-5.1.2\Scripts\python.exe -m pip install --upgrade pip       
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Installing windows-curses package
*** Error 1
ERROR: Could not find a version that satisfies the requirement windows-curses (from versions: none)

[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: C:\Users\MuRongPIG\.platformio\penv\.espidf-5.1.2\Scripts\python.exe -m pip install --upgrade pip        
ERROR: No matching distribution found for windows-curses
*** Error 1
Reading CMake configuration...
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
-- Building ESP-IDF components for target esp32c3
-- Configuring incomplete, errors occurred!
See also "C:/Users/MuRongPIG/Documents/PlatformIO/Projects/esp32_nat_router/.pio/build/esp32-c3-devkitm-1/CMakeFiles/CMakeOutput.log".

fatal: not a git repository (or any of the parent directories): .git
CMake Error at C:/Users/MuRongPIG/.platformio/packages/framework-espidf/tools/cmake/build.cmake:540 (message):
  C:\Users\MuRongPIG\.platformio\penv\.espidf-5.1.2\Scripts\python.exe: Error
  while finding module specification for
  'idf_component_manager.prepare_components' (ModuleNotFoundError: No module
  named 'idf_component_manager')

Call Stack (most recent call first):
  C:/Users/MuRongPIG/.platformio/packages/framework-espidf/tools/cmake/project.cmake:547 (idf_build_process)
  CMakeLists.txt:6 (project)



================================================== [FAILED] Took 24.56 seconds ==================================================

the full logs are here. maybe the problem is not from this package;however,as a beginner,i have no idea. sorry for the inconvenience.

@dobairoland
Copy link
Collaborator

It looks that the given issue is cased by zephyrproject-rtos/windows-curses#69.

@dobairoland dobairoland changed the title support python 3.13 (IDFGH-14120) Support python 3.13 (on Windows) (IDFGH-14120) Nov 26, 2024
@dobairoland dobairoland changed the title Support python 3.13 (on Windows) (IDFGH-14120) Support Python 3.13 (on Windows) (IDFGH-14120) Nov 26, 2024
@Honza0297
Copy link
Collaborator

Agree with @dobairoland . Until the issue is fixed in windows-curses, I suggest using Python 3.12 (or lower) or unix-based OS (linux, macOS), where this issue is not present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants