Skip to content

Fcntl not found issue in windows #185

Open
@dondon1993

Description

Hi,

I'm not sure whether this issue has been brought up. I tried using socli in windows terminal. When I typed 'socli -iq html error 404' and made a selection, it just outputs 'Exiting'. I turned on the DEBUG mode and found the error message:

Error name: Name not found globally.

Description: name 'fcntl' is not defined

Traceback (most recent call last):
  File "E:\ANACONDA\lib\site-packages\socli-4.0-py3.6.egg\socli\search.py", line 193, in socli_interactive_windows
    socli.printer.display_results(so_url + question_local_url[op - 1])
  File "E:\ANACONDA\lib\site-packages\socli-4.0-py3.6.egg\socli\printer.py", line 219, in display_results
    tui.MAIN_LOOP = tui.EditedMainLoop(tui.question_post, palette)
  File "E:\ANACONDA\lib\site-packages\urwid\main_loop.py", line 115, in __init__
    screen = raw_display.Screen()
  File "E:\ANACONDA\lib\site-packages\urwid\raw_display.py", line 92, in __init__
    fcntl.fcntl(self._resize_pipe_rd, fcntl.F_SETFL, os.O_NONBLOCK)
NameError: name 'fcntl' is not defined

It seems due to windows doesn't natively support urwid library. I don't know whether we have a solution for this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions