Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910185 - dev-python/desktop-notifier: missing dependency on dev-python/importlib-resources
Summary: dev-python/desktop-notifier: missing dependency on dev-python/importlib-resou...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Viorel Munteanu
URL: https://github.com/samschott/desktop-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-10 10:11 UTC by Nicola Smaniotto
Modified: 2023-07-11 05:04 UTC (History)
0 users

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 Nicola Smaniotto 2023-07-10 10:11:30 UTC
I noticed because trakt-scrobbler stopped working

Reproducible: Always

Steps to Reproduce:
1. Try to use the library (for example with trakts run)
Actual Results:  
ModuleNotFoundError

Expected Results:  
No error
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-10 10:15:00 UTC
Please share the full output - nothing should really be using this for >= Python 3.9.
Comment 2 Nicola Smaniotto 2023-07-10 10:46:14 UTC
$ trakts run -v

  Stack trace:

  11  /usr/lib/python3.11/site-packages/clikit/console_application.py:131 in run
      status_code = command.handle(parsed_args, io)

  10  /usr/lib/python3.11/site-packages/clikit/api/command/command.py:120 in handle
      status_code = self._do_handle(args, io)

   9  /usr/lib/python3.11/site-packages/clikit/api/command/command.py:171 in _do_handle
      return getattr(handler, handler_method)(args, io, self)

   8  /usr/lib/python3.11/site-packages/cleo/commands/command.py:92 in wrap_handle
      return self.handle()

   7  /usr/lib/python3.11/site-packages/trakt_scrobbler/commands/run.py:12 in handle
      from trakt_scrobbler.main import main

   6  /usr/lib/python3.11/site-packages/trakt_scrobbler/main.py:4 in <module>
      from trakt_scrobbler.backlog_cleaner import BacklogCleaner

   5  /usr/lib/python3.11/site-packages/trakt_scrobbler/backlog_cleaner.py:7 in <module>
      from trakt_scrobbler import trakt_interface as trakt

   4  /usr/lib/python3.11/site-packages/trakt_scrobbler/trakt_interface.py:5 in <module>
      from trakt_scrobbler.notifier import notify

   3  /usr/lib/python3.11/site-packages/trakt_scrobbler/notifier.py:76 in <module>
      from desktop_notifier.main import Button, DesktopNotifier

   2  /usr/lib/python3.11/site-packages/desktop_notifier/__init__.py:2 in <module>
      from .main import DesktopNotifier, Button, ReplyField, Notification, Urgency

   1  /usr/lib/python3.11/site-packages/desktop_notifier/main.py:29 in <module>
      from .base import (

  ModuleNotFoundError

  No module named 'importlib_resources'

  at /usr/lib/python3.11/site-packages/desktop_notifier/base.py:22 in <module>
       18│     List,
       19│     Sequence,
       20│ )
       21│ 
    →  22│ from importlib_resources import path as resource_path
       23│ 
       24│ 
       25│ logger = logging.getLogger(__name__)
       26│
Comment 3 Anna Vyalkova 2023-07-10 16:43:37 UTC
Bad upstream unconditionally depending on a backport :(
Comment 4 Anna Vyalkova 2023-07-10 16:45:04 UTC
Upstream  issue: https://github.com/samschott/desktop-notifier/issues/92
Comment 5 Larry the Git Cow gentoo-dev 2023-07-11 05:04:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1862a77db17eef7cd95623805ffbe4873a231917

commit 1862a77db17eef7cd95623805ffbe4873a231917
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2023-07-11 05:04:19 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2023-07-11 05:04:19 +0000

    dev-python/desktop-notifier: add 3.5.5
    
    Closes: https://bugs.gentoo.org/910185
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 dev-python/desktop-notifier/Manifest               |  1 +
 .../desktop-notifier/desktop-notifier-3.5.5.ebuild | 32 ++++++++++++++++++++++
 ...esktop-notifier-3.5.5-importlib-resources.patch | 15 ++++++++++
 3 files changed, 48 insertions(+)