Your message dated Mon, 23 Dec 2019 13:04:16 +0000
with message-id <[email protected]>
and subject line Bug#943786: fixed in lmfit-py 1.0.0-1
has caused the Debian Bug report #943786,
regarding lmfit-py: failing tests with python3.8
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
943786: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=943786
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: lmfit-py
Version: 0.9.14-1
Severity: important
User: [email protected]
Usertags: origin-ubuntu focal

Dear maintainers,

The lmfit-py package fails to build from source in Ubuntu focal, because
Ubuntu has begun the transition to python3.8 and lmfit-py 0.9.14 is not
source-compatible with python3.8:

[...]
==================================== ERRORS ====================================
_________________ ERROR at setup of test_algebraic_constraints _________________

    @pytest.fixture
    def minimizer():
        """Return the Minimizer object."""
        def residual(pars, x, sigma=None, data=None):
            """Define objective function."""
            yg = gaussian(x, pars['amp_g'], pars['cen_g'], pars['wid_g'])
            yl = lorentzian(x, pars['amp_l'], pars['cen_l'], pars['wid_l'])
    
            model = yg + yl + pars['line_off'] + x * pars['line_slope']
    
            if data is None:
                return model
            if sigma is None:
                return model - data
            return (model-data) / sigma
    
        # generate synthetic data
        n = 601
        xmin = 0.
        xmax = 20.0
        x = np.linspace(xmin, xmax, n)
    
        data = (gaussian(x, 21, 8.1, 1.2) + lorentzian(x, 10, 9.6, 2.4) +
                np.random.normal(scale=0.23, size=n) + x*0.5)
    
        # create initial Parameters
        pars = Parameters()
        pars.add(name='amp_g', value=10)
        pars.add(name='cen_g', value=9)
        pars.add(name='wid_g', value=1)
        pars.add(name='amp_tot', value=20)
        pars.add(name='amp_l', expr='amp_tot - amp_g')
>       pars.add(name='cen_l', expr='1.5+cen_g')

