• optimize.py issues with stretch and jessie

    From Francesco Pietra@21:1/5 to All on Sat Apr 29 18:00:01 2017
    --f4030438efd8ce1a49054e4f5f86
    Content-Type: text/plain; charset=UTF-8

    With stretch:

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

    With jessie:

    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

    So, wherever one goes, a wall is found, or is that a wall for me alone?

    francesco pietra

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

    <div dir="ltr">With stretch:<br><br>File &quot;/usr/lib/python2.7/dist-packages/scipy/optimize/optimize.py&quot;, line 769<br>    with warnings.catch_warnings():<br>                     ^<br>SyntaxError: invalid syntax<br><div>_____
    ____________<br><br></div><div>With jessie:<br><br>File &quot;/usr/lib/python2.7/dist-packages/scipy/optimize/optimize.py&quot;, line 17<br>
    from <strong>future</strong> import division, print_function, absolute_import<br>
    SyntaxError: future feature print_function is not defined<br><br></div><div>So, wherever one goes, a wall is found, or is that a wall for me alone?<br><br></div><div>francesco pietra<br></div><div><br></div></div>

    --f4030438efd8ce1a49054e4f5f86--

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lennart Sorensen@21:1/5 to Francesco Pietra on Mon May 1 18:00:01 2017
    On Sat, Apr 29, 2017 at 10:54:59AM -0400, Francesco Pietra wrote:
    With stretch:

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

    The only way I can think of that makes that a syntax error would be an
    actual error on an earlier line that confused the parser.

    _________________

    With jessie:

    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

    So, wherever one goes, a wall is found, or is that a wall for me alone?

    Probably not too many people running scipy in general.

    Running the testsuite is probably worthwhile:

    python -c 'import numpy; numpy.test("full");'
    python -c 'import scipy; scipy.test("full");'

    If it passes, you are probably set to go, and otherwise something probably needs fixing.

    Trying on sid, numpy had 2 errors when I tried, but those might be
    that the test had to be run in a specific place with some data file.
    I didn't check. It complained about not finding a file with some
    extension (that it didn't bother to say what was).

    --
    Len Sorensen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lennart Sorensen@21:1/5 to Francesco Pietra on Mon May 1 22:30:02 2017
    On Mon, May 01, 2017 at 08:11:45PM +0200, Francesco Pietra wrote:
    Hi Lennart:
    I solved the problem of importing python module scipy.optimize by
    installing Anaconda2. That worked with the drug-hunting software with both debian8 and debian9. I was short of time and, most importantly, probably incapable of understanding why debian python did not work. Of course those (and other errors) arise by merely commanding

    python
    imprt scipy.optimize

    thanks for your suggestions

    Well at least you are then running it the way the authors of scipy expect, which should then work quite well.

    --
    Len Sorensen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Francesco Pietra@21:1/5 to lsorense@csclub.uwaterloo.ca on Mon May 1 21:20:01 2017
    --f403045f75a02781cb054e7a5b82
    Content-Type: text/plain; charset=UTF-8

    Hi Lennart:
    I solved the problem of importing python module scipy.optimize by
    installing Anaconda2. That worked with the drug-hunting software with both debian8 and debian9. I was short of time and, most importantly, probably incapable of understanding why debian python did not work. Of course those
    (and other errors) arise by merely commanding

    python
    imprt scipy.optimize

    thanks for your suggestions

    francesco

    On Mon, May 1, 2017 at 4:54 PM, Lennart Sorensen < lsorense@csclub.uwaterloo.ca> wrote:

    On Sat, Apr 29, 2017 at 10:54:59AM -0400, Francesco Pietra wrote:
    With stretch:

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

    The only way I can think of that makes that a syntax error would be an
    actual error on an earlier line that confused the parser.

    _________________

    With jessie:

    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

    So, wherever one goes, a wall is found, or is that a wall for me alone?

    Probably not too many people running scipy in general.

    Running the testsuite is probably worthwhile:

    python -c 'import numpy; numpy.test("full");'
    python -c 'import scipy; scipy.test("full");'

    If it passes, you are probably set to go, and otherwise something probably needs fixing.

    Trying on sid, numpy had 2 errors when I tried, but those might be
    that the test had to be run in a specific place with some data file.
    I didn't check. It complained about not finding a file with some
    extension (that it didn't bother to say what was).

    --
    Len Sorensen


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

    <div dir="ltr"><div><div><div><div><div>Hi Lennart:<br></div>I  solved the problem of importing python module scipy.optimize by installing Anaconda2. That worked with the drug-hunting software with both debian8 and debian9. I was short of time and, most
    importantly, probably incapable of understanding why debian python did not work. Of course those (and other errors) arise by merely commanding<br><br></div>python<br></div>&gt;&gt;&gt;imprt scipy.optimize<br><br></div>thanks for your suggestions<br><br></
    francesco<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 1, 2017 at 4:54 PM, Lennart Sorensen <span dir="ltr">&lt;<a href="mailto:lsorense@csclub.uwaterloo.ca" target="_blank">lsorense@csclub.uwaterloo.ca</a>&gt;</span>
    wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Apr 29, 2017 at 10:54:59AM -0400, Francesco Pietra wrote:<br>
    &gt; With stretch:<br>
    &gt;<br>
    &gt; File &quot;/usr/lib/python2.7/dist-<wbr>packages/scipy/optimize/<wbr>optimize.py&quot;, line 769<br>
    &gt;     with warnings.catch_warnings():<br>
    &gt;                      ^<br>
    &gt; SyntaxError: invalid syntax<br>

    The only way I can think of that makes that a syntax error would be an<br> actual error on an earlier line that confused the parser.<br>

    &gt; _________________<br>
    &gt;<br>
    &gt; With jessie:<br>
    &gt;<br>
    &gt; File &quot;/usr/lib/python2.7/dist-<wbr>packages/scipy/optimize/<wbr>optimize.py&quot;, line 17<br>
    &gt; from *future* import division, print_function, absolute_import<br>
    &gt; SyntaxError: future feature print_function is not defined<br>
    &gt;<br>
    &gt; So, wherever one goes, a wall is found, or is that a wall for me alone?<br>

    Probably not too many people running scipy in general.<br>

    Running the testsuite is probably worthwhile:<br>

    python -c &#39;import numpy; numpy.test(&quot;full&quot;);&#39;<br>
    python -c &#39;import scipy; scipy.test(&quot;full&quot;);&#39;<br>

    If it passes, you are probably set to go, and otherwise something probably<br> needs fixing.<br>

    Trying on sid, numpy had 2 errors when I tried, but those might be<br>
    that the test had to be run in a specific place with some data file.<br>
    I didn&#39;t check.  It complained about not finding a file with some<br> extension (that it didn&#39;t bother to say what was).<br>
    <span class="HOEnZb"><font color="#888888"><br>
    --<br>
    Len Sorensen<br>
    </font></span></blockquote></div><br></div>

    --f403045f75a02781cb054e7a5b82--

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