[Debian-pan-maintainers] Bug#1077950: navarp: FTBFS: failing tests

Santiago Vila sanvila at debian.org
Sun Aug 4 23:52:29 BST 2024


Package: src:navarp
Version: 1.6.0-3
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --with python3,sphinxdoc --buildsystem=pybuild
    dh_update_autotools_config -O--buildsystem=pybuild
    dh_autoreconf -O--buildsystem=pybuild
    dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:311: python3.12 setup.py config
/<<PKGBUILDDIR>>/setup.py:6: SyntaxWarning: invalid escape sequence '\ '
   "NavARP\n============\n\n**Nav**\ igation tools for **A**\ ngle **R**\ "
/<<PKGBUILDDIR>>/setup.py:7: SyntaxWarning: invalid escape sequence '\ '
   "esolved **P**\ hotoemission spectroscopy data, *i.e.* a **companion "
running config
    debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build
I: pybuild base:311: /usr/bin/python3 setup.py build
/<<PKGBUILDDIR>>/setup.py:6: SyntaxWarning: invalid escape sequence '\ '
   "NavARP\n============\n\n**Nav**\ igation tools for **A**\ ngle **R**\ "
/<<PKGBUILDDIR>>/setup.py:7: SyntaxWarning: invalid escape sequence '\ '
   "esolved **P**\ hotoemission spectroscopy data, *i.e.* a **companion "
running build
running build_py
file navarp.py (for module navarp) not found
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp
copying navarp/navarp_gui.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp
copying navarp/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/utils
copying navarp/utils/navplt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/utils
copying navarp/utils/ktransf.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/utils
copying navarp/utils/fermilevel.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/utils
copying navarp/utils/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/utils
copying navarp/utils/kinterp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/utils
copying navarp/utils/isomclass.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/utils
copying navarp/utils/navfile.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/utils
copying navarp/utils/isocut.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/utils
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/extras
copying navarp/extras/simulation.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/extras
copying navarp/extras/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/extras
running egg_info
creating navarp.egg-info
writing navarp.egg-info/PKG-INFO
writing dependency_links to navarp.egg-info/dependency_links.txt
writing entry points to navarp.egg-info/entry_points.txt
writing requirements to navarp.egg-info/requires.txt
writing top-level names to navarp.egg-info/top_level.txt
writing manifest file 'navarp.egg-info/SOURCES.txt'
file navarp.py (for module navarp) not found
reading manifest file 'navarp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'navarp.egg-info/SOURCES.txt'
/usr/lib/python3/dist-packages/setuptools/command/build_py.py:215: _Warning: Package 'navarp.gui' is absent from the `packages` configuration.
!!

         ********************************************************************************
         ############################
         # Package would be ignored #
         ############################
         Python recognizes 'navarp.gui' as an importable package[^1],
         but it is absent from setuptools' `packages` configuration.

         This leads to an ambiguous overall configuration. If you want to distribute this
         package, please make sure that 'navarp.gui' is explicitly added
         to the `packages` configuration field.

         Alternatively, you can also rely on setuptools' discovery methods
         (for example by using `find_namespace_packages(...)`/`find_namespace:`
         instead of `find_packages(...)`/`find:`).

         You can read more about "package discovery" on setuptools documentation page:

         - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

         If you don't want 'navarp.gui' to be distributed and are
         already explicitly excluding 'navarp.gui' via
         `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
         you can try to use `exclude_package_data`, or `include-package-data=False` in
         combination with a more fine grained `package-data` configuration.

         You can read more about "package data files" on setuptools documentation page:

         - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


         [^1]: For Python, any directory (with suitable naming) can be imported,
               even if it does not contain any `.py` files.
               On the other hand, currently there is no concept of package data
               directory, all directories are treated like packages.
         ********************************************************************************

!!
   check.warn(importable)
/usr/lib/python3/dist-packages/setuptools/command/build_py.py:215: _Warning: Package 'navarp.gui.icons' is absent from the `packages` configuration.
!!

         ********************************************************************************
         ############################
         # Package would be ignored #
         ############################
         Python recognizes 'navarp.gui.icons' as an importable package[^1],
         but it is absent from setuptools' `packages` configuration.

         This leads to an ambiguous overall configuration. If you want to distribute this
         package, please make sure that 'navarp.gui.icons' is explicitly added
         to the `packages` configuration field.

         Alternatively, you can also rely on setuptools' discovery methods
         (for example by using `find_namespace_packages(...)`/`find_namespace:`
         instead of `find_packages(...)`/`find:`).

         You can read more about "package discovery" on setuptools documentation page:

         - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

         If you don't want 'navarp.gui.icons' to be distributed and are
         already explicitly excluding 'navarp.gui.icons' via
         `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
         you can try to use `exclude_package_data`, or `include-package-data=False` in
         combination with a more fine grained `package-data` configuration.

         You can read more about "package data files" on setuptools documentation page:

         - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


         [^1]: For Python, any directory (with suitable naming) can be imported,
               even if it does not contain any `.py` files.
               On the other hand, currently there is no concept of package data
               directory, all directories are treated like packages.
         ********************************************************************************

