Description of problem: When running under Fedora rawhide on a big-endian machine (ppc64, s390x), test_ccp4 fails. Version-Release number of selected component (if applicable): python-GridDataFormats-0.4.0-3.fc29 How reproducible: Always. Steps to Reproduce: 1. cd GridDataFormats-0.4.0 2. /usr/bin/python2 setup.py nosetests Actual results: running nosetests running egg_info writing requirements to GridDataFormats.egg-info/requires.txt writing GridDataFormats.egg-info/PKG-INFO writing top-level names to GridDataFormats.egg-info/top_level.txt writing dependency_links to GridDataFormats.egg-info/dependency_links.txt reading manifest file 'GridDataFormats.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'README' writing manifest file 'GridDataFormats.egg-info/SOURCES.txt' /builddir/build/BUILD/GridDataFormats-0.4.0/gridData/CCP4.py:274: UserWarning: Key mode: Illegal value 33554432 "Key %s: Illegal value %r" % (rec.key, header[rec.key])) /builddir/build/BUILD/GridDataFormats-0.4.0/gridData/CCP4.py:274: UserWarning: Key mapc: Illegal value 16777216 "Key %s: Illegal value %r" % (rec.key, header[rec.key])) /builddir/build/BUILD/GridDataFormats-0.4.0/gridData/CCP4.py:274: UserWarning: Key mapr: Illegal value 33554432 "Key %s: Illegal value %r" % (rec.key, header[rec.key])) /builddir/build/BUILD/GridDataFormats-0.4.0/gridData/CCP4.py:274: UserWarning: Key maps: Illegal value 50331648 "Key %s: Illegal value %r" % (rec.key, header[rec.key])) E............/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/OpenDX.py:339: UserWarning: array dtype.name = float128 can not be automatically converted to a DX array type. Use the 'type' keyword to manually specify the correct type. self.array.dtype.name)) .............S.. ====================================================================== ERROR: gridData.tests.test_ccp4.test_ccp4 ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/tests/test_ccp4.py", line 9, in test_ccp4 g = Grid('gridData/tests/test.ccp4') File "/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/core.py", line 117, in __init__ self.load(grid) File "/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/core.py", line 302, in load loader(filename) File "/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/core.py", line 314, in _load_cpp4 ccp4.read(filename) File "/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/CCP4.py", line 204, in read h = self.header = self._read_header(ccp4) File "/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/CCP4.py", line 295, in _read_header label = struct.unpack(flag, binlabel)[0] error: unpack requires a string argument of length 1342177280 ---------------------------------------------------------------------- Ran 29 tests in 0.558s FAILED (SKIP=1, errors=1) Expected results: Test passes.
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle. Changing version to '29'.
This message is a reminder that Fedora 29 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '29'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 29 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.
Still an issue on s390x/rawhide.
I think the design of _detect_byteorder() method is wrong. I've put some comments on https://github.com/MDAnalysis/GridDataFormats/issues/50#issuecomment-1001935448
FEDORA-2022-ca74faea91 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-ca74faea91
FEDORA-2022-ca74faea91 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-ca74faea91` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-ca74faea91 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-ca74faea91 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.