dpkg configuration fails

Bug #92163 reported by Jan Groenewald
2
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/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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.