[Debian-astro-maintainers] Bug#867906: wcsaxes FTBFS with python 3.6 as supported version
Adrian Bunk
bunk at debian.org
Mon Jul 10 13:59:19 UTC 2017
Source: wcsaxes
Version: 0.9-1
Severity: serious
Tags: patch buster sid
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/wcsaxes.html
...
============================= test session starts ==============================
platform linux -- Python 3.6.2rc2, pytest-3.0.6, py-1.4.34, pluggy-0.4.0 -- /usr/bin/python3.6
cachedir: ../.cache
Running tests with wcsaxes version 0.9.
Running tests in lib.linux-x86_64-3.6/wcsaxes docs.
Date: 2017-07-10T00:59:56
Platform: Linux-4.9.0-3-amd64-x86_64-with-debian-buster-sid
Executable: /usr/bin/python3.6
Full Python Version:
3.6.2rc2 (default, Jul 8 2017, 14:29:22)
[GCC 6.4.0 20170704]
encodings: sys: utf-8, locale: ANSI_X3.4-1968, filesystem: ascii
byteorder: little
float info: dig: 15, mant_dig: 15
Numpy: 1.12.1
Scipy: not available
Matplotlib: 2.0.0
h5py: not available
Pandas: not available
Astropy: 1.3.3
Using Astropy options: remote_data.
rootdir: /tmp/wcsaxes-test-28xjlge8, inifile: setup.cfg
collecting ... collected 48 items / 2 errors
==================================== ERRORS ====================================
ERROR collecting lib.linux-x86_64-3.6/wcsaxes/tests/test_formatter_locator.py _
/usr/lib/python3/dist-packages/astropy/tests/pytest_plugins.py:175: in collect
module = self.fspath.pyimport()
/usr/lib/python3/dist-packages/py/_path/local.py:662: in pyimport
__import__(modname)
E File "/tmp/wcsaxes-test-28xjlge8/lib.linux-x86_64-3.6/wcsaxes/tests/test_formatter_locator.py", line 155
E assert fl.formatter([15.392231] * u.degree, None)[0] == "15$^\circ$23'32\""
E ^
E SyntaxError: invalid escape sequence \c
ERROR collecting lib.linux-x86_64-3.6/wcsaxes/tests/test_formatter_locator.py _
/usr/lib/python3/dist-packages/_pytest/python.py:418: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/lib/python3/dist-packages/py/_path/local.py:662: in pyimport
__import__(modname)
E File "/tmp/wcsaxes-test-28xjlge8/lib.linux-x86_64-3.6/wcsaxes/tests/test_formatter_locator.py", line 155
E assert fl.formatter([15.392231] * u.degree, None)[0] == "15$^\circ$23'32\""
E ^
E SyntaxError: invalid escape sequence \c
============================ pytest-warning summary ============================
WC1 None [pytest] section in setup.cfg files is deprecated, use [tool:pytest] instead.
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
================== 1 pytest-warnings, 2 error in 1.45 seconds ==================
/usr/lib/python3/dist-packages/astropy/config/configuration.py:541: ConfigurationMissingWarning: Configuration defaults will be used due to FileNotFoundError:2 on None
warn(ConfigurationMissingWarning(msg))
debian/rules:14: recipe for target 'test-python3.6' failed
make[1]: *** [test-python3.6] Error 2
make[1]: Leaving directory '/build/1st/wcsaxes-0.9'
debian/rules:10: recipe for target 'build' failed
make: *** [build] Error 2
Attached is the patch I found in Ubuntu.
-------------- next part --------------
diff -pruN 0.9-1/debian/patches/invalid-escapes.patch 0.9-1ubuntu1/debian/patches/invalid-escapes.patch
--- 0.9-1/debian/patches/invalid-escapes.patch 1970-01-01 00:00:00.000000000 +0000
+++ 0.9-1ubuntu1/debian/patches/invalid-escapes.patch 2017-06-21 10:15:07.000000000 +0000
@@ -0,0 +1,11 @@
+--- a/wcsaxes/tests/test_formatter_locator.py
++++ b/wcsaxes/tests/test_formatter_locator.py
+@@ -152,7 +152,7 @@
+ assert fl.formatter([15.392231] * u.degree, None)[0] == six.u('15\xb023\'32"')
+ from ..rc_utils import rc_context
+ with rc_context(rc={'text.usetex': True}):
+- assert fl.formatter([15.392231] * u.degree, None)[0] == "15$^\circ$23'32\""
++ assert fl.formatter([15.392231] * u.degree, None)[0] == "15$^\\circ$23'32\""
+
+ @pytest.mark.parametrize(('format'), ['x.xxx', 'dd.ss', 'dd:ss', 'mdd:mm:ss'])
+ def test_invalid_formats(self, format):
diff -pruN 0.9-1/debian/patches/series 0.9-1ubuntu1/debian/patches/series
--- 0.9-1/debian/patches/series 2016-07-04 08:06:47.000000000 +0000
+++ 0.9-1ubuntu1/debian/patches/series 2017-06-21 10:14:26.000000000 +0000
@@ -1,2 +1,3 @@
use_system_astropy_helpers.patch
disable_mpltest.patch
+invalid-escapes.patch
More information about the Debian-astro-maintainers
mailing list