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

Import termios not loading on Linux from Iron Python #1693

Open
3 tasks
kingCottonMem opened this issue Jun 21, 2023 · 2 comments
Open
3 tasks

Import termios not loading on Linux from Iron Python #1693

kingCottonMem opened this issue Jun 21, 2023 · 2 comments

Comments

@kingCottonMem
Copy link

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

  1. [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

@slozier
Copy link
Contributor

slozier commented Jun 22, 2023

The termios module has not been implemented. See #1308

@kingCottonMem
Copy link
Author

kingCottonMem commented Jun 22, 2023 via email

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

No branches or pull requests

2 participants