Thanks for taking the time to file this bug in Ubuntu.
I see this in the logs:
Preparing to unpack .../python-markdown_2.4-1ubuntu0.14.04.1_all.deb ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
That is an error that happens when python3 runs that particular
construct that was allowed in python 2. For example:
andreas@nsnx:~$ cat foo.py
try:
print("Hello")
except Exception, e:
print("Oops")
andreas@nsnx:~$ python2 ./foo.py
Hello
andreas@nsnx:~$ python3 ./foo.py
File "./foo.py", line 3
except Exception, e:
^
SyntaxError: invalid syntax
andreas@nsnx:~$
Seeing that you are on ubuntu trusty, quite old, I wonder if you
installed python3 by hand and made it default in your system?
What does /usr/bin/python --version return?
Does pyclean run from the shell? Like:
pyclean --help
** Changed in: python-markdown (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1822564
Title:
package python-markdown 2.4-1 failed to install/upgrade: subprocess
new pre-removal script returned error exit status 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-markdown/+bug/1822564/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs