Bug 1737360

Summary: python-nibabel fails to build with Python 3.8
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-nibabelAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: igor.raits, neuro-sig, sanjay.ankur
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: 2019-08-05 15:01:34 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: 1686977    

Description Miro Hrončok 2019-08-05 08:31:41 UTC
python-nibabel fails to build with Python 3.8.0b3.

======================================================================
ERROR: nibabel.tests.test_volumeutils.test_a2f_non_numeric
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/builddir/build/BUILD/nibabel-2.4.1/nibabel/tests/test_volumeutils.py", line 702, in test_a2f_non_numeric
    arr.astype(float)
TypeError: Cannot cast array from dtype([('f1', '<f4'), ('f2', '<i2')]) to dtype('float64') according to the rule 'unsafe'

----------------------------------------------------------------------
Ran 7707 tests in 196.580s

FAILED (SKIP=44, errors=1)
sys:1: ResourceWarning: unclosed file <_io.BufferedReader name='/builddir/build/BUILD/nibabel-2.4.1/nibabel/tests/data/tinypet.v'>
For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00994594-python-nibabel/

For all our attempts to build python-nibabel with Python 3.8, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/python-nibabel/

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.8:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/

Let us know here if you have any questions.

Comment 1 Ankur Sinha (FranciscoD) 2019-08-05 14:12:23 UTC
I build 2.5.0 for rawhide yesterday:

https://koji.fedoraproject.org/koji/buildinfo?buildID=1347054

Could you check if that builds with python3.8 when you have a minute please?

Comment 2 Miro Hrončok 2019-08-05 15:01:34 UTC
2.5.0 built. Thanks.