kiwiz / keep-cli

Terminal-based Google Keep
37 stars 7 forks source link

NameError: name 'fcntl' is not defined #11

Closed ooker777 closed 1 year ago

ooker777 commented 1 year ago

Here is the log I get when running keep tui:

Username: ganuongphap@gmail.com
[INFO] Authenticating with token
WARNING:root:Unable to find state file: C:\Users\ganuo/.keep\ganuongphap@gmail.com.json
[INFO] Success
INFO:keep-cli:Success
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\ganuo\AppData\Local\Programs\Python\Python311\Scripts\keep.exe\__main__.py", line 7, in <module>
  File "C:\Users\ganuo\AppData\Local\Programs\Python\Python311\Lib\site-packages\keep_cli\__main__.py", line 190, in main
    args.func(args, keep, config)
  File "C:\Users\ganuo\AppData\Local\Programs\Python\Python311\Lib\site-packages\keep_cli\commands.py", line 44, in tui
    app.run()
  File "C:\Users\ganuo\AppData\Local\Programs\Python\Python311\Lib\site-packages\keep_cli\application.py", line 132, in run
    loop = urwid.MainLoop(self, constants.Palette)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ganuo\AppData\Local\Programs\Python\Python311\Lib\site-packages\urwid\main_loop.py", line 115, in __init__
    screen = raw_display.Screen()
             ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ganuo\AppData\Local\Programs\Python\Python311\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

Python 3.11.3 on Windows 11.

ooker777 commented 1 year ago

duplicated of #10