bout++ fails to build with Python 3.9.0a2. There are lot of test failures with: RuntimeError: Run failed with 15. Also: Traceback (most recent call last): File "/builddir/build/BUILD/BOUT++-v4.3.0/build_mpich/tests/integrated/test-boutcore/collect-staggered/./runtest", line 20, in <module> fe = bc.Field3D.fromCollect("f3d_evolve", path='data', info=False) File "boutcore.pyx", line 126, in boutcore.Field3D.fromCollect AttributeError: type object 'type' has no attribute 'fromMesh' And: INTERNAL ERROR: invalid error code fffffffe (Ring Index out of range) in MPID_nem_tcp_init:373 For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01170893-bout++/ For all our attempts to build bout++ with Python 3.9, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/bout++/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.9: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/ Let us know here if you have any questions. Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
Most of the issues are related to copr issues with MPI. I have observed similar issues with mock and copr in the past due to MPI. Allowing network access can help.
Building with network enabled in https://copr.fedorainfracloud.org/coprs/g/python/python3.9/build/1171527/ Will get back here with results later.
Will look into this: Reading from input/BOUT.dmp.0.nc: [0-0][0-0] -> [0-0][0-0] (1, 1, 1, 1) initialized mesh initialized mesh Traceback (most recent call last): File "/builddir/build/BUILD/BOUT++-v4.3.0/build_mpich/tests/integrated/test-boutcore/collect/./runtest", line 33, in <module> temp = bc.Field3D.fromCollect("f3d", path="input") File "boutcore.pyx", line 126, in boutcore.Field3D.fromCollect AttributeError: type object 'type' has no attribute 'fromMesh' Option datadir = input () Option settingsfile = BOUT.settings () Writing options to file input/BOUT.settings ----- test-boutcore/collect-staggered ----- Traceback (most recent call last): File "/builddir/build/BUILD/BOUT++-v4.3.0/build_mpich/tests/integrated/test-boutcore/collect-staggered/./runtest", line 20, in <module> fe = bc.Field3D.fromCollect("f3d_evolve", path='data', info=False) File "boutcore.pyx", line 126, in boutcore.Field3D.fromCollect AttributeError: type object 'type' has no attribute 'fromMesh'
So, I am not sure why this broke: class Field3D: @classmethod def fromMesh(cls,mesh=None): pass @classmethod def fromCollect(cls,...): cls.fromMesh(mesh) It seems cls is now from type `type` - rather then `Field3D` A work around would be to call `Field3D.fromMesh(mesh)`, rather then `cls.fromMesh(mesh)`, however I am not sure why the `cls` version is wrong? Is that a bug in python / Cython?
> It seems cls is now from type `type` - rather then `Field3D` cls should be Field3D of type `type`. In Python, this works. So I assume this is a Cython problem. $ python3.9 >>> class Field3D: ... @classmethod ... def fromMesh(cls,mesh=None): ... pass ... @classmethod ... def fromCollect(cls): ... cls.fromMesh() ... >>> Field3D.fromCollect() >>>
The failing classmethod example seems to be the cause of this failure. Depends thus on https://bugzilla.redhat.com/show_bug.cgi?id=1788506
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle. Changing version to 32.
We have workarounded bz1788506, but recent bout++ builds fail with a different problem: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/bout++/
It seems networking is disabled. Could you re-enable and try again? I have opened a bug against mock: https://bugzilla.redhat.com/show_bug.cgi?id=1839007
> It seems networking is disabled. Could you re-enable and try again? Sure, I forgot about this problem. https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/bout++/
It built. Thanks.