[Debian-pan-maintainers] Bug#1029242: pymca: FTBFS: AttributeError: module 'numpy' has no attribute 'float'

Lucas Nussbaum lucas at debian.org
Fri Jan 20 11:00:50 GMT 2023


Source: pymca
Version: 5.8.0+dfsg-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230120 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> pybuild --test -s custom -p 3.11 --test-args="cd {build_dir} && PYMCA_DATA_DIR=/<<PKGBUILDDIR>>/PyMca5/PyMcaData/ PYMCA_DOC_DIR=/<<PKGBUILDDIR>>/PyMca5/PyMcaData/ xvfb-run -a --server-args=\"-screen 0 1024x768x24\" {interpreter} PyMca5/tests/TestAll.py"
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pymca5/build && PYMCA_DATA_DIR=/<<PKGBUILDDIR>>/PyMca5/PyMcaData/ PYMCA_DOC_DIR=/<<PKGBUILDDIR>>/PyMca5/PyMcaData/ xvfb-run -a --server-args="-screen 0 1024x768x24" python3.11 PyMca5/tests/TestAll.py
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> testEdfMap (XrfDataTest.testXrfData.testEdfMap) ... ok
> testHdf5Map (XrfDataTest.testXrfData.testHdf5Map) ... ok
> testSpecMesh (XrfDataTest.testXrfData.testSpecMesh) ... ok
> testNoSave (XRFBatchFitOutputTest.testXRFBatchFitOutput.testNoSave) ... ok
> testOutputFormats (XRFBatchFitOutputTest.testXRFBatchFitOutput.testOutputFormats) ... ok
> testOverwrite (XRFBatchFitOutputTest.testXRFBatchFitOutput.testOverwrite) ... ok
> testEdfFileImport (EdfFileTest.testEdfFile.testEdfFileImport) ... ok
> testEdfFileReadWrite (EdfFileTest.testEdfFile.testEdfFileReadWrite) ... ok
> testDataDirectoryPresence (DataTest.testData.testDataDirectoryPresence) ... ok
> testDataFilePresence (DataTest.testData.testDataFilePresence) ... ok
> testDocDirectoryPresence (DataTest.testData.testDocDirectoryPresence) ... ok
> testFisxDataDirectoryPresence (DataTest.testData.testFisxDataDirectoryPresence) ... ok
> testInteractionMpl (McaAdvancedFitWidgetTest.TestMcaAdvancedFitWidget.testInteractionMpl) ... ok
> testInteractionOpenGL (McaAdvancedFitWidgetTest.TestMcaAdvancedFitWidget.testInteractionOpenGL) ... skipped 'silx not installed'
> testInteractionSilxGL (McaAdvancedFitWidgetTest.TestMcaAdvancedFitWidget.testInteractionSilxGL) ... skipped 'silx and/or OpenGL disabled'
> testInteractionSilxMpl (McaAdvancedFitWidgetTest.TestMcaAdvancedFitWidget.testInteractionSilxMpl) ... skipped 'silx not installed'
> testSpecfilewrapperImport (specfilewrapperTest.testSpecfilewrapper.testSpecfilewrapperImport) ... ok
> testSpecfilewrapperReading (specfilewrapperTest.testSpecfilewrapper.testSpecfilewrapperReading) ... ok
> testSpecfilewrapperReadingCompatibleWithUserLocale (specfilewrapperTest.testSpecfilewrapper.testSpecfilewrapperReadingCompatibleWithUserLocale) ... ok
> testTrainingSpectrumReading (specfilewrapperTest.testSpecfilewrapper.testTrainingSpectrumReading) ... ok
> testPeakNegativeX (ROIBatchTest.testROIBatch.testPeakNegativeX) ... ERROR
> testPeakPositiveX (ROIBatchTest.testROIBatch.testPeakPositiveX) ... ERROR
> testSingleArrayExport (McaStackExportTest.testMcaStackExport.testSingleArrayExport) ... ok
> testSingleStackExport (McaStackExportTest.testMcaStackExport.testSingleStackExport) ... ok
> testGefitImport (GefitTest.testGefit.testGefitImport) ... ok
> testGefitLeastSquares (GefitTest.testGefit.testGefitLeastSquares) ... ok
> testConfigDictIO (ConfigDictTest.testConfigDict.testConfigDictIO) ... ok
> testConfigDictImport (ConfigDictTest.testConfigDict.testConfigDictImport) ... ok
> testHdf5Uri (ConfigDictTest.testConfigDict.testHdf5Uri) ... ok
> testDataDirectoryPresence (ElementsTest.testElements.testDataDirectoryPresence) ... ok
> testElementCrossSectionsCalculation (ElementsTest.testElements.testElementCrossSectionsCalculation) ... ok
> testElementCrossSectionsReadout (ElementsTest.testElements.testElementCrossSectionsReadout) ... ok
> testMaterialCompositionCalculation (ElementsTest.testElements.testMaterialCompositionCalculation) ... ok
> testMaterialCrossSectionsCalculation (ElementsTest.testElements.testMaterialCrossSectionsCalculation) ... ok
> testPeakIdentification (ElementsTest.testElements.testPeakIdentification) ... ok
> testNxData (NexusUtilsTest.testNexusUtils.testNxData) ... ok
> testNxEntry (NexusUtilsTest.testNexusUtils.testNxEntry) ... ok
> testNxExtStringAttribute (NexusUtilsTest.testNexusUtils.testNxExtStringAttribute) ... ok
> testNxExtStringDataset (NexusUtilsTest.testNexusUtils.testNxExtStringDataset) ... ok
> testNxProcess (NexusUtilsTest.testNexusUtils.testNxProcess) ... ok
> testNxRoot (NexusUtilsTest.testNexusUtils.testNxRoot) ... ok
> testNxStringAttribute (NexusUtilsTest.testNexusUtils.testNxStringAttribute) ... ok
> testNxStringDataset (NexusUtilsTest.testNexusUtils.testNxStringDataset) ... ok
> testCommand (PyMcaBatchTest.testPyMcaBatch.testCommand) ... ok
> testFastFitEdfMap (PyMcaBatchTest.testPyMcaBatch.testFastFitEdfMap) ... ok
> testFastFitHdf5Map (PyMcaBatchTest.testPyMcaBatch.testFastFitHdf5Map) ... ok
> testFastFitSpecMap (PyMcaBatchTest.testPyMcaBatch.testFastFitSpecMap) ... ok
> testSlowFitEdfMap (PyMcaBatchTest.testPyMcaBatch.testSlowFitEdfMap) ... ok
> testSlowFitHdf5Map (PyMcaBatchTest.testPyMcaBatch.testSlowFitHdf5Map) ... ok
> testSlowFitSpecMap (PyMcaBatchTest.testPyMcaBatch.testSlowFitSpecMap) ... ok
> testSlowMultiFitEdfMap (PyMcaBatchTest.testPyMcaBatch.testSlowMultiFitEdfMap) ... QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> ok
> testSlowMultiFitHdf5Map (PyMcaBatchTest.testPyMcaBatch.testSlowMultiFitHdf5Map) ... QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> ok
> testSlowMultiFitSpecMap (PyMcaBatchTest.testPyMcaBatch.testSlowMultiFitSpecMap) ... QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user42'
> WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> ok
> testSlowRoiFitEdfMap (PyMcaBatchTest.testPyMcaBatch.testSlowRoiFitEdfMap) ... ok
> testSlowRoiFitHdf5Map (PyMcaBatchTest.testPyMcaBatch.testSlowRoiFitHdf5Map) ... ok
> testSlowRoiFitSpecMap (PyMcaBatchTest.testPyMcaBatch.testSlowRoiFitSpecMap) ... ok
> testSubCommands (PyMcaBatchTest.testPyMcaBatch.testSubCommands)
> Check multi processing slicing of 2D maps for different ... ok
> testSpecfileImport (SpecfileTest.testSpecfile.testSpecfileImport) ... ok
> testSpecfileReading (SpecfileTest.testSpecfile.testSpecfileReading) ... ok
> testSpecfileReadingCompatibleWithOtherLocale (SpecfileTest.testSpecfile.testSpecfileReadingCompatibleWithOtherLocale) ... ok
> testSpecfileReadingCompatibleWithUserLocale (SpecfileTest.testSpecfile.testSpecfileReadingCompatibleWithUserLocale) ... ok
> testQObject (WidgetsInstantiationTest.TestQtWrapper.testQObject)
> Test that QObject is there. ... ok
> testShow (WidgetsInstantiationTest.TestPlotWidget.testShow) ... ok
> testShow (WidgetsInstantiationTest.TestPlotWindow.testShow) ... ok
> testShow (WidgetsInstantiationTest.TestRGBCorrelatorGraph.testShow) ... ok
> testShow (WidgetsInstantiationTest.TestRGBCorrelatorWidget.testShow) ... ok
> testShow (WidgetsInstantiationTest.TestXASNormalizationWindow.testShow) ... ok
> testShow (WidgetsInstantiationTest.TestMaskImageWidget.testShow) ... ok
> testShow (WidgetsInstantiationTest.TestScanWindow.testShow) ... ok
> testShow (WidgetsInstantiationTest.TestMcaCalWidget.testShow) ... ok
> testShow (WidgetsInstantiationTest.TestMcaWindow.testShow) ... ok
> testShow (WidgetsInstantiationTest.TestMaterialEditor.testShow) ... ok
> testShow (WidgetsInstantiationTest.TestFitParam.testShow) ... ok
> testShow (WidgetsInstantiationTest.TestPeakIdentifier.testShow) ... ok
> testShow (WidgetsInstantiationTest.TestMcaAdvancedFit.testShow) ... ok
> testShow (WidgetsInstantiationTest.TestPyMcaMain.testShow) ... ok
> testStackBaseImport (StackBaseTest.testStackBase.testStackBaseImport) ... ok
> testStackBaseStack1DDataHandling (StackBaseTest.testStackBase.testStackBaseStack1DDataHandling) ... ok
> testStackBaseStack2DDataHandling (StackBaseTest.testStackBase.testStackBaseStack2DDataHandling) ... ok
> testStainlessSteelDataFit (XrfTest.testXrf.testStainlessSteelDataFit) ... ok
> testTrainingDataDirectoryPresence (XrfTest.testXrf.testTrainingDataDirectoryPresence) ... ok
> testTrainingDataFilePresence (XrfTest.testXrf.testTrainingDataFilePresence) ... ok
> testTrainingDataFit (XrfTest.testXrf.testTrainingDataFit) ... ok
> testHdf5GroupKeys (HDF5UtilsTest.testHDF5Utils.testHdf5GroupKeys) ... WARNING: Taking PYMCA_DATA_DIR from environment.
> Use it at your own risk.
> WARNING: Taking PYMCA_DOC_DIR from environment.
> Use it at your own risk.
> RECONFIGURING
> RECONFIGURING elapsed =  0.5516459941864014
> RECONFIGURING
> RECONFIGURING elapsed =  0.6579101085662842
> RECONFIGURING
> RECONFIGURING elapsed =  0.5510032176971436
> ok
> testSegFault (HDF5UtilsTest.testHDF5Utils.testSegFault) ... ok
> testFullViewH5py (McaStackViewTest.testMcaStackView.testFullViewH5py) ... ok
> testFullViewNumpy (McaStackViewTest.testMcaStackView.testFullViewNumpy) ... ok
> testMaskedChunkIndex (McaStackViewTest.testMcaStackView.testMaskedChunkIndex) ... ok
> testMaskedViewH5py (McaStackViewTest.testMcaStackView.testMaskedViewH5py) ... ok
> testMaskedViewNumpy (McaStackViewTest.testMcaStackView.testMaskedViewNumpy) ... ok
> testViewUtils (McaStackViewTest.testMcaStackView.testViewUtils) ... ok
> testfullChunkIndex (McaStackViewTest.testMcaStackView.testfullChunkIndex) ... ok
> testPCAToolsCovariance (PCAToolsTest.testPCATools.testPCAToolsCovariance) ... ok
> testPCAToolsImport (PCAToolsTest.testPCATools.testPCAToolsImport) ... ok
> testPCAToolsPCA (PCAToolsTest.testPCATools.testPCAToolsPCA) ... ok
> testDataDirectoryPresence (StackInfoTest.testStackInfo.testDataDirectoryPresence) ... ok
> testDataFilePresence (StackInfoTest.testStackInfo.testDataFilePresence) ... ok
> testFitHdf5Stack (StackInfoTest.testStackInfo.testFitHdf5Stack) ... ok
> testStackBaseAverageAndSum (StackInfoTest.testStackInfo.testStackBaseAverageAndSum) ... ok
> testStackFastFit (StackInfoTest.testStackInfo.testStackFastFit) ... ok
> 
> ======================================================================
> ERROR: testPeakNegativeX (ROIBatchTest.testROIBatch.testPeakNegativeX)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pymca5/build/PyMca5/tests/ROIBatchTest.py", line 108, in testPeakNegativeX
>     self.assertROIsumWithLegacy(generatePeakDataNegativeX,
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pymca5/build/PyMca5/tests/ROIBatchTest.py", line 112, in assertROIsumWithLegacy
>     result1 = self.assertROIsum(datagen, legacy=False, **parameters)
>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pymca5/build/PyMca5/tests/ROIBatchTest.py", line 133, in assertROIsum
>     outputDict = instance.batchROIMultipleSpectra(x=x,
>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pymca5/build/PyMca5/PyMcaCore/StackROIBatch.py", line 100, in batchROIMultipleSpectra
>     self._extractRois(data, x, index,
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pymca5/build/PyMca5/PyMcaCore/StackROIBatch.py", line 152, in _extractRois
>     roidtype = numpy.float
>                ^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 284, in __getattr__
>     raise AttributeError("module {!r} has no attribute "
> AttributeError: module 'numpy' has no attribute 'float'
> 
> ======================================================================
> ERROR: testPeakPositiveX (ROIBatchTest.testROIBatch.testPeakPositiveX)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pymca5/build/PyMca5/tests/ROIBatchTest.py", line 102, in testPeakPositiveX
>     self.assertROIsumWithLegacy(generatePeakDataPositiveX,
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pymca5/build/PyMca5/tests/ROIBatchTest.py", line 112, in assertROIsumWithLegacy
>     result1 = self.assertROIsum(datagen, legacy=False, **parameters)
>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pymca5/build/PyMca5/tests/ROIBatchTest.py", line 133, in assertROIsum
>     outputDict = instance.batchROIMultipleSpectra(x=x,
>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pymca5/build/PyMca5/PyMcaCore/StackROIBatch.py", line 100, in batchROIMultipleSpectra
>     self._extractRois(data, x, index,
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pymca5/build/PyMca5/PyMcaCore/StackROIBatch.py", line 152, in _extractRois
>     roidtype = numpy.float
>                ^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 284, in __getattr__
>     raise AttributeError("module {!r} has no attribute "
> AttributeError: module 'numpy' has no attribute 'float'
> 
> ----------------------------------------------------------------------
> Ran 100 tests in 285.383s
> 
> FAILED (errors=2, skipped=3)
> E: pybuild pybuild:388: test: plugin custom failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pymca5/build && PYMCA_DATA_DIR=/<<PKGBUILDDIR>>/PyMca5/PyMcaData/ PYMCA_DOC_DIR=/<<PKGBUILDDIR>>/PyMca5/PyMcaData/ xvfb-run -a --server-args="-screen 0 1024x768x24" python3.11 PyMca5/tests/TestAll.py
> make[1]: *** [debian/rules:89: override_dh_auto_test] Error 13


The full build log is available from:
http://qa-logs.debian.net/2023/01/20/pymca_5.8.0+dfsg-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230120;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230120&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Debian-pan-maintainers mailing list