- changed status to resolved
Importing peakutils fails.
Python 2.7.6
scipy.version.version '0.16.0.dev0+653593b'
import peakutils
File "/Users/anz/Documents/Andy/programming/dev2/lib/python2.7/site-packages/peakutils/peak.py", line 110 params, *_ = optimize.curve_fit(gaussian, x, y, initial) ^ SyntaxError: invalid syntax
Comments (8)
-
repo owner -
I have python 2.7.9 and I have the same import error 3 mins ago:))
File "/usr/local/lib/python2.7/dist-packages/PeakUtils-1.0.0-py2.7.egg/peakutils/peak.py", line 110 params, *_ = optimize.curve_fit(gaussian, x, y, initial)
-
repo owner Python 2 incompatibility was fixed, but I have not releaset (yet) a new version (will do it soon).
-
Hi,
I still have similar problem (Anaconda, Spider, Python 2.7). How this issue is resolved ?
-
repo owner Hi, it was working in git HEAD, but I did not published a new version. I've pushed a new version to pypi that includes the fix for Python 2 (v 1.0.1). It should be working now.
-
Hi,
Great ! Thanks !
I have another problem with function:
peakutils.plot(x, y, indexes)
I try to redo an example from here: http://pythonhosted.org/PeakUtils/tutorial_a.html
and got followind error:
TypeError: 'module' object is not callable
Do you have any idea why ?
Thank you in advance,
-
repo owner Hi,
I've just tested the tutorial with both Python 2.7 and Python 3.4, and could not reproduce your problem. Could you send me a minimal test case that reproduces the problem?
-
Hi,
It seems that there is inconsistency between two toutorials.
In Line 17 of first example there is peakutils.plot(x, y, indexes) and in the latter pplot(x,y, indexes). The second one works fine.
Thank you for your contribution !!! btw. now the one with peakutils.plot(x, y, indexes) is gone (weird)
- Log in to comment
Fixed. Python 2.7 compatibility added.