Your message dated Mon, 27 Jul 2026 01:47:42 +0300
with message-id <[email protected]>
and subject line Re: zim: KeyError about line separator since python3-gi
upgrade from 3.54.5-7+b1 to 3.56.1-2
has caused the Debian Bug report #1131757,
regarding zim: KeyError about line separator since python3-gi upgrade from
3.54.5-7+b1 to 3.56.1-2
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 [email protected]
immediately.)
--
1131757: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1131757
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: zim
Version: 0.76.3-2
Severity: important
Dear Maintainer,
Since upgrading python3-gi to 3.56.1-2 from 3.54.5-7+b1
I get:
```
This is zim 0.76.3
Platform: posix
Locale: fr_FR UTF-8
FS encoding: utf-8
Python: (3, 13, 12, 'final', 0)
PyGObject: (3, 56, 1)
======= Traceback =======
File "/usr/lib/python3/dist-packages/zim/gui/pageview/__init__.py", line 943,
in set_page
self.textview.set_buffer(buffer)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/usr/lib/python3/dist-packages/zim/gui/pageview/textview.py", line 177,
in set_buffer
self._object_widgets.remove(child)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/lib/python3.13/_weakrefset.py", line 113, in remove
self.data.remove(ref(item))
~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: <weakref at 0x7f7d15c38e50; to
'zim.gui.pageview.objectanchors.LineSeparator' at 0x7f7d15cfd580>
```
when opening a page with a line separator (more than two hyphens, ie
'---')
It is told in upstream report that it triggers after moving a page with
a line separator. I cannot confirm but at least as of now it triggers
every time I open a page with a line separator (I might have moved such
a page previously but it is not needed to move a page each time, or at
least simply only opening a page is enough now).
"KeyError weakref zim.gui.pageview.objectanchors.LineSeparator after moving
pages"
https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/2934
I don't know if this is a python3-gi regression bug or an old zim bug
that only triggers with the newer python3-gi thus bugging zim first.
Once this error triggers I cannot edit the page.
The expected outcome is to be able to edit pages with a line separator
inside.
Cheers
Alban
-- System Information:
Debian Release: forky/sid
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'stable-debug'), (500,
'oldstable-debug'), (500, 'testing'), (500, 'stable'), (90, 'unstable-debug'),
(90, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.19.8+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages zim depends on:
ii gir1.2-gtk-3.0 3.24.51-4
ii python3 3.13.9-3
ii python3-gi 3.56.1-2
ii python3-xdg 0.28-3
ii xdg-utils 1.2.1-2
Versions of packages zim recommends:
ii gir1.2-gtkspell3-3.0 3.0.10-3+b1
Versions of packages zim suggests:
pn bzr <none>
ii ditaa 0.10+ds1-1.4
ii dvipng 1.18-1
pn fossil <none>
ii gir1.2-gtksource-3.0 3.24.11-7
ii git 1:2.53.0-1
ii gnuplot 6.0.3+dfsg1-1
ii gnuplot-qt [gnuplot] 6.0.3+dfsg1-1
ii graphviz 14.1.2-1
pn lilypond <none>
pn mercurial <none>
ii python3-zeitgeist 1.0.4-5
pn r-base <none>
ii scrot 2.0.0-1
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 76.3-3
In Zim 76.3-3
https://sources.debian.org/src/zim/0.76.3-3/debian/patches/Fix-bug-with-_object_widgets-weakset.patch
Is
https://github.com/zim-desktop-wiki/zim-desktop-wiki/commit/c264b8bf58c6780b69f6370ecc27a09b2ef538e6
which fixes https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/2934
which is this bug
On Tue, 24 Mar 2026 03:50:57 +0100 Alban Browaeys <[email protected]> wrote:
> Package: zim
> Version: 0.76.3-2
> Severity: important
>
> Dear Maintainer,
> Since upgrading python3-gi to 3.56.1-2 from 3.54.5-7+b1
> I get:
> ```
> This is zim 0.76.3
> Platform: posix
> Locale: fr_FR UTF-8
> FS encoding: utf-8
> Python: (3, 13, 12, 'final', 0)
> PyGObject: (3, 56, 1)
>
> ======= Traceback =======
> File "/usr/lib/python3/dist-packages/zim/gui/pageview/__init__.py", line
> 943, in set_page
> self.textview.set_buffer(buffer)
> ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
> File "/usr/lib/python3/dist-packages/zim/gui/pageview/textview.py", line
> 177, in set_buffer
> self._object_widgets.remove(child)
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
> File "/usr/lib/python3.13/_weakrefset.py", line 113, in remove
> self.data.remove(ref(item))
> ~~~~~~~~~~~~~~~~^^^^^^^^^^^
> KeyError: <weakref at 0x7f7d15c38e50; to
> 'zim.gui.pageview.objectanchors.LineSeparator' at 0x7f7d15cfd580>
> ```
> when opening a page with a line separator (more than two hyphens, ie
> '---')
>
> It is told in upstream report that it triggers after moving a page with
> a line separator. I cannot confirm but at least as of now it triggers
> every time I open a page with a line separator (I might have moved such
> a page previously but it is not needed to move a page each time, or at
> least simply only opening a page is enough now).
> "KeyError weakref zim.gui.pageview.objectanchors.LineSeparator after moving
> pages"
> https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/2934
>
>
> I don't know if this is a python3-gi regression bug or an old zim bug
> that only triggers with the newer python3-gi thus bugging zim first.
>
>
> Once this error triggers I cannot edit the page.
>
> The expected outcome is to be able to edit pages with a line separator
> inside.
>
> Cheers
> Alban
>
>
>
> -- System Information:
> Debian Release: forky/sid
> APT prefers testing-debug
> APT policy: (500, 'testing-debug'), (500, 'stable-debug'), (500,
> 'oldstable-debug'), (500, 'testing'), (500, 'stable'), (90,
> 'unstable-debug'), (90, 'unstable'), (1, 'experimental-debug'), (1,
> 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
--- End Message ---