IronLanguages / IronLanguages/ironpython3
import pty module causes ImportException: No module named 'termios'
Open
Nobody has claimed this yet.
posix
- Dominant language
- C#
- Stars
- 2.8k
- Forks
- 316
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 1
Description
Prerequisites
- [ Y ] Are you running the latest version?
- [ Y ] Are you reporting to the correct repository?
- [ Y ] Did you perform a cursory search?
Description
var engine = Python.CreateEngine();
engine.SetSearchPaths(new []{ "/app/.lib" });
var scope = engine.CreateScope();
scope.ImportModule("pty");
engine.Execute(@"# Some python", scope);
Expected behavior: Imports work and python executes
Actual behavior: Unhandled exception. IronPython.Runtime.Exceptions.ImportException: No module named 'termios'
Versions
Nuget 3.4.0-alpha1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the shown C# embedding example on IronPython 3.4.0-alpha1, then trace the pty import and missing termios dependency. Confirm the relevant platform behavior and add or update coverage for the import so the example imports and executes without ImportException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, python
- Domain
- backend, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100