Your message dated Thu, 24 Feb 2022 17:34:04 +0000
with message-id <e1nni0c-000gkq...@fasolo.debian.org>
and subject line Bug#1005725: fixed in gavodachs 2.5.3+dfsg-1
has caused the Debian Bug report #1005725,
regarding gavodachs2-server: fails to install with new python3-twisted.
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1005725: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005725
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: gavodachs2-server
Version: 2.5+dfsg-1
Severity: serious
Tags: bookworm, sid
https://ci.debian.net/data/autopkgtest/testing/amd64/g/gavodachs/19190406/log.gz
Setting up gavodachs2-server (2.5+dfsg-1) ...
createdb: error: database creation failed: ERROR: database "gavo" already
exists
Creation of gavo database failed; assuming it's already there
and carrying on.
createuser: error: creation of new role failed: ERROR: role "dachsroot"
already exists
*** Error: Oops. Unhandled exception AttributeError.
Exception payload: module 'twisted.web.template' has no attribute
'_ToStan'
dpkg: error processing package gavodachs2-server (--configure):
installed gavodachs2-server package post-installation script subprocess
returned error exit status 1
I attempted to fix that error (debdiff attatched), however it then failed with
a "TypeError: 'Tag' object is not subscriptable", I modified the error handling
to get a backtrace, but it didn't leave me any the wiser as to what the actual
problem was.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gavo/user/cli.py", line 152, in main
sys.exit(initdachs.main())
File "/usr/lib/python3/dist-packages/gavo/user/initdachs.py", line 461, in
main
initDB(dsn)
File "/usr/lib/python3/dist-packages/gavo/user/initdachs.py", line 433, in
initDB
_importBasicResources()
File "/usr/lib/python3/dist-packages/gavo/user/initdachs.py", line 405, in
_importBasicResources
from gavo.user import importing
File "/usr/lib/python3/dist-packages/gavo/user/importing.py", line 14, in
<module>
from gavo import api
File "/usr/lib/python3/dist-packages/gavo/api.py", line 19, in <module>
from gavo import rscdesc
File "/usr/lib/python3/dist-packages/gavo/rscdesc.py", line 27, in <module>
from gavo import registry
File "/usr/lib/python3/dist-packages/gavo/registry/__init__.py", line 34, in
<module>
from gavo.registry import oaiinter # registration of RegistryCore
File "/usr/lib/python3/dist-packages/gavo/registry/oaiinter.py", line 23, in
<module>
from gavo import svcs
File "/usr/lib/python3/dist-packages/gavo/svcs/__init__.py", line 35, in
<module>
from gavo.svcs.common import (Error, UnknownURI, ForbiddenURI, WebRedirect,
File "/usr/lib/python3/dist-packages/gavo/svcs/common.py", line 18, in
<module>
from gavo.formal import nevowc
File "/usr/lib/python3/dist-packages/gavo/formal/__init__.py", line 22, in
<module>
from .form import Form, Field, Group, ResourceWithForm, FORMS_KEY
File "/usr/lib/python3/dist-packages/gavo/formal/form.py", line 121, in
<module>
class FieldFragment(nevowc.CommonRenderers, template.Element):
File "/usr/lib/python3/dist-packages/gavo/formal/form.py", line 127, in
FieldFragment
T.label(class_='label', for_=template.slot('id'))[template.slot('label')],
TypeError: 'Tag' object is not subscriptable
--- gavodachs-2.5+dfsg/gavo/user/errhandle.py 2021-02-18 11:44:39.000000000 +0000
+++ /usr/lib/python3/dist-packages/gavo/user/errhandle.py 2022-02-13 23:47:17.499599771 +0000
@@ -170,7 +170,8 @@
messages.append("Snafu in %s, %s\n"%(msg.excRow, msg.excCol))
messages.append("")
messages.append("Oops. Unhandled exception %s.\n"%msg.__class__.__name__)
- messages.append("Exception payload: %s"%utils.safe_str(msg))
+ import traceback
+ messages.append("Exception payload: %s"%repr(msg)+" "+traceback.format_exc())
base.ui.notifyError("Uncaught exception at toplevel")
if getattr(opts, "enablePDB", False):
diff -Nru gavodachs-2.5+dfsg/debian/changelog
gavodachs-2.5+dfsg/debian/changelog
--- gavodachs-2.5+dfsg/debian/changelog 2021-11-17 12:55:14.000000000 +0000
+++ gavodachs-2.5+dfsg/debian/changelog 2022-02-13 23:23:02.000000000 +0000
@@ -1,3 +1,10 @@
+gavodachs (2.5+dfsg-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Adapt code to support new version of twisted.
+
+ -- Peter Michael Green <plugw...@debian.org> Sun, 13 Feb 2022 23:23:02 +0000
+
gavodachs (2.5+dfsg-1) unstable; urgency=medium
[ Markus Demleitner ]
diff -Nru gavodachs-2.5+dfsg/debian/patches/series
gavodachs-2.5+dfsg/debian/patches/series
--- gavodachs-2.5+dfsg/debian/patches/series 2021-11-17 12:55:14.000000000
+0000
+++ gavodachs-2.5+dfsg/debian/patches/series 2022-02-13 23:23:02.000000000
+0000
@@ -1 +1,2 @@
0001-Fixing-setup.py-version-check-to-work-with-python-3..patch
+twisted-22.patch
diff -Nru gavodachs-2.5+dfsg/debian/patches/twisted-22.patch
gavodachs-2.5+dfsg/debian/patches/twisted-22.patch
--- gavodachs-2.5+dfsg/debian/patches/twisted-22.patch 1970-01-01
00:00:00.000000000 +0000
+++ gavodachs-2.5+dfsg/debian/patches/twisted-22.patch 2022-02-13
23:23:02.000000000 +0000
@@ -0,0 +1,22 @@
+Description: Adapt code to support new version of twisted.
+Author: Peter Michael Green <plugw...@debian.org>
+
+--- gavodachs-2.5+dfsg.orig/gavo/formal/nevowc.py
++++ gavodachs-2.5+dfsg/gavo/formal/nevowc.py
+@@ -41,8 +41,15 @@ class NoDataError(Exception):
+ """
+ pass
+
++#newer versions of twisted moved _ToStan from twisted.web.template to
++#twisted.web._template_util
++try:
++ _ToStan = template._ToStan
++except AttributeError:
++ from twisted.web import _template_util
++ _ToStan = _template_util._ToStan
+
+-class _ToStan(template._ToStan):
++class _ToStan(_ToStan):
+ """A SAX parser unifying nevow and twisted.web namespaces.
+
+ We also map invisible (nevow) to transparent (t.w).
--- End Message ---
--- Begin Message ---
Source: gavodachs
Source-Version: 2.5.3+dfsg-1
Done: Markus Demleitner <g...@ari.uni-heidelberg.de>
We believe that the bug you reported is fixed in the latest version of
gavodachs, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1005...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Markus Demleitner <g...@ari.uni-heidelberg.de> (supplier of updated gavodachs
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 22 Feb 2022 11:53:28 +0100
Source: gavodachs
Architecture: source
Version: 2.5.3+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Astronomy Team
<debian-astro-maintain...@lists.alioth.debian.org>
Changed-By: Markus Demleitner <g...@ari.uni-heidelberg.de>
Closes: 1005725
Changes:
gavodachs (2.5.3+dfsg-1) unstable; urgency=medium
.
* New upstream version 2.5.3, containing fixes for twisted 21+, as
in current unstable (Closes: #1005725)
* Updated watchfile
Checksums-Sha1:
2a5f23829c81da499c3fba11631a272be982eb9f 2411 gavodachs_2.5.3+dfsg-1.dsc
c27a4da68e92609c98849a82bd2556ecb2ca510d 1299724
gavodachs_2.5.3+dfsg.orig.tar.xz
d0226313224c6492adad3ae6e61af1a28911545a 9092
gavodachs_2.5.3+dfsg-1.debian.tar.xz
Checksums-Sha256:
67ec7268689a4989833f953ecb1808911d3d4441d644f90c2c9e84532577ba45 2411
gavodachs_2.5.3+dfsg-1.dsc
7ce4504a0a6d8a761c028caafd10dcd79e4f1f3cb0d871080b913994115a0e99 1299724
gavodachs_2.5.3+dfsg.orig.tar.xz
b59a6adf306c7d3e55756aac82aa99b7ca3ab2c4bc763e97f42a41bbb49eac1a 9092
gavodachs_2.5.3+dfsg-1.debian.tar.xz
Files:
689394ef72c4fc57053a78452b65d7da 2411 python optional
gavodachs_2.5.3+dfsg-1.dsc
48bc247232645015cc0408d3d2bb055f 1299724 python optional
gavodachs_2.5.3+dfsg.orig.tar.xz
e2eb36cce0994e6772b16a30fe639113 9092 python optional
gavodachs_2.5.3+dfsg-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEuvxshffLFD/utvsVcRWv0HcQ3PcFAmIXvLgACgkQcRWv0HcQ
3PfKVw/9E69t51ODhZLAkKeAcp6AJKoZGNOjBuSivhE+RBmBMSPsmIFKyjFYMDs/
mle/qDaIbC8lR+lLkBn/EDxmWTg6VZzW1L5wH4claDEEO314FXf2nHUti7QdJPps
1qzrHIO1u8u5zAtsUkDv/gwoF9Zr3Joi+Xz/uKixbB/LGr4mgC7rsuPtzfzM65XW
zGPkOkhSHqpNoXu4ltBf1aVUtK66mHQ85XRD6L11LoUzuRXVysgkaS94EGnnB9p2
psEhMub8//OxBl45e4rHAslJ8fC7LJHjKtNxXg9nR5j2lmGYAaatiToG6GylScnx
g6A9TWDFn8tzfbbKEgTPrMhUTvQLDWOxolWkG+Sho34UiSLscFUWPGeXieNkdxhY
+Ax8b0uzYTTGvlE0vusViWmRuyzPAjj58I8z3HrtMEyQCZeZrRAddXRxdtBigUTn
L9WX239qHtDiYHCfuXnoup3Z9EaKmv9hPaJljlHnj4oSFdTmNVcQN8IUha+qe4vD
KfeZxQBAiWLPtkwi3DD93ZYQJoSNuu2aNFkw6pAqlLbUJW7i6jhlR5yV8VKw2Rwk
Y/H3OW4p4p4Uks+/oZ/LyBv2ZE8suRf9UvSmHVkfPk0LvLgOjR2+xmf4OYs7FZAo
slWq0gCyItvDv52xGmSE6ovkiU4AxxBqHiN7J3rzm3ww+lZ/3j8=
=o6Of
-----END PGP SIGNATURE-----
--- End Message ---