-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Menuconfig does not run with python 3.10.6, citing lack of curses python module (IDFGH-10387) #11643
Comments
Is this the same problem I encountered?
I eventually solved it by executing pip in the environment. |
@823984418 No, it is not the same. That package is required additionally on Windows. This issue will be handled by the next version of Windows Tools Installer. |
It is not. The curses module is integrated into Python on Linux systems. I guess the selected Python version from pyenv is broken.
Looking at your logs, the broken 3.10.6 also comes from pyenv. The default
Officially we support the native python of the OS. https://packages.ubuntu.com/jammy/python3 in your case. However, pyenv should work as well - but it is not tested by us. Also, some versions included in pyenv could have issues. I'm sorry but we don't have control over that. |
Ok, I've figured this out. My core confusion was that this did appear to still be occurring on the system version of python3, which I had installed while following the ESP-IDF installation steps (this automatically installed version was 3.10.6, not 3.10.4, it's why I'd selected 3.10.6 for pyenv). When pyenv was completely disabled by removing the shims, However, it looks like this was because I apologize for assuming this issue was broader than it ended up being, I'd thought same issue was occurring across two different installations of 3.10.6. Is there a good way to reset the python environments when running the IDF installation step? |
It actually cleans the Python environment if any issue is detected. Your issue happened much later so it was not detected. But I think we could add an |
Great, I'm glad this issue ended up being of some use. Thanks for your insight. |
Answers checklist.
IDF version.
v5.2-dev-1010-g213504238f
Operating System used.
Ubuntu 22.04
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
running
idf.py menuconfig
should open menuconfigWhat is the actual behavior?
Steps to reproduce.
Build or installation Logs.
No response
More Information.
I've been setting up the idf on a new ubuntu 22.04 computer and ran into this issue while installing. It was a very conventional install and this is almost the first thing I've done on the machine. Reverting manually to 3.9.4 (manually or with pyenv) resolved the issue. There are a couple things I'm confused by here:
The text was updated successfully, but these errors were encountered: