Asumes Python 3 version of subprocess module
Bug #689127 reported by
Fernando Brucher
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pydf (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: pydf
In line 63:
def get_terminal_
c = subprocess.
The call to subprocess.
But the 1st line is: #! /usr/bin/python
Thus assuming the system default Python version is 3.
There's another call to subprocess in line 293, which is also invalid.
I fixed my script by changing the 1st line to:
#! /usr/bin/python3
But the package dependencies only require python >= 2.2, so this is clearly not a valid fix.
To post a comment you must log in.
Package erroneously wants to force install of Python 2 if only Python 3 is installed on system, the fix should rather be to remove the Python 2 dependencies.