Closed ghoffart closed 1 year ago
Good news is that I've had a similar issue in TERMUX with the in-built from ctypes.util import find_library
function and there is already a plan B in the todo list which i think it used to work with macOS too.
Is that I don't have or use macOS, and I might need some help if the plan B won't work
As of now, until I push the new release you could try the steps below for a permanent solution:
python -c 'import unicurses;print(unicurses.__path__)'
cd
into that path and just replace those 2 strings in the list mentioned below with the fixed-paths to the library files:
https://github.com/unicurses/unicurses/blob/539b8647fc2bc59761b54156a3b51cdecc062b3f/unicurses/__init__.py#L69could you run this command on your terminal and tell me what it prints:
python -c "from ctypes.util import find_library;lib_paths=[find_library('ncursesw'),find_library('panelw')];print(lib_paths)"
Found the Issue.
In the unicurses library under init.py a call is being made to get_libncursesw_paths() which in turn calls find_library from ctypes.util
lib_paths = [find_library('ncursesw'),find_library('panelw')]
The packages are named ncurses and panel in MacOSX, not ncursesw and panelw
I have a made a pull request to fix this on ur unicurses library if you'd like to check it.
Installed via:
% pip3 install TUIFIManager --upgrade
Run as:
% tuifi
Got:
… on ARM64.