[Debian-pan-maintainers] Bug#1030495: navarp: FTBFS: AttributeError: module 'numpy' has no attribute 'complex'

Lucas Nussbaum lucas at debian.org
Sat Feb 4 07:56:51 GMT 2023


Source: navarp
Version: 1.3.0-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230203 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>>'
> dh_auto_build
> I: pybuild base:240: /usr/bin/python3 setup.py build 
> running build
> running build_py
> file navarp.py (for module navarp) not found
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp
> copying navarp/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp
> copying navarp/navarp_gui.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/utils
> copying navarp/utils/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/utils
> copying navarp/utils/kinterp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/utils
> copying navarp/utils/navplt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/utils
> copying navarp/utils/navfile.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/utils
> copying navarp/utils/isomclass.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/utils
> copying navarp/utils/fermilevel.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/utils
> copying navarp/utils/isocut.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/utils
> copying navarp/utils/ktransf.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/utils
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/extras
> copying navarp/extras/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/extras
> copying navarp/extras/simulation.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_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:202: SetuptoolsDeprecationWarning:     Installing 'navarp.gui' as data is deprecated, please list it in `packages`.
>     !!
> 
> 
>     ############################
>     # Package would be ignored #
>     ############################
>     Python recognizes 'navarp.gui' as an importable package,
>     but it is not listed in the `packages` configuration of setuptools.
> 
>     'navarp.gui' has been automatically added to the distribution only
>     because it may contain data files, but this behavior is likely to change
>     in future versions of setuptools (and therefore is considered deprecated).
> 
>     Please make sure that 'navarp.gui' is included as a package by using
>     the `packages` configuration field or the proper discovery methods
>     (for example by using `find_namespace_packages(...)`/`find_namespace:`
>     instead of `find_packages(...)`/`find:`).
> 
>     You can read more about "package discovery" and "data files" on setuptools
>     documentation page.
> 
> 
> !!
> 
>   check.warn(importable)
> /usr/lib/python3/dist-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'navarp.gui.icons' as data is deprecated, please list it in `packages`.
>     !!
> 
> 
>     ############################
>     # Package would be ignored #
>     ############################
>     Python recognizes 'navarp.gui.icons' as an importable package,
>     but it is not listed in the `packages` configuration of setuptools.
> 
>     'navarp.gui.icons' has been automatically added to the distribution only
>     because it may contain data files, but this behavior is likely to change
>     in future versions of setuptools (and therefore is considered deprecated).
> 
>     Please make sure that 'navarp.gui.icons' is included as a package by using
>     the `packages` configuration field or the proper discovery methods
>     (for example by using `find_namespace_packages(...)`/`find_namespace:`
>     instead of `find_packages(...)`/`find:`).
> 
>     You can read more about "package discovery" and "data files" on setuptools
>     documentation page.
> 
> 
> !!
> 
>   check.warn(importable)
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/gui
> copying navarp/gui/about.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/gui
> copying navarp/gui/export.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/gui
> copying navarp/gui/main.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/gui
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/gui/icons
> copying navarp/gui/icons/navarp.svg -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_navarp/build/navarp/gui/icons
> file navarp.py (for module navarp) not found
> PYTHONPATH=. python3 -m sphinx -N -bhtml docs/ build/html
> Running Sphinx v5.3.0
> WARNING: Invalid configuration value found: 'language = None'. Update your configuration to a valid language code. Falling back to 'en' (English).
> making output directory... done
> generating gallery...
> Using Sphinx-Gallery to convert rst text blocks to markdown for .ipynb files.
> generating gallery for auto_examples... [ 14%] plot_basic_commands.py
> WARNING: /<<PKGBUILDDIR>>/examples/plot_basic_commands.py failed to execute correctly: Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/examples/plot_basic_commands.py", line 18, in <module>
>     from navarp.utils import navfile
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> generating gallery for auto_examples... [ 28%] plot_export_isoenergy_as_nxs_or_itx.py
> WARNING: /<<PKGBUILDDIR>>/examples/plot_export_isoenergy_as_nxs_or_itx.py failed to execute correctly: Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/examples/plot_export_isoenergy_as_nxs_or_itx.py", line 27, in <module>
>     from navarp.extras.simulation import get_tbgraphene_deflector
>   File "/<<PKGBUILDDIR>>/navarp/extras/simulation.py", line 34, in <module>
>     from navarp.utils import navfile, ktransf
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> generating gallery for auto_examples... [ 42%] plot_postprocessing_isoscan.py
> WARNING: /<<PKGBUILDDIR>>/examples/plot_postprocessing_isoscan.py failed to execute correctly: Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/examples/plot_postprocessing_isoscan.py", line 27, in <module>
>     from navarp.extras.simulation import get_tbgraphene_deflector
>   File "/<<PKGBUILDDIR>>/navarp/extras/simulation.py", line 34, in <module>
>     from navarp.utils import navfile, ktransf
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> generating gallery for auto_examples... [ 57%] plot_interpolation_gr_deflector_scan.py
> WARNING: /<<PKGBUILDDIR>>/examples/plot_interpolation_gr_deflector_scan.py failed to execute correctly: Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/examples/plot_interpolation_gr_deflector_scan.py", line 29, in <module>
>     from navarp.extras.simulation import get_tbgraphene_deflector
>   File "/<<PKGBUILDDIR>>/navarp/extras/simulation.py", line 34, in <module>
>     from navarp.utils import navfile, ktransf
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> generating gallery for auto_examples... [ 71%] plot_cone_old_way.py
> WARNING: /<<PKGBUILDDIR>>/examples/plot_cone_old_way.py failed to execute correctly: Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/examples/plot_cone_old_way.py", line 21, in <module>
>     from navarp.utils import navfile, fermilevel, navplt, ktransf, isocut
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> generating gallery for auto_examples... [ 85%] plot_gr_hv_scan.py
> WARNING: /<<PKGBUILDDIR>>/examples/plot_gr_hv_scan.py failed to execute correctly: Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/examples/plot_gr_hv_scan.py", line 27, in <module>
>     from navarp.extras.simulation import get_tbgraphene_hv
>   File "/<<PKGBUILDDIR>>/navarp/extras/simulation.py", line 34, in <module>
>     from navarp.utils import navfile, ktransf
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> generating gallery for auto_examples... [100%] plot_gr_deflector_scan.py
> WARNING: /<<PKGBUILDDIR>>/examples/plot_gr_deflector_scan.py failed to execute correctly: Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/examples/plot_gr_deflector_scan.py", line 27, in <module>
>     from navarp.extras.simulation import get_tbgraphene_deflector
>   File "/<<PKGBUILDDIR>>/navarp/extras/simulation.py", line 34, in <module>
>     from navarp.utils import navfile, ktransf
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> 
> computation time summary:
>     - ../examples/plot_basic_commands.py:                    0.38 sec   0.0 MB
>     - ../examples/plot_export_isoenergy_as_nxs_or_itx.py:    0.20 sec   0.0 MB
>     - ../examples/plot_interpolation_gr_deflector_scan.py:   0.01 sec   0.0 MB
>     - ../examples/plot_gr_deflector_scan.py:                 0.00 sec   0.0 MB
>     - ../examples/plot_gr_hv_scan.py:                        0.00 sec   0.0 MB
>     - ../examples/plot_postprocessing_isoscan.py:            0.00 sec   0.0 MB
>     - ../examples/plot_cone_old_way.py:                      0.00 sec   0.0 MB
> building [mo]: targets for 0 po files that are out of date
> building [html]: targets for 8 source files that are out of date
> updating environment: [new config] 17 added, 0 changed, 0 removed
> reading sources... [  5%] authors
> reading sources... [ 11%] auto_examples/index
> reading sources... [ 17%] auto_examples/plot_basic_commands
> reading sources... [ 23%] auto_examples/plot_cone_old_way
> reading sources... [ 29%] auto_examples/plot_export_isoenergy_as_nxs_or_itx
> reading sources... [ 35%] auto_examples/plot_gr_deflector_scan
> reading sources... [ 41%] auto_examples/plot_gr_hv_scan
> reading sources... [ 47%] auto_examples/plot_interpolation_gr_deflector_scan
> reading sources... [ 52%] auto_examples/plot_postprocessing_isoscan
> reading sources... [ 58%] auto_examples/sg_execution_times
> reading sources... [ 64%] changelog
> reading sources... [ 70%] contributing
> reading sources... [ 76%] index
> reading sources... [ 82%] installation
> reading sources... [ 88%] update
> reading sources... [ 94%] usage
> reading sources... [100%] utils
> 
> WARNING: autodoc: failed to import module 'navfile' from module 'navarp.utils'; the following exception was raised:
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/sphinx/ext/autodoc/importer.py", line 58, in import_module
>     return importlib.import_module(modname)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
>   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> writing output... [  5%] authors
> writing output... [ 11%] auto_examples/index
> writing output... [ 17%] auto_examples/plot_basic_commands
> writing output... [ 23%] auto_examples/plot_cone_old_way
> writing output... [ 29%] auto_examples/plot_export_isoenergy_as_nxs_or_itx
> writing output... [ 35%] auto_examples/plot_gr_deflector_scan
> writing output... [ 41%] auto_examples/plot_gr_hv_scan
> writing output... [ 47%] auto_examples/plot_interpolation_gr_deflector_scan
> writing output... [ 52%] auto_examples/plot_postprocessing_isoscan
> writing output... [ 58%] auto_examples/sg_execution_times
> writing output... [ 64%] changelog
> writing output... [ 70%] contributing
> writing output... [ 76%] index
> writing output... [ 82%] 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... [ 37%] 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... [ 87%] auto_examples/images/thumb/sphx_glr_plot_gr_deflector_scan_thumb.png
> copying images... [100%] ../images/intro.gif
> 
> copying downloadable files... [  6%] auto_examples/auto_examples_python.zip
> copying downloadable files... [ 12%] auto_examples/auto_examples_jupyter.zip
> copying downloadable files... [ 18%] auto_examples/plot_basic_commands.py
> copying downloadable files... [ 25%] auto_examples/plot_basic_commands.ipynb
> copying downloadable files... [ 31%] auto_examples/plot_cone_old_way.py
> copying downloadable files... [ 37%] auto_examples/plot_cone_old_way.ipynb
> copying downloadable files... [ 43%] auto_examples/plot_export_isoenergy_as_nxs_or_itx.py
> copying downloadable files... [ 50%] auto_examples/plot_export_isoenergy_as_nxs_or_itx.ipynb
> copying downloadable files... [ 56%] auto_examples/plot_gr_deflector_scan.py
> copying downloadable files... [ 62%] auto_examples/plot_gr_deflector_scan.ipynb
> copying downloadable files... [ 68%] auto_examples/plot_gr_hv_scan.py
> copying downloadable files... [ 75%] auto_examples/plot_gr_hv_scan.ipynb
> copying downloadable files... [ 81%] auto_examples/plot_interpolation_gr_deflector_scan.py
> copying downloadable files... [ 87%] auto_examples/plot_interpolation_gr_deflector_scan.ipynb
> copying downloadable files... [ 93%] auto_examples/plot_postprocessing_isoscan.py
> copying downloadable files... [100%] auto_examples/plot_postprocessing_isoscan.ipynb
> 
> copying static files... done
> copying extra files... done
> dumping search index in English (code: en)... done
> dumping object inventory... done
> 
> Sphinx-Gallery successfully executed 0 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:
> /<<PKGBUILDDIR>>/examples/plot_basic_commands.py failed leaving traceback:
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/examples/plot_basic_commands.py", line 18, in <module>
>     from navarp.utils import navfile
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> 
> /<<PKGBUILDDIR>>/examples/plot_cone_old_way.py failed leaving traceback:
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/examples/plot_cone_old_way.py", line 21, in <module>
>     from navarp.utils import navfile, fermilevel, navplt, ktransf, isocut
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> 
> /<<PKGBUILDDIR>>/examples/plot_postprocessing_isoscan.py failed leaving traceback:
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/examples/plot_postprocessing_isoscan.py", line 27, in <module>
>     from navarp.extras.simulation import get_tbgraphene_deflector
>   File "/<<PKGBUILDDIR>>/navarp/extras/simulation.py", line 34, in <module>
>     from navarp.utils import navfile, ktransf
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> 
> /<<PKGBUILDDIR>>/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 29, in <module>
>     from navarp.extras.simulation import get_tbgraphene_deflector
>   File "/<<PKGBUILDDIR>>/navarp/extras/simulation.py", line 34, in <module>
>     from navarp.utils import navfile, ktransf
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> 
> /<<PKGBUILDDIR>>/examples/plot_gr_hv_scan.py failed leaving traceback:
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/examples/plot_gr_hv_scan.py", line 27, in <module>
>     from navarp.extras.simulation import get_tbgraphene_hv
>   File "/<<PKGBUILDDIR>>/navarp/extras/simulation.py", line 34, in <module>
>     from navarp.utils import navfile, ktransf
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> 
> /<<PKGBUILDDIR>>/examples/plot_gr_deflector_scan.py failed leaving traceback:
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/examples/plot_gr_deflector_scan.py", line 27, in <module>
>     from navarp.extras.simulation import get_tbgraphene_deflector
>   File "/<<PKGBUILDDIR>>/navarp/extras/simulation.py", line 34, in <module>
>     from navarp.utils import navfile, ktransf
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> 
> /<<PKGBUILDDIR>>/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 27, in <module>
>     from navarp.extras.simulation import get_tbgraphene_deflector
>   File "/<<PKGBUILDDIR>>/navarp/extras/simulation.py", line 34, in <module>
>     from navarp.utils import navfile, ktransf
>   File "/<<PKGBUILDDIR>>/navarp/utils/navfile.py", line 47, in <module>
>     import igor.igorpy as igor  # For opening pxt files
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/igor/igorpy.py", line 24, in <module>
>     from .binarywave import MAXDIMS as _MAXDIMS
>   File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
>     1:_numpy.complex, # NT_CMPLX, makes number complex.
>       ^^^^^^^^^^^^^^
>   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 'complex'
> 
> 
> -------------------------------------------------------------------------------
> make[1]: *** [debian/rules:18: override_dh_auto_build] Error 2


The full build log is available from:
http://qa-logs.debian.net/2023/02/03/navarp_1.3.0-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230203;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230203&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