Reputation: 5844
hangups in windows not working..
cygwin is also installed
NameError: name 'fcntl' is not defined
Traceback (most recent call last):
File "C:\Users\Smart\AppData\Local\Programs\Python\Python35-32\Scripts\hangups-script.py", line 9, in <module>
load_entry_point('hangups==0.4.1', 'console_scripts', 'hangups')()
File "c:\users\smart\appdata\local\programs\python\python35-32\lib\site-packages\hangups\ui\__main__.py", line 988, in main
}, col_scheme, palette_colors, datetimefmt, notifier
File "c:\users\smart\appdata\local\programs\python\python35-32\lib\site-packages\hangups\ui\__main__.py", line 87, in __init__
event_loop=urwid.AsyncioEventLoop(loop=loop)
File "c:\users\smart\appdata\local\programs\python\python35-32\lib\site-packages\urwid\main_loop.py", line 111, in __init__
screen = raw_display.Screen()
File "c:\users\smart\appdata\local\programs\python\python35-32\lib\site-packages\urwid\raw_display.py", line 89, in __init__
fcntl.fcntl(self._resize_pipe_rd, fcntl.F_SETFL, os.O_NONBLOCK)
NameError: name 'fcntl' is not defined
Upvotes: 0
Views: 666
Reputation: 28188
As @simonzack pointed out, you need to use Python for Cygwin.
You may have either installed from a Windows shell, you may not have installed Python for Cygwin, or you may have a Windows Python earlier in your path than the Cygwin one.
Do a which
or type
in your shell to determine what the path is to your Python installation that your calling. Make sure it's coming from a Cygwin path not a Windows installation.
Upvotes: 1
Reputation: 1494
The code you are using (or module you are calling) use fcntl
.
The incriminated module or line in your code that uses the fcntl module from the standard library will cause an error because this function is available only on Linux.
If you are able to locate the origin of the error, you will solve it either by using another function or module.
Upvotes: 2