[Bug 1822564] Re: package python-markdown 2.4-1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
Andreas Hasenack
andreas at canonical.com
Wed Apr 3 13:16:54 UTC 2019
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 at nsnx:~$ cat foo.py
try:
print("Hello")
except Exception, e:
print("Oops")
andreas at nsnx:~$ python2 ./foo.py
Hello
andreas at nsnx:~$ python3 ./foo.py
File "./foo.py", line 3
except Exception, e:
^
SyntaxError: invalid syntax
andreas at 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
Server, which is subscribed to python-markdown in 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
More information about the Ubuntu-server-bugs
mailing list