tests/test_algebraic_constraint.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
lmfit/parameter.py:361: in add
    self.__setitem__(name, Parameter(value=value, name=name, vary=vary,
lmfit/parameter.py:132: in __setitem__
    self._asteval.symtable[key] = par.value
lmfit/parameter.py:823: in value
    return self._getval()
lmfit/parameter.py:805: in _getval
    check_ast_errors(self._expr_eval)
lmfit/parameter.py:25: in check_ast_errors
    expr_eval.raise_exception(None)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <asteval.asteval.Interpreter object at 0x7fe24279e190>, node = None
exc = <class 'NotImplementedError'>, msg = ''
expr = <_ast.Module object at 0x7fe2428fa4f0>, lineno = None

    def raise_exception(self, node, exc=None, msg='', expr=None,
                        lineno=None):
        """Add an exception."""
        if self.error is None:
            self.error = []
        if expr is None:
            expr = self.expr
        if len(self.error) > 0 and not isinstance(node, ast.Module):
            msg = '%s' % msg
        err = ExceptionHolder(node, exc=exc, msg=msg, expr=expr, lineno=lineno)
        self._interrupt = ast.Break()
        self.error.append(err)
        if self.error_msg is None:
            self.error_msg = "%s in expr='%s'" % (msg, self.expr)
        elif len(msg) > 0:
            self.error_msg = "%s\n %s" % (self.error_msg, msg)
        if exc is None:
            try:
                exc = self.error[0].exc
            except:
                exc = RuntimeError
>       raise exc(self.error_msg)
E       NotImplementedError: 'Constant' not supported in expr='<_ast.Module 
object at 0x7fe2428fa4f0>'

/usr/lib/python3/dist-packages/asteval/asteval.py:248: NotImplementedError
---------------------------- Captured stderr setup -----------------------------
NotImplementedError
   <_ast.Module object at 0x7fe2428fa4f0>
'Constant' not supported
[...]

  (https://launchpad.net/ubuntu/+source/lmfit-py/0.9.14-1/+build/17990659)

Debian has not yet started the transition to python3.8 - the version of
python3-defaults that adds python3.8 as supported is currently in
experimental - but this will eventually become a serious bug in Debian as
well once that transition begins.

For the moment I have worked around the failure in Ubuntu by changing the
packaging to test only against the current version of python3 and not
against all supported versions, but this is a very short-term fix given that
python3.8 will become the default in the next 6 months.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
[email protected]                                     [email protected]

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: lmfit-py
Source-Version: 1.0.0-1

We believe that the bug you reported is fixed in the latest version of
lmfit-py, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Picca Frédéric-Emmanuel <[email protected]> (supplier of updated lmfit-py 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 23 Dec 2019 13:52:39 +0100
Source: lmfit-py
Architecture: source
Version: 1.0.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<[email protected]>
Changed-By: Picca Frédéric-Emmanuel <[email protected]>
Closes: 922111 934871 943786
Changes:
 lmfit-py (1.0.0-1) unstable; urgency=medium
 .
   [ Alexandre Marie ]
   * Fixed compatibility with python3.8 (Closes: #943786)
   * Forced asteval version to >=0.9.16
 .
   [ Picca Frédéric-Emmanuel ]
   * added jupyter-sphinx as Build-Depends
   * Forgotten with the previous upload (Closes: #934871, #922111)
   * Do not build the documentation for now.
 .
   [ Andreas Tille ]
   * Use secure URI in Homepage field.
   * Fix day-of-week for changelog entry 0.8.3+dfsg.1-1~exp1.
   * Build-Depends: python3-sphinx-gallery
   TODO:
     Exception occurred:
       File "/usr/lib/python3/dist-packages/sphinx_gallery/gen_gallery.py", 
line 313, in sumarize_failing_examples
         "\n" + "-" * 79)
     ValueError: Here is a summary of the problems encountered when running the 
examples
Checksums-Sha1:
 967bbbca196651118d7c3510b7c0ffa7ede42969 2584 lmfit-py_1.0.0-1.dsc
 78624f48fe6325615552f7e2e85cf56eccdfbf75 262704 lmfit-py_1.0.0.orig.tar.gz
 842aae1a212d5812a281898c09d5ecf4840fb9a7 7172 lmfit-py_1.0.0-1.debian.tar.xz
Checksums-Sha256:
 9c86a71a220f7c1c3a1834eb992f572e1569e649850aad72266703f82f0c94c3 2584 
lmfit-py_1.0.0-1.dsc
 f06b129971da50bf0a3e7db496f96b3c7e8fda1993be7349719e46ee8cfb6632 262704 
lmfit-py_1.0.0.orig.tar.gz
 8817e7276e8622e036f1233f239b9d40e9ce2ae5a439415d9989c86ae68bcd1b 7172 
lmfit-py_1.0.0-1.debian.tar.xz
Files:
 1b0b3e13f7c5939d5612e228cf3d9536 2584 science optional lmfit-py_1.0.0-1.dsc
 bc98ff3a7a64e6c6be87509f516c16e9 262704 science optional 
lmfit-py_1.0.0.orig.tar.gz
 c8e993ba93dd8134f5df45a6268aa18c 7172 science optional 
lmfit-py_1.0.0-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE2bRTt5m4gw2UXmoKW/VOXhK5ALsFAl4AuOURHHBpY2NhQGRl
Ymlhbi5vcmcACgkQW/VOXhK5ALtjJQ/9EhhaZ5NH1dzQ5PqpUHspLlaeDJjQkTCT
LCq3u84Y+G7AZTPAgMjt+3ExK1PwdVbq49Fq2egZ56pmSRt2PmSb+BumJOdqxMDl
ivGwUdQWbA3bJXQYXdr6RnyO5Fp8r3dC57MDf6BiZxj0QJ1+OKykKe4lZ41ETFWs
g4QCLaqapwavYK1yXjH2qIsTaqZ/3fVk6VFI066HJvcWd1JwbBcr4fLPGYJjvEpw
OPdrIsbcwP2PNG9Ulp7Rf3Q7nOQgfK8MLJhoGHePPuZ9HK8n64qoWsCjPDO7XcqR
On0gpQGa9xv+d29Wr10KulewBA3XwkB2Ze5o7gKIn9U6fxwccZZx290ZqKWX3LYL
6q/+/xylH2co1gDgF/z8SYtv+nHX2rG8wRXXa/Ck0umV8t6KlGSlqS9/lWLXqPeq
3OPv5rqu9nWU83m13228alP5FVHlKEDJskc0AbGyNYTARqonkEsZ6K3bx28Bo0UO
kL/gcxUoa/6sAtx2JgAz4RnpsXVD7CxSUfb23ZUG1bIhe/8eUU0KCneTZ5Z/PUp/
kySIO+Yu0njmUR8Wuth4GqlPKvJaEKK6hqzVEMOIiy6cw9wLfKFn7/4V0jWyvvxP
IWmND2pubUsBUXa5XDgRnWAXZmNCJ+Wr6jNgOpZ8EDeELST/57OEKoG4Iit7NTZG
DkogXo3/wcc=
=e4BP
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to