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

Python 3.12 RC from winsows store broke trakts #257

Closed
panaris opened this issue Aug 28, 2023 · 15 comments
Closed

Python 3.12 RC from winsows store broke trakts #257

panaris opened this issue Aug 28, 2023 · 15 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file setup Trouble with installation

Comments

@panaris
Copy link

panaris commented Aug 28, 2023

Installation through pip works fine though.
erCp9sB

@iamkroot
Copy link
Owner

How exactly did you install trakt-scrobbler? With pipx this shouldn't happen

@iamkroot iamkroot added the setup Trouble with installation label Aug 29, 2023
@panaris
Copy link
Author

panaris commented Sep 2, 2023

I removed old python version. Installed lates windows store version. Removed pipx and the folder $home/.local/pipx. Then tried to install trakts through pipx. Everything went well but init failed. Then tried to uninstall via pipx and install though pip and same thing happened. Trakts help works fine.

@iamkroot
Copy link
Owner

Hmm, I don't see anything in the 3.12 changelogs about the pkg_resources package. Maybe try googling the error message?

@bulletproof2k
Copy link

How to update and which version of Plexapi are you using now?

@iamkroot
Copy link
Owner

iamkroot commented Sep 20, 2023

How to update and which version of Plexapi are you using now?

@bulletproof2k the current thread is about Python 3.12, and not a new version of trakt scrobbler. There haven't been any recent changes to the plex api usage in here. So if you're facing problems, please raise an issue (or if you already created it and I forgot, add a bump comment to it)

Updating the python installation should ideally require no changes to this scrobbler. But alas, we don't live in such a perfect world.

@bulletproof2k
Copy link

No problem, thanks for the quick response 👍

@iamkroot
Copy link
Owner

iamkroot commented Oct 8, 2023

@panaris Thanks for the bug report. This was a bug in an upstream dependency Diaoul/babelfish#46 (it uses a deprecated module which broke in Python3.12). I have pushed a fix for this, and it should work in Python3.12 now.
Install from branch:

  1. Stop the scrobbler with trakts stop
  2. Run pipx install --force --pip-args='--force-reinstall' git+https://github.com/iamkroot/trakt-scrobbler.git@master
  3. Start scrobbler with trakts start

(Or, wait for a new version)

@iamkroot iamkroot added bug Something isn't working dependencies Pull requests that update a dependency file labels Oct 8, 2023
@panaris
Copy link
Author

panaris commented Oct 11, 2023

https://bit.ly/3QbHbdD

with the new push

@iamkroot
Copy link
Owner

That's weird, I thought I already fixed it... Could you please paste the output of trakts init -vvv

@MarsAgainstVenus
Copy link

So what is the fix for this? Trying to install it now and receiving the same error.

@MarsAgainstVenus
Copy link

So what is the fix for this? Trying to install it now and receiving the same error.

Never mind. This did work for me:

pipx install --force --pip-args='--force-reinstall' git+https://github.com/iamkroot/trakt-scrobbler.git@master

Just a heads up that this is still occurring with fresh installs.

@iamkroot
Copy link
Owner

iamkroot commented Jan 11, 2024

@MarsAgainstVenus are installing from the master as shown here? There is no stable release with the fix yet.

EDIT: Good to see that you got it working. Will pin this issue for now.

@iamkroot iamkroot pinned this issue Jan 11, 2024
@coqre
Copy link

coqre commented May 14, 2024

I followed this but I get this error:

ERROR: Invalid requirement: "'--force-reinstall'" Cannot determine package name from spec 'git+https://github.com/iamkroot/trakt-scrobbler.git@master'. Check package spec for errors.

I'm a beginner, so I apologize for knowing very little.
:'D

@iamkroot
Copy link
Owner

@DoncanC try #257 (comment)

@coqre
Copy link

coqre commented May 16, 2024

@DoncanC try #257 (comment)

Yes but the error is the same

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\Programs\Python\Python312\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│

:/

EDIT:
Sorry for my english, is a terrible B1.

I've found a solution here!!

But so I get this error
image

I'll informate you if I get other error... for now all right!! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file setup Trouble with installation
Projects
None yet
Development

No branches or pull requests

5 participants