targetcli aborts with the error message "NameError: name 'readline' is not defined" when running in interactive shell mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-configshell-fb (Debian) |
Fix Released
|
Unknown
|
|||
python-configshell-fb (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Triaged
|
High
|
Unassigned |
Bug Description
Reproduced with python3-
Test script (in a directory with Symfony 3.4.1 pulled in via Composer)
-------
<?php
include 'vendor/
$process = new \Symfony\
$process-
$process-
var_dump(
-------
Actual output
-------
PHP Fatal error: Uncaught Symfony\
Exit Code: 1(General error)
Working directory: /home/matt/
Output:
================
targetcli shell version 2.1.fb43
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
Error Output:
================
Traceback (most recent call last):
File "/usr/lib/
old_completer = readline.
NameError: name 'readline' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
shell.
File "/usr/lib/
readline.
NameError: name 'readline' is not defined
in /home/matt/
-------
Expected output
-------
string(1324) "targetcli shell version 2.1.fb43
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
/> o- / .......
o- backstores .......
| o- block .......
| o- fileio .......
| o- pscsi .......
| o- ramdisk .......
o- iscsi .......
o- loopback .......
o- vhost .......
/> exit
"
-------
I assume the package version 1.1.20 correpsonds to the project's 1.1fb20 tag on GitHub.
This bug was fixed in this commit and released in 1.1fb23: https:/
The latest tagged version is 1.1fb24.
Changed in python-configshell-fb (Debian): | |
status: | Unknown → Fix Released |
Changed in python-configshell-fb (Ubuntu Bionic): | |
status: | New → Triaged |
importance: | Undecided → High |
I filed a bug with Debian, as well. It turns out they've already got a package 1.1.24-1 package pending upload to universe. https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 901484# 17