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 When I run redial on windows 11 #51

Closed
realWilliamChin opened this issue Aug 5, 2021 · 3 comments

Comments

@realWilliamChin
Copy link

realWilliamChin commented Aug 5, 2021

Describe the bug
PS C:\Users\realf> redial
Traceback (most recent call last):
File "c:\users\realf\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File "c:\users\realf\appdata\local\programs\python\python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\realf\AppData\Local\Programs\Python\Python38\Scripts\redial.exe_main
.py", line 7, in
File "c:\users\realf\appdata\local\programs\python\python38\lib\site-packages\redial_main
.py", line 7, in main
sys.exit(run())
File "c:\users\realf\appdata\local\programs\python\python38\lib\site-packages\redial\redial.py", line 153, in run
app = RedialApplication()
File "c:\users\realf\appdata\local\programs\python\python38\lib\site-packages\redial\redial.py", line 38, in init
screen = urwid.raw_display.Screen()
File "c:\users\realf\appdata\local\programs\python\python38\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
PS C:\Users\realf> redial
Traceback (most recent call last):
File "c:\users\realf\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File "c:\users\realf\appdata\local\programs\python\python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\realf\AppData\Local\Programs\Python\Python38\Scripts\redial.exe_main
.py", line 7, in
File "c:\users\realf\appdata\local\programs\python\python38\lib\site-packages\redial_main
.py", line 7, in main
sys.exit(run())
File "c:\users\realf\appdata\local\programs\python\python38\lib\site-packages\redial\redial.py", line 153, in run
app = RedialApplication()
File "c:\users\realf\appdata\local\programs\python\python38\lib\site-packages\redial\redial.py", line 38, in init
screen = urwid.raw_display.Screen()
File "c:\users\realf\appdata\local\programs\python\python38\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

To Reproduce
Steps to reproduce the behavior:

  1. pip3 install redial
  2. run redial command in powershell

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11 latest version
  • python version: 3.8.10
  • redial version: 0.8
  • urwid version: 2.1.2
@fatihbaltaci
Copy link
Collaborator

Hi, Windows is not supported but you can use WSL (Windows Subsystem for Linux) on Windows.

https://github.com/taypo/redial#platforms

@realWilliamChin
Copy link
Author

Hi, Windows is not supported but you can use WSL (Windows Subsystem for Linux) on Windows.

https://github.com/taypo/redial#platforms

Thank you very much. That detail escaped my notice. 😆

@realWilliamChin
Copy link
Author

Do not support windows

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