ID 382566 - The tty.py Python module is not importing in Windows

Follow

Problem summary
The tty.py Python module is not importing in Windows


Customer reported version

4.2v1


Customer reported platform
windows10


Steps to reproduce

 

1) Open Mari and the Python Console 

2) Try to import the tty module 

import tty

Result: the module is not loading and Mari returns the following error


>>> import tty

Traceback (most recent call last):

File "<string>", line 1, in <module>

File "C:\Program Files\Mari4.2v2\Bundle\bin\lib\tty.py", line 5, in <module>

from termios import *

ImportError: No module named termios



Workaround
Unknown


Reproduced by support
This bug has been reproduced in:

Mari 4.2v2 - Windows 10 

Mari 3.0v1 - Windows 10 

Mari 2.6v5 - Windows 10 


Unable to reproduce bug in:
4.2v2 - CentOS 6.9

3.4v2 - OSX 10.12.6 


Earliest version tested
2.6v5 - This issue appears to be in all versions of the product

Expected behaviour
The tty module is shipped with Mari and should import regardless of the OS used


Actual behaviour

The tty module is returning an error on Windows OS  

    We're sorry to hear that

    Please tell us why