Package: python3-invoke
Version: 3.0.3+ds-1
Severity: important
Tags: upstream patch
X-Debbugs-Cc: [email protected]
Control: forwarded -1 https://github.com/pyinvoke/invoke/issues/1070
Hey,
When I run a command with pty=True, that needs input, I see a
SystemError after the first pressed character.
example (tasks.py):
@tasks
def check(c):
c.run("sudo echo 'huhu'", pty=True)
$invoke --debug check
[...]
invoke.executor.execute: Finished loading collection & shell env configs
[sudo] password for hefee:
[press first character] invoke.util.run: Encountered exception
SystemError('buffer overflow') in thread for 'handle_stdin'
I checked and this issue is tracked upstream in
https://github.com/pyinvoke/invoke/issues/1070
there is a pull requests open that fixes it:
https://github.com/pyinvoke/invoke/pull/1077
With fixing terminals.py, the issue is gone.
-- System Information:
Debian Release: forky/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (100,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 7.1.7+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-invoke depends on:
ii python3 3.14.6-1
ii python3-yaml 6.0.3-1
python3-invoke recommends no packages.
python3-invoke suggests no packages.