Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'fcntl' is not defined #10

Open
chaoscreater opened this issue Mar 31, 2023 · 1 comment
Open

NameError: name 'fcntl' is not defined #10

chaoscreater opened this issue Mar 31, 2023 · 1 comment

Comments

@chaoscreater
Copy link

Does this work on Windows? I can login successfully, but then get the following errors:

image

https://stackoverflow.com/questions/54357073/nameerror-name-fcntl-is-not-defined-when-using-urwid-on-windows

@ooker777
Copy link

ooker777 commented Aug 26, 2023

Here is the log I get when running keep tui:

Username: [email protected]
[INFO] Authenticating with token
WARNING:root:Unable to find state file: C:\Users\ganuo/.keep\[email protected]
[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.

I then try using WSL and this is what I get: jaraco/keyring#647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants