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?
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
imprt scipy.optimize
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
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"><<a href="mailto:lsorense@csclub.uwaterloo.ca" target="_blank">lsorense@csclub.uwaterloo.ca</a>></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>
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 39:24:45 |
Calls: | 6,648 |
Files: | 12,193 |
Messages: | 5,329,316 |