dpkg configuration fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-scipy (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-scipy
Do you want to continue [Y/n]? y
Traceback (most recent call last):
File "/usr/bin/
locale.
File "/usr/lib/
return _setlocale(
locale.Error: unsupported locale setting
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up python-scipy (0.5.2-7ubuntu1) ...
Compiling /usr/lib/
File "/usr/lib/
from __future__ import division
SyntaxError: from __future__ imports must occur at the beginning of the file
pycentral: pycentral pkginstall: error byte-compiling files (793)
pycentral pkginstall: error byte-compiling files (793)
dpkg: error processing python-scipy (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
python-scipy
E: Sub-process /usr/bin/dpkg returned an error code (1)
Uncommenting the line ___author___ in /usr/lib/
just before From future import division, allows the dpkg --configure python-scipy to complete