[Debian-astro-maintainers] Bug#1100194: astroplan: FTBFS: ModuleNotFoundError: No module named 'pytz'
Santiago Vila
sanvila at debian.org
Wed Mar 12 16:30:11 GMT 2025
Package: src:astroplan
Version: 0.10.1-1
Severity: serious
Tags: ftbfs trixie sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --with sphinxdoc --buildsystem=pybuild
dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:311: python3.13 setup.py clean
/usr/lib/python3/dist-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
section = defn.get("tool", {})[tool_name]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'setuptools_scm'
running clean
removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.13' does not exist -- can't clean it
debian/rules execute_after_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f astroplan/version.py
rm -rf .cache
rm -rf api
rm -rf build
rm -rf .pybuild
rm -rf astroplan.egg-info
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_autoreconf_clean -O--buildsystem=pybuild
dh_clean -O--buildsystem=pybuild
debian/rules binary
dh binary --with 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.13 setup.py config
/usr/lib/python3/dist-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
section = defn.get("tool", {})[tool_name]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'setuptools_scm'
running config
dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3 setup.py build
/usr/lib/python3/dist-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
section = defn.get("tool", {})[tool_name]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'setuptools_scm'
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan
copying astroplan/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan
copying astroplan/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan
copying astroplan/setup_package.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan
copying astroplan/constraints.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan
copying astroplan/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan
copying astroplan/conftest.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan
copying astroplan/periodic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan
copying astroplan/moon.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan
copying astroplan/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan
copying astroplan/observer.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan
copying astroplan/scheduling.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan
copying astroplan/target.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/tests
copying astroplan/tests/test_utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/tests
copying astroplan/tests/test_moon.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/tests
copying astroplan/tests/test_periodic.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/tests
copying astroplan/tests/test_observer.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/tests
copying astroplan/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/tests
copying astroplan/tests/test_constraints.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/tests
copying astroplan/tests/test_target.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/tests
copying astroplan/tests/test_scheduling.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/tests
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/plots
copying astroplan/plots/finder.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/plots
copying astroplan/plots/time_dependent.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/plots
copying astroplan/plots/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/plots
copying astroplan/plots/mplstyles.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/plots
copying astroplan/plots/sky.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/plots
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/plots/tests
copying astroplan/plots/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/plots/tests
copying astroplan/plots/tests/test_sky.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroplan/build/astroplan/plots/tests
debian/rules execute_after_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
PYTHONPATH=. sphinx-build -D html_last_updated_fmt="December 22, 2024" -D html_show_copyright=0 -N -bhtml docs/ build/html
Running Sphinx v8.1.3
Matplotlib created a temporary cache directory at /tmp/matplotlib-80zg__5w because the default path (/sbuild-nonexistent/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
Configuration error:
There is a programmable error in your configuration file:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sphinx/config.py", line 529, in eval_config_file
exec(code, namespace) # NoQA: S102
~~~~^^^^^^^^^^^^^^^^^
File "/<<PKGBUILDDIR>>/docs/conf.py", line 69, in <module>
__import__(project)
~~~~~~~~~~^^^^^^^^^
File "/<<PKGBUILDDIR>>/astroplan/__init__.py", line 21, in <module>
from .observer import *
File "/<<PKGBUILDDIR>>/astroplan/observer.py", line 17, in <module>
import pytz
ModuleNotFoundError: No module named 'pytz'
make[1]: *** [debian/rules:15: execute_after_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:12: 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/202503/
About the archive rebuild: The build was made on virtual machines 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 add an affects on src:astroplan, so that this is still
visible in the BTS web page for this package.
Thanks.
More information about the Debian-astro-maintainers
mailing list