At first I've got following errors after upgrade.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-scipy is already the newest version (1.3.3-3build1).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up python3-scipy (1.3.3-3build1) ...
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering 
(buffering=1) isn't supported in binary mode, the default buffer size will be 
used
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
Traceback (most recent call last):
  File "/usr/lib/python3.8/py_compile.py", line 197, in main
    compile(filename, doraise=True)
  File "/usr/lib/python3.8/py_compile.py", line 142, in compile
    source_bytes = loader.get_data(file)
  File "<frozen importlib._bootstrap_external>", line 972, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 
'/usr/lib/python3/dist-packages/scipy/_lib/decorator.py'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.8/py_compile.py", line 218, in <module>
    sys.exit(main())
  File "/usr/lib/python3.8/py_compile.py", line 204, in main
    if quiet < 2:
NameError: name 'quiet' is not defined
dpkg: error processing package python3-scipy (--configure):
 installed python3-scipy package post-installation script subprocess returned 
error exit status 1
Errors were encountered while processing:
 python3-scipy
E: Sub-process /usr/bin/dpkg returned an error code (1)


Then I fixed py_compile.py for quiet. Tried to upgrade again got
following errors:

/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering 
(buffering=1) isn't supported in binary mode, the default buffer size will be 
used
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
[Errno 2] No such file or directory: 
'/usr/lib/python3/dist-packages/scipy/_lib/decorator.py'
dpkg: error processing package python3-scipy (--configure):
 installed python3-scipy package post-installation script subprocess returned 
error exit status 1
Errors were encountered while processing:
 python3-scipy
E: Sub-process /usr/bin/dpkg returned an error code (1)


Then tried to check for decorator which is present 
dpkg -L python3-decorator
/.
/usr
/usr/lib
/usr/lib/python3
/usr/lib/python3/dist-packages
/usr/lib/python3/dist-packages/decorator-4.3.0.egg-info
/usr/lib/python3/dist-packages/decorator-4.3.0.egg-info/PKG-INFO
/usr/lib/python3/dist-packages/decorator-4.3.0.egg-info/dependency_links.txt
/usr/lib/python3/dist-packages/decorator-4.3.0.egg-info/not-zip-safe
/usr/lib/python3/dist-packages/decorator-4.3.0.egg-info/pbr.json
/usr/lib/python3/dist-packages/decorator-4.3.0.egg-info/top_level.txt
/usr/lib/python3/dist-packages/decorator.py

-- 
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/hundredpapercuts/+bug/1621803/+subscriptions

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

Reply via email to