This command fixed it for me. It reinstall the python 2 and 3 decorator
package.

apt install --reinstall python\*-decorator


# Explanation:

On Debian place or python3 packages (/usr/lib/python3/dist-packages/)
the scipy/_lib/decorator module is a symlink to the decorator module it
self.

/usr/lib/python3/dist-packages/scipy/_lib# ls -l decorator.py 
lrwxrwxrwx 1 root root 18 Sep 25 06:25 decorator.py -> ../../decorator.py

The package python-decorator and python3-decorator is a requirement for
python-scipy and python3-scipy. According to apt, these decorator
packages are installed. I checked the installed files with:

# dpkg -L python3-decorator
/.
/usr
/usr/lib
/usr/lib/python3
/usr/lib/python3/dist-packages
/usr/lib/python3/dist-packages/decorator.py
/usr/lib/python3/dist-packages/decorator-4.0.6.egg-info
(...)

But the file /usr/lib/python3/dist-packages/decorator.py was missing.
Something in my system should (the user perhaps) should have messed with
it. After I forced the reinstall of this packages, it came back to work
again. But it's really strange this file gone missing.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1621803

Title:
  package python3-scipy 0.17.0-1 failed to install/upgrade: subprocess
  installed post-installation script returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-scipy/+bug/1621803/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to