!!
   check.warn(importable)
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/gui
copying navarp/gui/about.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/gui
copying navarp/gui/export.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/gui
copying navarp/gui/main.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/gui
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/gui/icons
copying navarp/gui/icons/navarp.svg -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_navarp/build/navarp/gui/icons
file navarp.py (for module navarp) not found
PYTHONPATH=. python3 -m sphinx -N -bhtml docs/ build/html
Running Sphinx v7.3.7
WARNING: Invalid configuration value found: 'language = None'. Update your configuration to a valid language code. Falling back to 'en' (English).
making output directory... done
Using Sphinx-Gallery to convert rst text blocks to markdown for .ipynb files.
generating gallery...
<unknown>:184: SyntaxWarning: invalid escape sequence '\:'
<unknown>:195: SyntaxWarning: invalid escape sequence '\:'
<unknown>:191: SyntaxWarning: invalid escape sequence '\:'
<unknown>:202: SyntaxWarning: invalid escape sequence '\:'
generating gallery for auto_examples... [ 14%] plot_basic_commands.py
generating gallery for auto_examples... [ 29%] plot_export_isoenergy_as_nxs_or_itx.py
WARNING:
../examples/plot_export_isoenergy_as_nxs_or_itx.py unexpectedly failed to execute correctly:

     Traceback (most recent call last):
       File "/<<PKGBUILDDIR>>/examples/plot_export_isoenergy_as_nxs_or_itx.py", line 76, in <module>
         isoatfermi = entry.isoenergy(0, 0.02, kbins=[1000, 800])
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 621, in isoenergy
         return isomclass.IsoEnergy(
                ^^^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/isomclass.py", line 509, in __init__
         self.dataprocessing(norm_mode, sigma, order, curvature, kbins)
       File "/<<PKGBUILDDIR>>/navarp/utils/isomclass.py", line 557, in dataprocessing
         self.kx_interp, self.ks_interp, self.data = kinterp.get_isoen(
                                                     ^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/kinterp.py", line 157, in get_isoen
         isoen_interp = get_isoen_from_kx_ky_interp(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/kinterp.py", line 127, in get_isoen_from_kx_ky_interp
         isoen_interp = get_isoen_from_kxy_interp(kxy_interp, kx, ky, isoen)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/kinterp.py", line 95, in get_isoen_from_kxy_interp
         polygon = Polygon(kxy_border, True, alpha=0.5)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     TypeError: Polygon.__init__() takes 2 positional arguments but 3 were given

generating gallery for auto_examples... [ 43%] plot_postprocessing_isoscan.py
generating gallery for auto_examples... [ 57%] plot_interpolation_gr_deflector_scan.py
WARNING:
../examples/plot_interpolation_gr_deflector_scan.py unexpectedly failed to execute correctly:

     Traceback (most recent call last):
       File "/<<PKGBUILDDIR>>/examples/plot_interpolation_gr_deflector_scan.py", line 111, in <module>
         isok = entry.isok(kx_pts, ky_pts, klabels)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 650, in isok
         return isomclass.IsoK(
                ^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/isomclass.py", line 1152, in __init__
         self.k_pts_bin] = kinterp.get_isok(
                           ^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/kinterp.py", line 427, in get_isok
         isok_interp[:, i] = get_isoen_from_kxy_interp(
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/kinterp.py", line 95, in get_isoen_from_kxy_interp
         polygon = Polygon(kxy_border, True, alpha=0.5)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     TypeError: Polygon.__init__() takes 2 positional arguments but 3 were given

generating gallery for auto_examples... [ 71%] plot_cone_old_way.py
generating gallery for auto_examples... [ 86%] plot_gr_hv_scan.py
<unknown>:184: SyntaxWarning: invalid escape sequence '\:'
<unknown>:195: SyntaxWarning: invalid escape sequence '\:'
generating gallery for auto_examples... [100%] plot_gr_deflector_scan.py
<unknown>:191: SyntaxWarning: invalid escape sequence '\:'
<unknown>:202: SyntaxWarning: invalid escape sequence '\:'

computation time summary:
     - ../examples/plot_interpolation_gr_deflector_scan.py:   6.94 sec   0.0 MB
     - ../examples/plot_export_isoenergy_as_nxs_or_itx.py:    6.68 sec   0.0 MB
     - ../examples/plot_gr_hv_scan.py:                        3.39 sec   0.0 MB
     - ../examples/plot_gr_deflector_scan.py:                 2.83 sec   0.0 MB
     - ../examples/plot_basic_commands.py:                    1.40 sec   0.0 MB
     - ../examples/plot_cone_old_way.py:                      1.05 sec   0.0 MB
     - ../examples/plot_postprocessing_isoscan.py:            0.85 sec   0.0 MB
building [mo]: targets for 0 po files that are out of date
writing output...
building [html]: targets for 8 source files that are out of date
updating environment: [new config] 16 added, 0 changed, 0 removed
reading sources... [  6%] authors
reading sources... [ 12%] auto_examples/index
reading sources... [ 19%] auto_examples/plot_basic_commands
reading sources... [ 25%] auto_examples/plot_cone_old_way
reading sources... [ 31%] auto_examples/plot_export_isoenergy_as_nxs_or_itx
reading sources... [ 38%] auto_examples/plot_gr_deflector_scan
reading sources... [ 44%] auto_examples/plot_gr_hv_scan
reading sources... [ 50%] auto_examples/plot_interpolation_gr_deflector_scan
reading sources... [ 56%] auto_examples/plot_postprocessing_isoscan
reading sources... [ 62%] changelog
reading sources... [ 69%] contributing
reading sources... [ 75%] index
reading sources... [ 81%] installation
reading sources... [ 88%] update
reading sources... [ 94%] usage
reading sources... [100%] utils

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets... copying downloadable files... [  6%] auto_examples/auto_examples_python.zip
copying downloadable files... [ 12%] auto_examples/auto_examples_jupyter.zip
copying downloadable files... [ 19%] auto_examples/plot_basic_commands.ipynb
copying downloadable files... [ 25%] auto_examples/plot_basic_commands.py
copying downloadable files... [ 31%] auto_examples/plot_cone_old_way.ipynb
copying downloadable files... [ 38%] auto_examples/plot_cone_old_way.py
copying downloadable files... [ 44%] auto_examples/plot_export_isoenergy_as_nxs_or_itx.ipynb
copying downloadable files... [ 50%] auto_examples/plot_export_isoenergy_as_nxs_or_itx.py
copying downloadable files... [ 56%] auto_examples/plot_gr_deflector_scan.ipynb
copying downloadable files... [ 62%] auto_examples/plot_gr_deflector_scan.py
copying downloadable files... [ 69%] auto_examples/plot_gr_hv_scan.ipynb
copying downloadable files... [ 75%] auto_examples/plot_gr_hv_scan.py
copying downloadable files... [ 81%] auto_examples/plot_interpolation_gr_deflector_scan.ipynb
copying downloadable files... [ 88%] auto_examples/plot_interpolation_gr_deflector_scan.py
copying downloadable files... [ 94%] auto_examples/plot_postprocessing_isoscan.ipynb
copying downloadable files... [100%] auto_examples/plot_postprocessing_isoscan.py

copying static files... done
copying extra files... done
done
writing output... [  6%] authors
writing output... [ 12%] auto_examples/index
writing output... [ 19%] auto_examples/plot_basic_commands
writing output... [ 25%] auto_examples/plot_cone_old_way
writing output... [ 31%] auto_examples/plot_export_isoenergy_as_nxs_or_itx
writing output... [ 38%] auto_examples/plot_gr_deflector_scan
writing output... [ 44%] auto_examples/plot_gr_hv_scan
writing output... [ 50%] auto_examples/plot_interpolation_gr_deflector_scan
writing output... [ 56%] auto_examples/plot_postprocessing_isoscan
writing output... [ 62%] changelog
writing output... [ 69%] contributing
writing output... [ 75%] index
writing output... [ 81%] installation
writing output... [ 88%] update
writing output... [ 94%] usage
writing output... [100%] utils

generating indices... genindex py-modindex done
writing additional pages... search done
copying images... [ 12%] auto_examples/images/thumb/sphx_glr_plot_basic_commands_thumb.png
copying images... [ 25%] auto_examples/images/thumb/sphx_glr_plot_export_isoenergy_as_nxs_or_itx_thumb.png
copying images... [ 38%] auto_examples/images/thumb/sphx_glr_plot_postprocessing_isoscan_thumb.png
copying images... [ 50%] auto_examples/images/thumb/sphx_glr_plot_interpolation_gr_deflector_scan_thumb.png
copying images... [ 62%] auto_examples/images/thumb/sphx_glr_plot_cone_old_way_thumb.png
copying images... [ 75%] auto_examples/images/thumb/sphx_glr_plot_gr_hv_scan_thumb.png
copying images... [ 88%] auto_examples/images/thumb/sphx_glr_plot_gr_deflector_scan_thumb.png
copying images... [100%] ../images/intro.gif

dumping search index in English (code: en)... done
dumping object inventory... done

Sphinx-Gallery successfully executed 5 out of 7 files subselected by:

     gallery_conf["filename_pattern"] = '/plot'
     gallery_conf["ignore_pattern"]   = '__init__\\.py'

after excluding 0 files that had previously been run (based on MD5).


Extension error:
Here is a summary of the problems encountered when running the examples:

Unexpected failing examples:

     ../examples/plot_export_isoenergy_as_nxs_or_itx.py failed leaving traceback:

     Traceback (most recent call last):
       File "/<<PKGBUILDDIR>>/examples/plot_export_isoenergy_as_nxs_or_itx.py", line 76, in <module>
         isoatfermi = entry.isoenergy(0, 0.02, kbins=[1000, 800])
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 621, in isoenergy
         return isomclass.IsoEnergy(
                ^^^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/isomclass.py", line 509, in __init__
         self.dataprocessing(norm_mode, sigma, order, curvature, kbins)
       File "/<<PKGBUILDDIR>>/navarp/utils/isomclass.py", line 557, in dataprocessing
         self.kx_interp, self.ks_interp, self.data = kinterp.get_isoen(
                                                     ^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/kinterp.py", line 157, in get_isoen
         isoen_interp = get_isoen_from_kx_ky_interp(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/kinterp.py", line 127, in get_isoen_from_kx_ky_interp
         isoen_interp = get_isoen_from_kxy_interp(kxy_interp, kx, ky, isoen)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/kinterp.py", line 95, in get_isoen_from_kxy_interp
         polygon = Polygon(kxy_border, True, alpha=0.5)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     TypeError: Polygon.__init__() takes 2 positional arguments but 3 were given

     ../examples/plot_interpolation_gr_deflector_scan.py failed leaving traceback:

     Traceback (most recent call last):
       File "/<<PKGBUILDDIR>>/examples/plot_interpolation_gr_deflector_scan.py", line 111, in <module>
         isok = entry.isok(kx_pts, ky_pts, klabels)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 650, in isok
         return isomclass.IsoK(
                ^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/isomclass.py", line 1152, in __init__
         self.k_pts_bin] = kinterp.get_isok(
                           ^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/kinterp.py", line 427, in get_isok
         isok_interp[:, i] = get_isoen_from_kxy_interp(
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
       File "/<<PKGBUILDDIR>>/navarp/utils/kinterp.py", line 95, in get_isoen_from_kxy_interp
         polygon = Polygon(kxy_border, True, alpha=0.5)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     TypeError: Polygon.__init__() takes 2 positional arguments but 3 were given

-------------------------------------------------------------------------------
make[1]: *** [debian/rules:18: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:10: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202408/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the Debian-pan-maintainers mailing list