[SciPy-dev] from scipy import maxentropy fails with Python 2.5

Lars Bittrich lars.bittrich at googlemail.com
Fri Sep 29 11:11:36 CDT 2006

Hi all,

I tried to compile scipy with Python 2.5 and Intel C++/Fortran compiler. The 
first import failed:

In [1]:from scipy import *
   File "[...]/lib/python2.5/site-packages/scipy/maxentropy/maxentropy.py", 
line 69
     from __future__ import division
<type 'exceptions.SyntaxError'>: from __future__ imports must occur at the 
beginning of the file

That problem was easy to fix just by following the instructions of that 
message in 2 files:


Is that import necessary with Python 2.5 or even Python 2.4?

Best regards,


More information about the Scipy-dev mailing list