[Debian-astro-maintainers] Bug#955115: imexam: FTBFS with Sphinx 2.4: AttributeError: can't set attribute

Lucas Nussbaum lucas at debian.org
Fri Mar 27 14:49:26 GMT 2020


Source: imexam
Version: 0.8.1-2
Severity: important
Tags: ftbfs
User: python-modules-team at lists.alioth.debian.org
Usertags: sphinx2.4

Hi,

imexam fails to build with Sphinx 2.4, currently available in
experimental.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> py3versions: no X-Python3-Version in control file, using supported versions
> python3 setup.py build_sphinx
> running build_sphinx
> running build
> running build_py
> running build_ext
> Running Sphinx v2.4.3
> photutils not installed, photometry functionality in imexam() not available
> making output directory... done
> loading intersphinx inventory from https://docs.python.org/3/objects.inv...
> loading intersphinx inventory from /<<PKGBUILDDIR>>/astropy_helpers/astropy_helpers/sphinx/local/python3_local_links.inv...
> loading intersphinx inventory from https://docs.scipy.org/doc/numpy/objects.inv...
> loading intersphinx inventory from https://docs.scipy.org/doc/scipy/reference/objects.inv...
> loading intersphinx inventory from http://matplotlib.org/objects.inv...
> loading intersphinx inventory from http://docs.astropy.org/en/stable/objects.inv...
> loading intersphinx inventory from http://ginga.readthedocs.io/en/latest/objects.inv...
> intersphinx inventory has moved: http://matplotlib.org/objects.inv -> https://matplotlib.org/objects.inv
> intersphinx inventory has moved: http://ginga.readthedocs.io/en/latest/objects.inv -> https://ginga.readthedocs.io/en/latest/objects.inv
> [autosummary] generating autosummary for: imexam/comparison_iraf.rst, imexam/current_capability.rst, imexam/dependencies.rst, imexam/description.rst, imexam/example1.rst, imexam/example2.rst, imexam/example3.rst, imexam/example4.rst, imexam/example5.rst, imexam/examples.rst, imexam/imexam_command.rst, imexam/iraf_imexam.rst, imexam/reference_api.rst, imexam/updates.rst, imexam/walkthrough.rst, imexam/xpa_commands.rst, index.rst
> [automodsumm] imexam/reference_api.rst: found 5 automodsumm entries to generate
> building [mo]: all of 0 po files
> building [html]: all source files
> updating environment: [new config] 22 added, 0 changed, 0 removed
> reading sources... [  4%] api/imexam.connect.Connect
> reading sources... [  9%] api/imexam.ds9_viewer.ds9
> reading sources... [ 13%] api/imexam.ginga_viewer.ginga
> reading sources... [ 18%] api/imexam.ginga_viewer.ginga_general
> reading sources... [ 22%] api/imexam.imexamine.Imexamine
> reading sources... [ 27%] imexam/comparison_iraf
> reading sources... [ 31%] imexam/current_capability
> reading sources... [ 36%] imexam/dependencies
> reading sources... [ 40%] imexam/description
> reading sources... [ 45%] imexam/example1
> reading sources... [ 50%] imexam/example2
> reading sources... [ 54%] imexam/example3
> reading sources... [ 59%] imexam/example4
> reading sources... [ 63%] imexam/example5
> reading sources... [ 68%] imexam/examples
> reading sources... [ 72%] imexam/imexam_command
> reading sources... [ 77%] imexam/iraf_imexam
> reading sources... [ 81%] imexam/reference_api
> /usr/lib/python3/dist-packages/astropy/config/configuration.py:557: ConfigurationMissingWarning: Configuration defaults will be used due to FileNotFoundError:2 on None
>   warn(ConfigurationMissingWarning(msg))
> WARNING: CacheMissingWarning: Remote data cache could not be accessed due to FileNotFoundError: [Errno 2] No such file or directory: '/sbuild-nonexistent/.astropy' [astropy.utils.data]
> WARNING: CacheMissingWarning: Not clearing data cache - cache inaccessible due to FileNotFoundError: [Errno 2] No such file or directory: '/sbuild-nonexistent/.astropy' [astropy.utils.data]
> WARNING: CacheMissingWarning: ('Cache directory cannot be read or created, providing data in temporary file instead.', '/tmp/astropy-download-18637-1l6317ug') [astropy.utils.data]
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:715: SyntaxWarning: "is not" with a literal. Did you mean "!="?
>   if fitform.name is not "Polynomial1D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:743: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   if fitform.name is "Gaussian1D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:747: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   elif fitform.name is "Moffat1D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:750: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   elif fitform.name is "MexicanHat1D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:753: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   elif fitform.name is "Polynomial1D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:757: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   elif fitform.name is "AiryDisk2D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:767: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   if fitform.name is "AiryDisk2D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:798: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   if fitform.name is "Gaussian1D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:808: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   elif fitform.name is "Moffat1D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:816: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   elif fitform.name is "MexicanHat1D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:822: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   elif fitform.name is "Polynomial1D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:827: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   elif fitform.name is "AiryDisk2D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:1087: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   if fitform.name is "Gaussian1D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:1103: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   elif fitform.name is "Moffat1D":
> /<<PKGBUILDDIR>>/build/lib.linux-x86_64-3.8/imexam/imexamine.py:1118: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   elif fitform.name is "MexicanHat1D":
> 
> Exception occurred:
>   File "/<<PKGBUILDDIR>>/astropy_helpers/astropy_helpers/extern/automodapi/automodsumm.py", line 136, in run
>     self.warnings = []
> AttributeError: can't set attribute
> The full traceback has been saved in /tmp/sphinx-err-0xd_10zf.log, if you want to report the issue to the developers.
> Please also report this if it was a user error, so that a better error message can be provided next time.
> A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
> /usr/lib/python3/dist-packages/astropy/config/configuration.py:557: ConfigurationMissingWarning: Configuration defaults will be used due to FileNotFoundError:2 on None
>   warn(ConfigurationMissingWarning(msg))
> /usr/lib/python3/dist-packages/astropy_helpers/setup_helpers.py:161: AstropyDeprecationWarning: The package argument to generate_version_py has been deprecated and will be removed in future. Specify the package name in setup.cfg instead
>   warnings.warn('The package argument to generate_version_py has '
> /usr/lib/python3/dist-packages/astropy_helpers/setup_helpers.py:166: AstropyDeprecationWarning: The version argument to generate_version_py has been deprecated and will be removed in future. Specify the version number in setup.cfg instead
>   warnings.warn('The version argument to generate_version_py has '
> /usr/lib/python3/dist-packages/astropy_helpers/setup_helpers.py:171: AstropyDeprecationWarning: The release argument to generate_version_py has been deprecated and will be removed in future. We now use the presence of the "dev" string in the version to determine whether this is a release
>   warnings.warn('The release argument to generate_version_py has '
> /usr/lib/python3/dist-packages/astropy_helpers/setup_helpers.py:186: AstropyDeprecationWarning: Specifying the package name using the "package_name" option in setup.cfg is deprecated - use the "name" option instead.
>   warnings.warn('Specifying the package name using the "package_name" '
> /usr/lib/python3/dist-packages/astropy_helpers/version_helpers.py:239: AstropyDeprecationWarning: The packagename argument to generate_version_py has been deprecated and will be removed in future. Specify the package name in setup.cfg instead
>   warnings.warn('The packagename argument to generate_version_py has '
> /usr/lib/python3/dist-packages/astropy_helpers/version_helpers.py:244: AstropyDeprecationWarning: The version argument to generate_version_py has been deprecated and will be removed in future. Specify the version number in setup.cfg instead
>   warnings.warn('The version argument to generate_version_py has '
> /usr/lib/python3/dist-packages/astropy_helpers/version_helpers.py:249: AstropyDeprecationWarning: The release argument to generate_version_py has been deprecated and will be removed in future. We now use the presence of the "dev" string in the version to determine whether this is a release
>   warnings.warn('The release argument to generate_version_py has '
> /usr/lib/python3/dist-packages/astropy_helpers/version_helpers.py:264: AstropyDeprecationWarning: Specifying the package name using the "package_name" option in setup.cfg is deprecated - use the "name" option instead.
>   warnings.warn('Specifying the package name using the "package_name" '
> Sphinx Documentation subprocess failed with return code 2
> make[1]: *** [debian/rules:19: override_dh_installdocs-indep] Error 2

The full build log is available from:
   http://qa-logs.debian.net/2020/03/26/imexam_0.8.1-2_unstable_sphinx243.log

Please see [1] for Sphinx changelog, which may give a hint of what changes in
Sphinx caused this error.

Also see [2] for the list of deprecated/removed APIs and possible alternatives
to them.

Sphinx 2.4 is going to be uploaded to unstable in a couple of weeks. When that
happens, the severity of this bug will be bumped to serious.

In case you have questions, please Cc sphinx at packages.debian.org on reply.

[1]: https://www.sphinx-doc.org/en/2.0/changes.html
[2]: https://www.sphinx-doc.org/en/2.0/extdev/deprecated.html#dev-deprecated-apis

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!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Debian-astro-maintainers mailing list