[Debian-astro-maintainers] Bug#872008: astroplan FTBFS: AttributeError: 'NoneType' object has no attribute 'lineno'

Adrian Bunk bunk at debian.org
Sun Aug 13 13:06:52 UTC 2017


Source: astroplan
Version: 0.2.1-2
Severity: serious

Some recent change in unstable makes astroplan FTBFS:

https://tests.reproducible-builds.org/debian/history/astroplan.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/astroplan.html

...
============================= test session starts ==============================
platform linux2 -- Python 2.7.13+, pytest-3.2.0, py-1.4.34, pluggy-0.4.0

Running tests with astroplan version 0.2.1.
Running tests in lib.linux-x86_64-2.7/astroplan docs.

Date: 2018-09-15T02:47:00

Platform: Linux-4.9.0-3-amd64-x86_64-with-debian-buster-sid

Executable: /usr/bin/python2.7

Full Python Version: 
2.7.13+ (default, Jul 19 2017, 18:15:03) 
[GCC 6.4.0 20170704]

encodings: sys: ascii, locale: ANSI_X3.4-1968, filesystem: ANSI_X3.4-1968, unicode bits: 20
byteorder: little
float info: dig: 15, mant_dig: 15

Numpy: 1.12.1
Scipy: not available
Matplotlib: 2.0.0
Pandas: not available
Astropy: 2.0.1
pytz: 2017.2
pyephem: not available
matplotlib: 2.0.0
nose: not available
pytest-mpl: not available
Using Astropy options: remote_data: none.

rootdir: /tmp/astroplan-test-c0dPUn, inifile: setup.cfg
collected 104 items

astroplan/constraints.py ....
astroplan/observer.py .................
astroplan/target.py .
astroplan/plots/tests/test_sky.py .
astroplan/tests/test_constraints.py ....................
astroplan/tests/test_moon.py .
astroplan/tests/test_observer.py ..........................
astroplan/tests/test_scheduling.py ............
astroplan/tests/test_target.py ...
astroplan/tests/test_utils.py s...
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/main.py", line 110, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/main.py", line 146, in _main
INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 745, in __call__
INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 339, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 334, in <lambda>
INTERNALERROR>     _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 614, in execute
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/main.py", line 169, in pytest_runtestloop
INTERNALERROR>     item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 745, in __call__
INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 339, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 334, in <lambda>
INTERNALERROR>     _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 613, in execute
INTERNALERROR>     return _wrapped_call(hook_impl.function(*args), self.execute)
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 254, in _wrapped_call
INTERNALERROR>     return call_outcome.get_result()
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 280, in get_result
INTERNALERROR>     _reraise(*ex)  # noqa
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 265, in __init__
INTERNALERROR>     self.result = func()
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 613, in execute
INTERNALERROR>     return _wrapped_call(hook_impl.function(*args), self.execute)
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 254, in _wrapped_call
INTERNALERROR>     return call_outcome.get_result()
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 280, in get_result
INTERNALERROR>     _reraise(*ex)  # noqa
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 265, in __init__
INTERNALERROR>     self.result = func()
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py", line 614, in execute
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/runner.py", line 65, in pytest_runtest_protocol
INTERNALERROR>     nodeid=item.nodeid, location=item.location,
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/main.py", line 571, in location
INTERNALERROR>     location = self.reportinfo()
INTERNALERROR>   File "/usr/lib/python2.7/dist-packages/_pytest/doctest.py", line 143, in reportinfo
INTERNALERROR>     return self.fspath, self.dtest.lineno, "[doctest] %s" % self.name
INTERNALERROR> AttributeError: 'NoneType' object has no attribute 'lineno'

============= 88 passed, 1 skipped, 12 warnings in 248.91 seconds ==============
debian/rules:29: recipe for target 'python-test2.7' failed
make[1]: *** [python-test2.7] Error 3
make[1]: Leaving directory '/build/1st/astroplan-0.2.1'
debian/rules:13: recipe for target 'build' failed
make: *** [build] Error 2



More information about the Debian-astro-maintainers mailing list