Public bug reported:

Binary package hint: python-scipy

Do you want to continue [Y/n]? y
Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 37, in <module>
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.5/locale.py", line 476, in setlocale
    return _setlocale(category, locale)
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/python2.5/site-packages/scipy/sandbox/montecarlo/montecarlo.py ...
  File 
"/usr/lib/python2.5/site-packages/scipy/sandbox/montecarlo/montecarlo.py", line 
8
    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/python2.5/site-packages/scipy/sandbox/montecarlo/montecarlo.py
just before From future import division, allows the dpkg --configure 
python-scipy to complete

** Affects: python-scipy (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
dpkg configuration fails
https://launchpad.net/bugs/92163

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

Reply via email to