Bug 1959774
Summary: | python-theano fails to build with Python 3.10: TypeError: TensorType does not support iteration. Maybe you are using builtins.sum instead of theano.tensor.sum? (Maybe .max?) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | python-theano | Assignee: | Jerry James <loganjerry> |
Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | igor.raits, loganjerry, mhroncok, sergio.pasra, thrnciar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-06-11 10:18:28 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1890881, 1927309, 1927313, 1969092, 1969158, 1969194 |
Description
Tomáš Hrnčiar
2021-05-12 10:48:29 UTC
This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla. The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide. You can either build the package in the side tag, with: $ fedpkg build --target=f35-python Or you can the build and we will eventually build it for you. Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away. Thanks. See also https://fedoraproject.org/wiki/Changes/Python3.10 If you have general questions about the rebuild, please use this mailing list thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/ The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build. *** Bug 1969158 has been marked as a duplicate of this bug. *** I found a small change in the linecache code in python 3.10 was leading to the errors reported above. I added a patch to fix that and got a good build in mock. Building in koji, however, failed: tests/tensor/nnet/test_corr3d.py ...sFs..F..F..F..FFF...Fatal Python error: Segmentation fault Current thread 0xb6fa5010 (most recent call first): File "/builddir/build/BUILD/Theano-PyMC-rel-1.0.13/theano/gof/opt.py", line 251 in apply File "/builddir/build/BUILD/Theano-PyMC-rel-1.0.13/theano/gof/opt.py", line 78 in optimize File "/builddir/build/BUILD/Theano-PyMC-rel-1.0.13/theano/gof/opt.py", line 87 in __call__ File "/builddir/build/BUILD/Theano-PyMC-rel-1.0.13/theano/compile/function/types.py", line 1602 in __init__ File "/builddir/build/BUILD/Theano-PyMC-rel-1.0.13/theano/compile/function/types.py", line 1955 in orig_function File "/builddir/build/BUILD/Theano-PyMC-rel-1.0.13/theano/compile/function/pfunc.py", line 524 in pfunc File "/builddir/build/BUILD/Theano-PyMC-rel-1.0.13/theano/compile/function/__init__.py", line 337 in function File "/builddir/build/BUILD/Theano-PyMC-rel-1.0.13/theano/gradient.py", line 1857 in verify_grad File "/builddir/build/BUILD/Theano-PyMC-rel-1.0.13/tests/unittest_tools.py", line 77 in verify_grad File "/builddir/build/BUILD/Theano-PyMC-rel-1.0.13/tests/tensor/nnet/test_corr3d.py", line 173 in validate File "/builddir/build/BUILD/Theano-PyMC-rel-1.0.13/tests/tensor/nnet/test_corr3d.py", line 302 in test_shape_Constant_tensor File "/usr/lib/python3.10/site-packages/_pytest/python.py", line 183 in pytest_pyfunc_call File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda> File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__ File "/usr/lib/python3.10/site-packages/_pytest/python.py", line 1641 in runtest File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda> File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__ File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 255 in <lambda> File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 311 in from_call File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 254 in call_runtest_hook File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 215 in call_and_report File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 126 in runtestprotocol File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 109 in pytest_runtest_protocol File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda> File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__ File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 348 in pytest_runtestloop File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda> File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__ File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 323 in _main File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 269 in wrap_session File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda> File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__ File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 162 in main File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 185 in console_main File "/usr/bin/pytest", line 33 in <module> Extension modules: numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg.lapack_lite, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, lazylinker_ext.lazylinker_ext, scipy._lib._ccallback_c, scipy.special._ufuncs_cxx, scipy.special._ufuncs, scipy.special.specfun, scipy.linalg._fblas, scipy.linalg._flapack, scipy.linalg._flinalg, scipy.linalg._solve_toeplitz, scipy.linalg._matfuncs_sqrtm_triu, scipy.linalg.cython_blas, scipy.linalg.cython_lapack, scipy.linalg._decomp_update, scipy.sparse._sparsetools, scipy.sparse._csparsetools, scipy.sparse.csgraph._tools, scipy.sparse.csgraph._shortest_path, scipy.sparse.csgraph._traversal, scipy.sparse.csgraph._min_spanning_tree, scipy.sparse.csgraph._flow, scipy.sparse.csgraph._matching, scipy.sparse.csgraph._reordering, scipy.special._comb, scipy.special._ellip_harm_2, scipy.spatial.ckdtree, scipy._lib.messagestream, scipy.spatial.qhull, scipy.spatial._voronoi, scipy.spatial._distance_wrap, scipy.spatial._hausdorff, scipy.spatial.transform.rotation, scipy.ndimage._nd_image, _ni_label, scipy.ndimage._ni_label, scipy.optimize.minpack2, scipy.sparse.linalg.isolve._iterative, scipy.sparse.linalg.dsolve._superlu, scipy.sparse.linalg.eigen.arpack._arpack, scipy.optimize._group_columns, scipy.optimize._trlib._trlib, scipy.optimize._lbfgsb, scipy.optimize.moduleTNC, scipy.optimize._cobyla, scipy.optimize._slsqp, scipy.optimize._minpack, scipy.optimize._lsq.givens_elimination, scipy.optimize._zeros, scipy.optimize.__nnls, scipy.optimize._highs.cython.src._highs_wrapper, scipy.optimize._highs._highs_wrapper, scipy.optimize._highs.cython.src._highs_constants, scipy.optimize._highs._highs_constants, scipy.linalg._interpolative, scipy.optimize._bglu_dense, scipy.optimize._lsap_module, scipy.integrate._odepack, scipy.integrate._quadpack, scipy.integrate.vode, scipy.integrate._dop, scipy.integrate.lsoda, scipy.interpolate._fitpack, scipy.interpolate.dfitpack, scipy.interpolate._bspl, scipy.interpolate._ppoly, scipy.interpolate.interpnd, scipy.special.cython_special, scipy.stats._stats, scipy.stats.statlib, scipy.stats.mvn, scipy.signal.sigtools, scipy._lib._uarray._uarray, scipy.signal._max_len_seq_inner, scipy.signal._upfirdn_apply, scipy.signal.spline, scipy.signal._sosfilt, scipy.signal._spectral, scipy.signal._peak_finding_utils, pygpu.gpuarray, pygpu._elemwise, markupsafe._speedups, pygpu.blas, tmpa4dw21x2.m30586f65c469f1ab992342f7731fb75796c381649c411ab09a01493f6ab04d51, cutils_ext.cutils_ext, tmptmpeis7k.macf077186293f8476c41b47c31add37c91891631dc83bd64091704641881999d, tmpjzvg0s_t.mc617ef147f5bab39b7d0414573bade77789fa4e34cb6c59803b6d4631856c54a, tmpthfjvmbf.m38217f6f799366415613d6b5daa2cd53ba33827c2f1c85602948b22610f93f1a, tmpe27uqvfq.m7f731f8ee89857de49ba7dae4086ef8dc810ae01a76f298a4f8589742a6f759f, ... where "..." stands for a lot more "tmp*" modules. I have never seen this segfault before, nor did it occur in yesterday's mock build. On the other hand, the koji builder was a 32-bit ARM machine, where my mock build was on an x86_64 machine. Thoughts on how to diagnose this crash are welcome. The current python-theano package is not the latest code. I have held off on further updates, because backwards incompatible changes were made that broke sympy. Also the name changed from Theano to Aesara. However, I now see that sympy upstream is preparing to release a new version with Aesara support: https://github.com/sympy/sympy/pull/21087 If python-lasagne and python-pymc3 can be switched to Aesara as well, then we should submit an Aesara package for review. Whether that will fix the current batch of build issues remains to be seen, of course. Correction: sympy upstream *did* release a new version with Aesara support. Version 1.8, which is already available in Rawhide, has it. (In reply to Jerry James from comment #5) > The current python-theano package is not the latest code. I have held off > on further updates, because backwards incompatible changes were made that > broke sympy. Also the name changed from Theano to Aesara. However, I now > see that sympy upstream is preparing to release a new version with Aesara > support: > > https://github.com/sympy/sympy/pull/21087 > > If python-lasagne and python-pymc3 can be switched to Aesara as well, then > we should submit an Aesara package for review. > > Whether that will fix the current batch of build issues remains to be seen, > of course. Jerry, I have started to package Aesara. I have also finished an update of theano-pymc to 1.1.2 (it's not commited yet). I imagine this is the last version theano before switching to aesara. How I proceed? Do I create a pull request? A pull request is fine. Or I can make you a comaintainer of the python-theano package, if you prefer, and then you can commit directly. Thanks for looking into aesara. Great, I'm already a comaintainer, I think. It's built in rawhide https://koji.fedoraproject.org/koji/buildinfo?buildID=1768264 Hello, Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok). All subpackages of a package against which this bug was filled are now installable or removed from Fedora 35. Thanks for taking care of it! |