sudo-for-cygwin icon indicating copy to clipboard operation
sudo-for-cygwin copied to clipboard

importing `fcntl` and `termios`

Open jacob-roth opened this issue 7 years ago • 3 comments

Hi, I'm having issues with steps 8 & 9. When I run $ python sudoserver.py from Cygwin after navigating to its location, I receive the following error message:

Traceback (most recent call last): File "sudoserver.py", line 4, in import fcntl ImportError: No module named fcntl

and similarly for termios if I comment out fcntl.

Is this something I've done wrong? I'm running Windows 7. Thanks!

jacob-roth avatar Jun 25 '17 03:06 jacob-roth

I'm having the same issue on win 10. I did a little bit of research and found this stackoverflow post that suggests the fcntl module is not available on windows.

JerellDR avatar Nov 10 '17 18:11 JerellDR

Well I've already abandoned this project, but I guess you guys are just not running Cygwin python. Try running: python -c "import sys; print(sys.platform)" If it is Cygwin python, it will say "cygwin". Otherwise you will get "win32".

nu774 avatar Nov 11 '17 14:11 nu774

Hi Experts,

i am having below error while installing the netmiko Can you please help me ?

c:>python Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (In tel)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import netmiko Traceback (most recent call last): File "", line 1, in File "c:\Python27\lib\site-packages\netmiko_init_.py", line 8, in from netmiko.ssh_dispatcher import ConnectHandler File "c:\Python27\lib\site-packages\netmiko\ssh_dispatcher.py", line 4, in from netmiko.a10 import A10SSH File "c:\Python27\lib\site-packages\netmiko\a10_init_.py", line 2, in from netmiko.a10.a10_ssh import A10SSH File "c:\Python27\lib\site-packages\netmiko\a10\a10_ssh.py", line 4, in from netmiko.cisco_base_connection import CiscoSSHConnection File "c:\Python27\lib\site-packages\netmiko\cisco_base_connection.py", line 3, in from netmiko.base_connection import BaseConnection File "c:\Python27\lib\site-packages\netmiko\base_connection.py", line 24, in < module> from netmiko.utilities import write_bytes, check_serial_port, get_structured _data File "c:\Python27\lib\site-packages\netmiko\utilities.py", line 9, in

import clitable

File "c:\Python27\lib\site-packages\clitable.py", line 34, in import texttable File "c:\Python27\lib\site-packages\texttable.py", line 34, in import terminal File "c:\Python27\lib\site-packages\terminal.py", line 34, in import termios ImportError: No module named termios

pawanpanchal2017 avatar Mar 27 '18 18:03 pawanpanchal2017