-
Notifications
You must be signed in to change notification settings - Fork 589
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
[FEATURE] Python on NuttX: known issues, "TO-DO" list, and general enhancements #2884
Comments
Update: Python's socket module is now supported and Python on NuttX can run applications with POSIX-compatible sockets. Please check apache/nuttx#15457 and #2928 for examples. |
Hi, I prepared an article with the technical details of the implementation in my blog. You can check it at: https://tmedicci.github.io/articles/2025/01/08/python_on_nuttx.html |
Just submitted a new PR (#2982) that solves two issues on
|
Just submitted the support for running Python on ESP32-S3: apache/nuttx#15955 Please check the following article for more detailed explanation and example: Running Python on ESP32-S3 with NuttX |
Is your feature request related to a problem? Please describe.
After #2879 was merged, it's time to make Python on NuttX fully usable!
This issue intends to discuss the next steps required to make it fully functional, including a "To-Do" list and any discussions on how it would evolve to support other architectures and platforms.
Initial Considerations
rv-virt
(RISC-V QEMU). That being said, itsinterpreters/python/config.site
andinterpreters/python/Setup.local
are somehow tied with the features enabled by theboards/risc-v/qemu-rv/rv-virt/configs/cpython/defconfig
. Python for NuttX depends onCONFIG_EXPERIMENTAL
!pyc
(byte-code format) and are loaded from a ROMFS image at startup.PYTHONHOME
andPYTHON_BASIC_REPL
needs to be set accordingly.Describe the solution you'd like
TO-DO list:
This is the list of the next steps to make Python's port fully functional (sorted by highest priority):
Make
.interpreters/python/Setup.local
andinterpreters/python/config.site
dynamically according to the enabled configs. For instance:export ac_cv_func_pipe="yes"
depends onCONFIG_PIPES
being enabled.Program/python.c
app.Known Issues
Python/Modules/getpath.c
. Reported at https://github.com/apache/incubator-nuttx-apps/blob/efc1bf710c8be1e0f0ae5e1bf2b292f8b57076a6/interpreters/python/Makefile#L86 (valid forriscv-none-elf-gcc (xPack GNU RISC-V Embedded GCC x86_64) 13.2.0
)Describe alternatives you've considered
No response
Verification
The text was updated successfully, but these errors were encountered: