--- Dependency check [begin] --- --- Dependency check [end] --- --- Distribution check [begin] --- Version 1.0.1 - 2024-10-18 (AI) Information: this ChangeLog entry matches the version number: Version 1.0.1 - 2024-10-18 (AI) Information: ./config/pyomdrifthist.par is an XML parameter file, I cannot yet validate it. Skipped. Warning: pyomdrifthist - missing lyt files. Now checking git repository... --- Distribution check [end] --- sed -e "s/DOC/pyomdrifthist/" -e "s/TYPE/devel/" < \ /workspaces/xmm_sas/packages/sas/doc/lib/package.tex | /workspaces/xmm_sas/packages/sas/bin/texcombine | \ /workspaces/xmm_sas/packages/sas/bin/fixdoc -type=devel pyomdrifthist 1.0.1 pyomdrifthist 22.0.0-6da3b52c5-20241025 > pyomdrifthist.tex including sasdevel... including sasglobal... including pyomdrifthist_description... latex pyomdrifthist < /dev/null > makedoc.log || ( cat makedoc.log ; exit 1 ) bibtex pyomdrifthist < /dev/null > makedoc.log make[5]: [/workspaces/xmm_sas/Make.include:1062: pyomdrifthist.ps.gz] Error 2 (ignored) latex pyomdrifthist < /dev/null > makedoc.log || ( cat makedoc.log ; exit 1 ) latex pyomdrifthist < /dev/null > makedoc.log || ( cat makedoc.log ; exit 1 ) dvips -o pyomdrifthist.ps pyomdrifthist > makedoc.log 2>&1 || ( cat makedoc.log ; exit 1 ) dvipdf pyomdrifthist > makedoc.log 2>&1 || ( cat makedoc.log ; continue ) gzip -f pyomdrifthist.ps SASRELDIR=../../.. ;\ export SASRELDIR ;\ latex2html -nouse_pdftex -init_file /workspaces/xmm_sas/packages/sas/doc/lib/latex2html.init pyomdrifthist > /dev/null texexpand V2020 (Released January 1, 2020) Warning: No implementation found for option: `version' for `sasdoc' package Warning: No implementation found for option: `version' for `sasdoc' package This is dvips(k) 2021.1 (TeX Live 2022/dev) Copyright 2021 Radical Eye Software (www.radicaleye.com) ' TeX output 2024.10.25:1611' -> images.ps . [1] [2] [3] /usr/bin/echo "" mkpkgidx -t . > /dev/null || (rm -f pyomdrifthist/index.pl ; exit 1) pointer=pyomdrifthist/ChangeLog ; \ target=../../../packages/pyomdrifthist/ChangeLog ; \ if [ -f $target -a \( ! -h $pointer \) ] ; then \ ln -s ../$target $pointer ; \ fi rm pyomdrifthist.tex Testing testpyomdrifthist ... FAILED Message: will run ./testpyomdrifthist for no longer than 600 seconds. ============================= test session starts ============================== platform linux -- Python 3.12.4, pytest-8.3.3, pluggy-1.5.0 -- /sasbuild/tools/python-3.12.4/bin/python3 cachedir: .pytest_cache rootdir: /workspaces/xmm_sas/packages/pyomdrifthist plugins: anyio-4.6.2.post1 collecting ... collected 8 items pyomdrifthist_test.py::test_euclid_modulus PASSED [ 12%] pyomdrifthist_test.py::test_get_platescale PASSED [ 25%] pyomdrifthist_test.py::test_get_more_recent_ccf PASSED [ 37%] pyomdrifthist_test.py::test_evaluate_zerodrift PASSED [ 50%] pyomdrifthist_test.py::test_general_png PASSED [ 62%] pyomdrifthist_test.py::test_general_pdf FAILED [ 75%] pyomdrifthist_test.py::test_general1pdf PASSED [ 87%] pyomdrifthist_test.py::test_general2pdf PASSED [100%] =================================== FAILURES =================================== _______________________________ test_general_pdf _______________________________ def test_general_pdf(): dict_values = dict() dict_values.update({'set' : 'test_omdrift.fits'}) dict_values.update({'pages' : '1,2'}) dict_values.update({'plotfile' : './more/plot1.PDF'}) dict_values.update({'nbins' : 50}) dict_values.update({'trackradius' : 0.5}) > pyomdrifthist.run(dict_values) pyomdrifthist_test.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../lib/python/pysas/pyomdrifthist/pyomdrifthist.py:621: in run status = sasplt.merge_pdf(pdf_files_found, os.path.splitext(output)[0] + '.{}'.format(out_format)) ../../../lib/python/pysas/pysasplot_utils/pysasplot_utils.py:678: in merge_pdf merger = PdfMerger() /sasbuild/tools/python-3.12.4/lib/python3.12/site-packages/pypdf/_merger.py:42: in __init__ deprecation_with_replacement("PdfMerger", "PdfWriter", "5.0.0") /sasbuild/tools/python-3.12.4/lib/python3.12/site-packages/pypdf/_utils.py:384: in deprecation_with_replacement deprecation( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ msg = 'PdfMerger is deprecated and was removed in pypdf 5.0.0. Use PdfWriter instead.' def deprecation(msg: str) -> None: > raise DeprecationError(msg) E pypdf.errors.DeprecationError: PdfMerger is deprecated and was removed in pypdf 5.0.0. Use PdfWriter instead. /sasbuild/tools/python-3.12.4/lib/python3.12/site-packages/pypdf/_utils.py:371: DeprecationError ----------------------------- Captured stderr call ----------------------------- omdrifthist - WARNING - Executing /workspaces/xmm_sas/lib/python/pysas/pyomdrifthist/pyomdrifthist.py {'set': 'test_omdrift.fits', 'pages': '1,2', 'plotfile': './more/plot1.PDF', 'nbins': 50, 'trackradius': 0.5} ------------------------------ Captured log call ------------------------------- WARNING omdrifthist:logger.py:158 Executing /workspaces/xmm_sas/lib/python/pysas/pyomdrifthist/pyomdrifthist.py {'set': 'test_omdrift.fits', 'pages': '1,2', 'plotfile': './more/plot1.PDF', 'nbins': 50, 'trackradius': 0.5} DEBUG omdrifthist:logger.py:158 Using /workspaces/xmm_sas/packages/pyomdrifthist/test/more/plot1.PDF DEBUG omdrifthist:logger.py:158 Working with /workspaces/xmm_sas/packages/pyomdrifthist/test/more/plot1.PDF DEBUG omdrifthist:logger.py:158 Looking for platescale... DEBUG omdrifthist:logger.py:158 List of folders found in CCF path: ['/ccf/priv/dt', '/ccf/pub', '/ccf/priv/rt', '/workspaces/xmm_sas/lib/testccf'] DEBUG omdrifthist:logger.py:158 /ccf/priv/dt does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /ccf/priv/rt does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 /workspaces/xmm_sas/lib/testccf does not contain OM astronometry calibration file. DEBUG omdrifthist:logger.py:158 Found the following OM CCF compatible files: ['/ccf/pub/OM_ASTROMET_0010.CCF'] DEBUG omdrifthist:logger.py:158 CCF file used: /ccf/pub/OM_ASTROMET_0010.CCF. INFO omdrifthist:logger.py:158 Platescale retrieved from ccf file. Value: 0.476513. DEBUG omdrifthist:logger.py:158 File test_omdrift.fits read. DEBUG omdrifthist:logger.py:158 Calculating incremental drift arrays... DEBUG omdrifthist:logger.py:158 Incremental drift arrays calculated. INFO omdrifthist:logger.py:158 Working on plot 1. DEBUG omdrifthist:logger.py:158 Saving plot 1: /workspaces/xmm_sas/packages/pyomdrifthist/test/more/plot1.PDF (/workspaces/xmm_sas/packages/pyomdrifthist/test/more/plot1_1DRIFT_TEMP.PDF) INFO omdrifthist:logger.py:158 Plot produced: /workspaces/xmm_sas/packages/pyomdrifthist/test/more/plot1_1DRIFT_TEMP.PDF INFO omdrifthist:logger.py:158 Working on plot 2. DEBUG omdrifthist:logger.py:158 Saving plot 2: /workspaces/xmm_sas/packages/pyomdrifthist/test/more/plot1.PDF (/workspaces/xmm_sas/packages/pyomdrifthist/test/more/plot1_2DRIFT_TEMP.PDF) INFO omdrifthist:logger.py:158 Plot produced: /workspaces/xmm_sas/packages/pyomdrifthist/test/more/plot1_2DRIFT_TEMP.PDF DEBUG omdrifthist:logger.py:158 More than one PDF created. Merging... DEBUG omdrifthist:logger.py:158 sorted list: ['/workspaces/xmm_sas/packages/pyomdrifthist/test/more/plot1_1DRIFT_TEMP.PDF', '/workspaces/xmm_sas/packages/pyomdrifthist/test/more/plot1_2DRIFT_TEMP.PDF'] =========================== short test summary info ============================ FAILED pyomdrifthist_test.py::test_general_pdf - pypdf.errors.DeprecationErro... ========================= 1 failed, 7 passed in 10.88s ========================= Error while running ./testpyomdrifthist ERROR: one of the tests failed