`AttributeError` while running `macht` on Python `3.11`
Closed this issue · 2 comments
vanleefxp commented
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\litra\AppData\Local\Programs\Python\Python311\Scripts\macht.exe\__main__.py", line 7, in <module>
File "C:\Users\litra\AppData\Local\Programs\Python\Python311\Lib\site-packages\macht\term\main.py", line 93, in main
signal.signal(signal.SIGWINCH, on_resize)
^^^^^^^^^^^^^^^
AttributeError: module 'signal' has no attribute 'SIGWINCH'
I'm running this program on Windows 11 and encountered the error above.
jquast commented
I'm not sure this program is maintained (8 years since last commit!) but you can simply comment out line 93 in main.py and it should work fine
Line 93 in aac049d
vanleefxp commented
I read the documentation of the blessed
library and found out why this didn't work. This line is intended for detecting the resizing behavior of the Command Line Interface, but this detection command doesn't work on Windows, which is a compatibility issue that the blessed
library admits. After all, thanks for your prompt response.