-
Notifications
You must be signed in to change notification settings - Fork 30
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
Comments
How exactly did you install |
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. |
Hmm, I don't see anything in the 3.12 changelogs about the |
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. |
No problem, thanks for the quick response 👍 |
@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.
(Or, wait for a new version) |
with the new push |
That's weird, I thought I already fixed it... Could you please paste the output of |
So what is the fix for this? Trying to install it now and receiving the same error. |
Never mind. This did work for me:
Just a heads up that this is still occurring with fresh installs. |
@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. |
I followed this but I get this error:
I'm a beginner, so I apologize for knowing very little. |
@DoncanC try #257 (comment) |
Yes but the error is the same
:/ EDIT: I've found a solution here!! I'll informate you if I get other error... for now all right!! :D |
Since OP never responded to you and since I'm experiencing the same problem with Python ExpandC:\Users\redacted>trakts init -vvv
This will guide you through the setup of the scrobbler.
If you wish to quit at any point, press Ctrl+C or Cmd+C
Stack trace:
9 pipx\venvs\trakt-scrobbler\Lib\site-packages\clikit\console_application.py:131 in run
129│ parsed_args = resolved_command.args
130│
→ 131│ status_code = command.handle(parsed_args, io)
132│ except KeyboardInterrupt:
133│ status_code = 1
8 pipx\venvs\trakt-scrobbler\Lib\site-packages\clikit\api\command\command.py:120 in handle
118│ def handle(self, args, io): # type: (Args, IO) -> int
119│ try:
→ 120│ status_code = self._do_handle(args, io)
121│ except KeyboardInterrupt:
122│ if io.is_debug():
7 pipx\venvs\trakt-scrobbler\Lib\site-packages\clikit\api\command\command.py:171 in _do_handle
169│ handler_method = self._config.handler_method
170│
→ 171│ return getattr(handler, handler_method)(args, io, self)
172│
173│ def __repr__(self): # type: () -> str
6 pipx\venvs\trakt-scrobbler\Lib\site-packages\cleo\commands\command.py:92 in wrap_handle
90│ self._command = command
91│
→ 92│ return self.handle()
93│
94│ def handle(self): # type: () -> Optional[int]
5 pipx\venvs\trakt-scrobbler\Lib\site-packages\trakt_scrobbler\commands\init.py:24 in handle
22│ self.comment("This will guide you through the setup of the scrobbler.")
23│ self.info("If you wish to quit at any point, press Ctrl+C or Cmd+C")
→ 24│ from trakt_scrobbler.player_monitors import collect_monitors
25│
26│ monitors = {Mon for Mon in collect_monitors() if isinstance(Mon.name, str)}
4 pipx\venvs\trakt-scrobbler\Lib\site-packages\trakt_scrobbler\player_monitors\__init__.py:4 in <module>
2│ from pathlib import Path
3│ from importlib import import_module
→ 4│ from .monitor import Monitor
5│
6│
3 pipx\venvs\trakt-scrobbler\Lib\site-packages\trakt_scrobbler\player_monitors\monitor.py:9 in <module>
7│ from trakt_scrobbler import config, logger
8│ from trakt_scrobbler.file_info import get_media_info
→ 9│ from trakt_scrobbler.notifier import notify
10│ from trakt_scrobbler.utils import AutoloadError, ResumableTimer
11│
2 pipx\venvs\trakt-scrobbler\Lib\site-packages\trakt_scrobbler\notifier.py:104 in <module>
102│
103│ else:
→ 104│ from win10toast import ToastNotifier
105│ toaster = ToastNotifier()
106│
1 pipx\venvs\trakt-scrobbler\Lib\site-packages\win10toast\__init__.py:15 in <module>
13│ from os import path
14│ from time import sleep
→ 15│ from pkg_resources import Requirement
16│ from pkg_resources import resource_filename
17│
AttributeError
module 'pkgutil' has no attribute 'ImpImporter'
at 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│ In the meantime, I'll use one of the solutions above. Failing that I'll just downgrade python. I doubt this is relevant to this issue but might be worth mentioning that |
@JWWolstenholme what version of the scrobbler are you running (output of Install beta version:
|
@iamkroot I was running Note that I had to correct step 3. in your instructions to C:\Users\redacted>pipx install --pip-args='--pre' trakt-scrobbler==1.7.0b1
Fatal error from pip prevented installation. Full pip output in file:
C:\Users\redacted\pipx\logs\cmd_2024-07-22_03.34.28_pip_errors.log
Some possibly relevant errors from pip install:
ERROR: Invalid requirement: "'--pre'": Expected package name at the start of dependency specifier
Error installing trakt-scrobbler from spec 'trakt-scrobbler==1.7.0b1'.
C:\Users\redacted>pipx install --pip-args=--pre trakt-scrobbler==1.7.0b1
installed package trakt-scrobbler 1.7.0b1, installed using Python 3.12.4
These apps are now globally available
- trakts.exe
done! ✨ 🌟 ✨
C:\Users\redacted>trakts
Trakts version 1.7.0-beta.1
... |
Yep this is still happening to me, the stable and beta branches didnt work, same error. But the |
|
Installation through pip works fine though.
The text was updated successfully, but these errors were encountered: