python-scipy install fails due to error in montecarlo.py

Bug #92135 reported by CTW
14
Affects Status Importance Assigned to Milestone
python-scipy (Ubuntu)
Fix Released
Undecided
William Grant

Bug Description

Binary package hint: python-scipy

When trying to install python-scipy the below error results. The error can be fixed by manually editing
/usr/lib/python2.5/site-packages/scipy/sandbox/montecarlo/montecarlo.py so that the import statements appear before the rest of the code.

$ sudo apt-get install python-scipy
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-scipy is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
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)

ProblemType: Bug
Architecture: i386
Date: Wed Mar 14 01:06:23 2007
DistroRelease: Ubuntu 7.04
Uname: Linux knecht 2.6.20-9-generic #2 SMP Mon Feb 26 03:01:44 UTC 2007 i686 GNU/Linux

William Grant (wgrant)
Changed in python-scipy:
assignee: nobody → fujitsu
status: Unconfirmed → In Progress
Revision history for this message
Peter Würtz (pwuertz) wrote :

indeed... I experienced this bug on 2 different systems running feisty

the python-scipy package has beed updated yesterday?

Revision history for this message
Peter Würtz (pwuertz) wrote :

ok... i fixed this future import line in this python-scipy package...

Revision history for this message
William Grant (wgrant) wrote : Re: [Bug 92135] Re: python-scipy install fails due to error in montecarlo.py

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  status fixcommitted

Peter Würtz wrote:
> ok... i fixed this future import line in this python-scipy package...
>
> ** Attachment added: "fixed import line in python-scipy_0.5.2-7ubuntu1_i386.deb"
> http://librarian.launchpad.net/6793530/python-scipy_0.5.2-7ubuntu2_i386.deb

Thanks, but I've already uploaded a fix. In future, can you please
attach a debdiff? A .deb is no use.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF96zYAc+S8KckfcURAhI4AJ9nVXvkkA55i7wdZ+yZ4gubVzffHgCeKqhH
PIzUm1UwpfDkuVTgcKQD/0U=
=hEG4
-----END PGP SIGNATURE-----

William Grant (wgrant)
Changed in python-scipy:
status: In Progress → Fix Committed
Revision history for this message
William Grant (wgrant) wrote : Re: [Bug 92135] Re: python-scipy install fails due to error in montecarlo.py

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  status fixreleased

Build successfully on all architectures.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF9+DKAc+S8KckfcURAovWAJ40x3azFykf7P1lswlzcwvKre+HCACfZY2+
KwxnV7KRBErSj1YdBjocOH4=
=FH34
-----END PGP SIGNATURE-----

Changed in python-scipy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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