I am using the ansible_vault module and its construction throws an Exception when used in a textial app #6213
Answered
by
TomJGooding
schnoberts1
asked this question in
Q&A
-
|
The code: The exception (when I press 'a'): ValueError: file descriptor cannot be a negative integer (-1) I think it's related to this in the Ansible module: Versions I am running this on a Mac. |
Beta Was this translation helpful? Give feedback.
Answered by
TomJGooding
Nov 7, 2025
Replies: 1 comment 1 reply
-
|
I have a workaround, I use the ansible module’s vault API but I guess this interop with curses is an issue? Anyway, if you feel it isn’t feel free to close. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Glad you managed to find a workaround.
I'm not familiar with any of these ansible packages, but it really isn't surprising that trying to mix Textual and curses doesn't work.
curses.setupterm()presumably checks the terminal is suitable to run a curses application, which of course it won't be when there's already a terminal application running with Textual (or any other TUI).