trakt-scrobbler icon indicating copy to clipboard operation
trakt-scrobbler copied to clipboard

[BUG] Can't initialise

Open lhupitr opened this issue 3 years ago • 5 comments

Describe the bug

Running trakts init after installation fails with notification:

Unhandled exception No module named 'urlmatch'

Desktop (please complete the following information):

  • Arch Linux
  • Python 3.10.6

Log file

Click to see log contents

2022-08-20 18:14:04,217 - ERROR - MainThread - __init__ - Unhandled exception
Traceback (most recent call last):
  File "/usr/bin/trakts", line 33, in <module>
    sys.exit(load_entry_point('trakt-scrobbler==1.5.0', 'console_scripts', 'trakts')())
  File "/usr/bin/trakts", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/trakt_scrobbler/console.py", line 18, in <module>
    from trakt_scrobbler.commands.whitelist import WhitelistCommand
  File "/usr/lib/python3.10/site-packages/trakt_scrobbler/commands/whitelist.py", line 4, in <module>
    from urlmatch.urlmatch import BadMatchPattern, urlmatch
ModuleNotFoundError: No module named 'urlmatch'

lhupitr avatar Aug 20 '22 21:08 lhupitr

@ahmubashshir? Seems to be a packaging issue

iamkroot avatar Aug 27 '22 04:08 iamkroot

@lhupitr did you install from aur?

ahmubashshir avatar Aug 27 '22 04:08 ahmubashshir

Yes, I installed through the aur

lhupitr avatar Aug 27 '22 15:08 lhupitr

Try reinstalling. AFAIK, both trakt-scrobbler and trakt-scrobbler-git has all dependencies added in the pkgbuild.

ahmubashshir avatar Aug 28 '22 02:08 ahmubashshir

I had to rebuild and reinstall python-urlmatch python-guessit and python-babelfish, working fine now.

lhupitr avatar Aug 28 '22 19:08 lhupitr

@iamkroot this can be closed...

ahmubashshir avatar Oct 09 '22 06:10 ahmubashshir