Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790437 - net-im/gajim-1.3.1_p2: gajim-history-manager failure, No module named 'gajim.gui.emoji_data'
Summary: net-im/gajim-1.3.1_p2: gajim-history-manager failure, No module named 'gajim....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hanno Böck
URL: https://dev.gajim.org/gajim/gajim/-/m...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-05-15 22:46 UTC by mehw
Modified: 2021-07-18 11:54 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mehw 2021-05-15 22:46:41 UTC
gajim-history-manager can't start in standanole mode.

I'll prepare a PR to bump a fixed net-im/gajim-1.3.2.

This is also a bug in gajim-1.3.2 (see bug#789381 about the version bump).

See https://dev.gajim.org/gajim/gajim/-/merge_requests/761 for a patch.

$ gajim-history-manager
No translations found
Dirs searched: [PosixPath('/home/<user>/.local/share'), PosixPath('/usr/local/share'), PosixPath('/usr/share')]
Traceback (most recent call last):
  File "/usr/bin/gajim-history-manager", line 33, in <module>
    sys.exit(load_entry_point('gajim==1.3.1', 'gui_scripts', 'gajim-history-manager')())
  File "/usr/bin/gajim-history-manager", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
   return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/gajim/history_manager.py", line 58, in <module>
    from gajim.common.settings import Settings
  File "/usr/lib/python3.8/site-packages/gajim/common/settings.py", line 36, in <module>
    from gajim.common.helpers import get_muc_context
  File "/usr/lib/python3.8/site-packages/gajim/common/helpers.py", line 84, in <module>
    from gajim.common.regex import INVALID_XML_CHARS_REGEX
  File "/usr/lib/python3.8/site-packages/gajim/common/regex.py", line 76, in <module>
    EMOT_AND_LINK_REGEX = re.compile(_get_emot_and_basic_pattern(False),
  File "/usr/lib/python3.8/site-packages/gajim/common/regex.py", line 58, in _get_emot_and_basic_pattern
    from gajim.gui.emoji_data import emoji_data
ModuleNotFoundError: No module named 'gajim.gui.emoji_data'
Comment 1 Hanno Böck gentoo-dev 2021-05-16 06:54:35 UTC
I'm unlikely to merge a patch for an issue I don't have insight into that isn't approved upstream.

The upstream bug has only been opened a couple of hours ago. I'd say let's wait until upstream merges this or ideally pushes a new release.
Comment 2 mehw 2021-05-16 09:26:28 UTC
(In reply to Hanno Böck from comment #1)
> I'm unlikely to merge a patch for an issue I don't have insight into that
> isn't approved upstream.
> 
> The upstream bug has only been opened a couple of hours ago. I'd say let's
> wait until upstream merges this or ideally pushes a new release.

Ok. The fix is really trivial, by the way. And you may try to run gajim-history-manager to see the bug in gajim-1.3.1_p2 as posted in the comment #0.
Comment 3 Larry the Git Cow gentoo-dev 2021-07-18 11:54:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4db904f48b88ec7574ab92698b2de5321d6eb15c

commit 4db904f48b88ec7574ab92698b2de5321d6eb15c
Author:     Hanno Böck <hanno@gentoo.org>
AuthorDate: 2021-07-18 11:54:08 +0000
Commit:     Hanno Böck <hanno@gentoo.org>
CommitDate: 2021-07-18 11:54:39 +0000

    net-im/gajim: Version bump.
    
    Fix gajim-history-manager (patch is merged upstream).
    Add missing jingle dependency.
    Add omemo use flag.
    
    Signed-off-by: Hanno Böck <hanno@gentoo.org>
    Closes: https://bugs.gentoo.org/789381
    Closes: https://github.com/gentoo/gentoo/pull/20827
    Closes: https://bugs.gentoo.org/790437
    Closes: https://bugs.gentoo.org/791001
    Closes: https://bugs.gentoo.org/790995
    Package-Manager: Portage-3.0.20, Repoman-3.0.3

 net-im/gajim/Manifest                              |  1 +
 .../files/gajim-1.3.2-fix-historymanager.diff      | 44 ++++++++++
 net-im/gajim/gajim-1.3.2.ebuild                    | 97 ++++++++++++++++++++++
 net-im/gajim/metadata.xml                          |  1 +
 4 files changed, 143 insertions(+)