Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] module 'pkgutil' has no attribute 'ImpImporter' error for command trakts init with python 3.12 #272

Closed
soredake opened this issue Jan 9, 2024 · 2 comments

Comments

@soredake
Copy link

soredake commented Jan 9, 2024

Describe the bug

A clear and concise description of what the bug/error is.

Desktop (please complete the following information):

  • OS and Version: Windows 11 Pro
  • Python Version: Python 3.12

To Reproduce

Steps to reproduce the behavior:

  1. Install python 3.12
  2. Install trakt-scrobbler with pipx
  3. Oh no, error!
  4. See error in log file

Log file

Click to see log contents

❯ trakts init
This will guide you through the setup of the scrobbler.
If you wish to quit at any point, press Ctrl+C or Cmd+C

  AttributeError

  module 'pkgutil' has no attribute 'ImpImporter'

  at AppData\Local\pipx\pipx\venvs\trakt-scrobbler\Lib\site-packages\pkg_resources\__init__.py:2191 in <module>
      2187│     dist_groups = map(find_distributions, resolved_paths)
      2188│     return next(dist_groups, ())
      2189│
      2190│
    → 2191│ register_finder(pkgutil.ImpImporter, find_on_path)
      2192│
      2193│ if hasattr(importlib_machinery, 'FileFinder'):
      2194│     register_finder(importlib_machinery.FileFinder, find_on_path)
      2195│



2024-01-09 11:32:34,853 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt

@soredake soredake changed the title [BUG] "module 'pkgutil' has no attribute 'ImpImporter'" error for command trakts init with python 3.12 [BUG] module 'pkgutil' has no attribute 'ImpImporter' error for command trakts init with python 3.12 Jan 9, 2024
@iamkroot
Copy link
Owner

Already fixed in #257

@iamkroot iamkroot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2024
@iamkroot
Copy link
Owner

iamkroot commented Jan 10, 2024

Please search the existing (closed) issues before creating new ones,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants