[Python-modules-team] Bug#902456: cf-python: FTBFS in buster/sid (AttributeError: 'module' object has no attribute 'netcdftime')

Santiago Vila sanvila at debian.org
Tue Jun 26 23:52:30 BST 2018


Package: src:cf-python
Version: 1.3.2+dfsg1-4
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster with "dpkg-buildpackage -A"
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep  --with python2,sphinxdoc --buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:217: python2.7 setup.py config 
running config
   debian/rules override_dh_auto_build-indep
make[1]: Entering directory '/<<BUILDDIR>>/cf-python-1.3.2+dfsg1'
PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -E -b html docs/source docs/build/html
Running Sphinx v1.7.5

Configuration error:
There is a programable error in your configuration file:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/sphinx/config.py", line 161, in __init__
    execfile_(filename, config)
  File "/usr/lib/python2.7/dist-packages/sphinx/util/pycompat.py", line 150, in execfile_
    exec_(code, _globals)
  File "/usr/lib/python2.7/dist-packages/six.py", line 709, in exec_
    exec("""exec _code_ in _globs_, _locs_""")
  File "<string>", line 1, in <module>
  File "conf.py", line 340, in <module>
    import inspect, cf
  File "/<<BUILDDIR>>/cf-python-1.3.2+dfsg1/cf/__init__.py", line 81, in <module>
    from .variable             import Variable
  File "/<<BUILDDIR>>/cf-python-1.3.2+dfsg1/cf/variable.py", line 21, in <module>
    from .query      import Query
  File "/<<BUILDDIR>>/cf-python-1.3.2+dfsg1/cf/query.py", line 10, in <module>
    from .cfdatetime import Datetime, dt
  File "/<<BUILDDIR>>/cf-python-1.3.2+dfsg1/cf/cfdatetime.py", line 12, in <module>
    from .units        import Units
  File "/<<BUILDDIR>>/cf-python-1.3.2+dfsg1/cf/units.py", line 259, in <module>
    _netCDF4_netcdftime_utime = netCDF4.netcdftime.utime
AttributeError: 'module' object has no attribute 'netcdftime'

debian/rules:14: recipe for target 'override_dh_auto_build-indep' failed
make[1]: *** [override_dh_auto_build-indep] Error 2
make[1]: Leaving directory '/<<BUILDDIR>>/cf-python-1.3.2+dfsg1'
debian/rules:11: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is how the build ends in my autobuilder and it's not
necessarily the relevant part.

The failure is not, however, related to using dpkg-buildpackage -A,
as it also fails in reproducible builds:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/cf-python.html

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 page for this package.

Thanks.



More information about the Python-modules-team mailing list