[Ifeffit] Larch-0.9.24 with Python2

Matthias Filez Matthias.Filez at ugent.be
Tue Nov 4 04:39:30 CST 2014

Dear mailing list user,

When running an example file of Larch-0.9.24 with Python2 on Ubuntu x86_64, the following error was reported.
  File "Py_usinglarch.py", line 32, in <module>
    autobk(xafsdat.energy, xafsdat.mu, rbkg=1.0, _larch=my_larch)
  File "/usr/local/lib/python2.7/dist-packages/larch/__init__.py", line 37, in wrapper
    return fcn(*args, **keywords)
  File "/usr/share/larch/plugins/xafs/autobk.py", line 187, in autobk
  File "/usr/local/lib/python2.7/dist-packages/larch/fitting/minimizer.py", line 395, in leastsq
    lsout = leastsq(self.__residual, self.vars, **lskws)
  File "/usr/local/lib/python2.7/dist-packages/larch/fitting/minimizer.py", line 222, in leastsq
    shape, dtype = _check_func('leastsq', 'func', func, x0, args, n)
ValueError: need more than 1 value to unpack

Is Larch-0.9.24 compatible with Python2 on Ubuntu x86_64? If not, what packages and dependencies could we install to make it work on Python2? Or is Larch-0.9.24 only compatible with Python3?

Many thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://millenia.cars.aps.anl.gov/pipermail/ifeffit/attachments/20141104/d09d2399/attachment.html>

More information about the Ifeffit mailing list