• Fwd: Probmes in running scipy with amd64

    From Lennart Sorensen@21:1/5 to Francesco Pietra on Mon May 1 17:50:02 2017
    On Sun, Apr 30, 2017 at 06:59:56AM -0400, Francesco Pietra wrote:
    All python bugs solved by installing Anaconda2. The drug-hunting software
    is running in Debian9 (stretch) on Anaconda2 python.

    Or another way of looking at it:

    All scipy bugs worked around by giving it exactly the version of
    everything that it assumes.

    scipy is not very robust when it comes to dealing with variations in
    python library versions.

    My impression is that the scientific software in general does not spend
    time on making things portable, as long as it works in the one environment
    they work in. Anything more would be time wasted that could have been
    spent on something else.

    --
    Len Sorensen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Francesco Pietra@21:1/5 to All on Sun Apr 30 14:10:02 2017
    --f403045ec6460eba1b054e603568
    Content-Type: text/plain; charset=UTF-8

    All python bugs solved by installing Anaconda2. The drug-hunting software
    is running in Debian9 (stretch) on Anaconda2 python.

    francesco pietra
    ---------- Forwarded message ----------
    From: Francesco Pietra <chiendarret@gmail.com>
    Date: Sun, Apr 30, 2017 at 3:00 AM
    Subject: Probmes in running scipy with amd64
    To: amd64 Debian <debian-amd64@lists.debian.org>


    Since a few days I am trying to get scipy support to a drug-hunting code. I first used a clean jessie (scipy 14), installing

    apt-get install python-numpy python-scipy

    whereby, on running the drug hunting code, I got the scipy error:

    File "/usr/lib/python2.7/dist-packages/scipy/optimize/optimize.py", line 17
    from *future* import division, print_function, absolute_import
    SyntaxError: future feature print_function is not defined


    Then I installed other packages (huge installation), as indicated on the
    web for getting a working scipy:

    apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose



    (for stretch ipython-notebook was not available, while it was for jessie)

    dropping into the same error as above.

    I assumed that the available python lacked that function. Therefore, I went
    to stretch (scipy 18), now getting the error:

    File "/usr/lib/python2.7/dist-packages/scipy/optimize/optimize.py", line 769
    with warnings.catch_warnings():
    ^
    SyntaxError: invalid syntax


    On these events, I was advised to abandon python as available in debian and installing anaconda python. Such advice seems to imply (although it was not said) that python, or pieces of python, in debian are buggy.
    Before following that advice (anaconda python, from its web presentation,
    seems more a shortcut for those not having root privilege, which is not my case), I am asking about experience in using scipy with debian, and whether there is any trick, or configuration, to be followed in its installation.

    Thanks a lot for sharing experience

    francesco pietra

    --f403045ec6460eba1b054e603568
    Content-Type: text/html; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    <div dir="ltr"><div>All python bugs solved by installing Anaconda2. The drug-hunting software is running in Debian9 (stretch) on Anaconda2 python.<br><br></div>francesco pietra<br><div><div><div class="gmail_quote">---------- Forwarded message ----------<
    From: <b class="gmail_sendername">Francesco Pietra</b> <span dir="ltr">&lt;<a href="mailto:chiendarret@gmail.com">chiendarret@gmail.com</a>&gt;</span><br>Date: Sun, Apr 30, 2017 at 3:00 AM<br>Subject: Probmes in running scipy with amd64<br>To: amd64
    Debian &lt;<a href="mailto:debian-amd64@lists.debian.org">debian-amd64@lists.debian.org</a>&gt;<br><br><br><div dir="ltr"><font size="2">Since a few days I am trying to get scipy support to a drug-hunting code. I first used a clean jessie (scipy 14),
    installing  <br></font><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><pre><font size="2"><span class="m_2533754695161112801gmail-n">apt</span><span class="m_
    2533754695161112801gmail-o">-</span><span class="m_2533754695161112801gmail-n">get</span> <span class="m_2533754695161112801gmail-n">install</span> <span class="m_2533754695161112801gmail-n">python</span><span class="m_2533754695161112801gmail-o">-</span>
    <span class="m_2533754695161112801gmail-n">numpy</span> <span class="m_2533754695161112801gmail-n">python</span><span class="m_2533754695161112801gmail-o">-</span><span class="m_2533754695161112801gmail-n">scipy</span></font></pre></blockquote><font size=
    "2">whereby, on running the drug hunting code, I got the scipy error:<br></font><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><font size="2">File &quot;/usr/lib/python2.7/dist-
    <wbr>packages/scipy/optimize/<wbr>optimize.py&quot;, line 17</font><br><font size="2">
    from <b>future</b> import division, print_function, absolute_import</font><br><font size="2">
    SyntaxError: future feature print_function is not defined</font><br></blockquote><font size="2"><br>Then I installed other packages (huge installation), as indicated on the web for getting a working scipy:<br></font><div><blockquote style="margin:0px 0px
    0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><pre><font size="2"><span class="m_2533754695161112801gmail-n">apt</span><span class="m_2533754695161112801gmail-o">-</span><span class="m_2533754695161112801gmail-n">
    get</span> <span class="m_2533754695161112801gmail-n">install</span> <span class="m_2533754695161112801gmail-n">python</span><span class="m_2533754695161112801gmail-o">-</span><span class="m_2533754695161112801gmail-n">numpy</span> <span class="m_
    2533754695161112801gmail-n">python</span><span class="m_2533754695161112801gmail-o">-</span><span class="m_2533754695161112801gmail-n">scipy</span> <span class="m_2533754695161112801gmail-n">python</span><span class="m_2533754695161112801gmail-o">-</span>
    <span class="m_2533754695161112801gmail-n">matplotlib</span> <span class="m_2533754695161112801gmail-n">ipython</span> <br><span class="m_2533754695161112801gmail-n">ipython</span><span class="m_2533754695161112801gmail-o">-</span><span class="m_
    2533754695161112801gmail-n">notebook</span> <span class="m_2533754695161112801gmail-n">python</span><span class="m_2533754695161112801gmail-o">-</span><span class="m_2533754695161112801gmail-n">pandas</span> <span class="m_2533754695161112801gmail-n">
    python</span><span class="m_2533754695161112801gmail-o">-</span><span class="m_2533754695161112801gmail-n">sympy</span> <span class="m_2533754695161112801gmail-n">python</span><span class="m_2533754695161112801gmail-o">-</span><span class="m_
    2533754695161112801gmail-n">nose </span></font></pre></blockquote><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><pre><font size="2"><span class="m_
    2533754695161112801gmail-n">(for stretch ipython-notebook was not available, while it was for jessie)</span></font></pre></blockquote>dropping into the same error as above.<br><br></div><div>I assumed that the available python lacked that function.
    Therefore, I went to stretch (scipy 18), now getting the error:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">File &quot;/usr/lib/python2.7/dist-<wbr>packages/scipy/
    optimize/<wbr>optimize.py&quot;, line 769<br>
    with warnings.catch_warnings():<br>                  ^<br> SyntaxError: invalid syntax<br></blockquote><br></div><div>On these events, I was advised to abandon python as available in debian and installing anaconda python. Such advice seems to imply (although it was not said) that python, or pieces of python, in
    debian are buggy.<br></div><div>Before following that advice (anaconda python, from its web presentation, seems more a shortcut for those not having root privilege, which is not my case), I am asking about experience in using scipy with debian, and
    whether there is any trick, or configuration, to be followed in its installation.<br><br></div><div>Thanks a lot for sharing experience<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>
    francesco pietra<br></div></font></span></div>
    </div><br></div></div></div>

    --f403045ec6460eba1b054e603568--

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)