Import termios not loading on Linux from Iron Python
Prerequisites
The issue tracker is used to report bugs and request new features, NOT to ask questions.
Questions should be posted in Discussions or to the users mailing list which can be accessed at https://ironpython.groups.io/g/users.
- [ ] Are you running the latest version? Yes
- [ ] Are you reporting to the correct repository? Yes
- [ ] Did you perform a cursory search? Yes
Description
[Description of the bug or feature] Import "termios" not loading on Linux. I have script that run fine from command-line using "import termios", but does not load when script called Iron Python. Here is the library on Linux:
usr/lib/python3.9/lib-dynload/termios.cpython-39-aarch64-linux-gnu.so'>
Steps to Reproduce
-
[First Step] static void testEngineSimple() { string modulePath = @"/home/pi/.local/lib/python3.9/site-packages"; string path1 = "/usr/lib/python3.9'"; string path2 = "/usr/lib/python3.9/lib-dynload"; string path3 = "/usr/local/lib/python3.9/dist-packages"; string path4 = "/usr/lib/python3/dist-packages"; string path5 = "/usr/lib/python3.9/dist-packages"; string path6 = "/usr/lib/python39.zip";
var engine = Python.CreateEngine(); ICollection<string> searchPaths = engine.GetSearchPaths(); searchPaths.Add(modulePath); searchPaths.Add(path1); searchPaths.Add(path2); searchPaths.Add(path3); searchPaths.Add(path4); searchPaths.Add(path5); searchPaths.Add(path6); engine.SetSearchPaths(searchPaths); engine.Execute("import termios; print(termios)"); <=== Fails here; can't find "termios" module }
Expected behavior: [What you expected to happen] I expect to run successfully like when executed from command-line Actual behavior: [What actually happened] Failed; could not "termios" module
Versions
Version: 3.4.0
The termios module has not been implemented. See https://github.com/IronLanguages/ironpython3/issues/1308
Thanks for the response.Sent from my iPhoneOn Jun 22, 2023, at 8:01 AM, slozier @.***> wrote: The termios module has not been implemented. See #1308
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>