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
import imp fails in Python 3.12 replace with importlib #2226
Comments
I am awaiting a fix on this. Willing to donate to make this a priority. just let me know. |
If you feel confident, I just commented out the offending line and it worked fine as a workaround. import logging |
It might be better to replace |
Last time i made a change, it wouldnt update. I donated $100 right after
the post but saw no change here so been living without.
…On Tue, Apr 30, 2024, 4:22 PM luciferin ***@***.***> wrote:
I am awaiting a fix on this. Willing to donate to make this a priority.
just let me know.
If you feel confident, I just commented out the offending line and it
worked fine as a workaround. sudo -u tautulli vim
/opt/Tautulli/lib/future/standard_library/*init*.py
import logging #import imp <--- HERE import contextlib
It might be better to replace import imp with import importlib instead of
commenting it out.
—
Reply to this email directly, view it on GitHub
<#2226 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJFK2GF33N23A37TJRKLKQTY774R7AVCNFSM6AAAAABBAFBRS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBXGA4TKNZQGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Archlinux is now utilizing Python 3.12. Would love if this could be fixed. |
thanks, this helped me fix the issue until the new version is pushed out for arch users who installed via AUR
change "import imp" to "import importlib" save
|
Ah, wish I'd seen these comments before doing my fix, glad to see it works, looks a lot easier! I wasn't sure if there was a drop-in replacement module, and how many places it would need to be changed in, so I made a custom service to keep using Python 3.11 (with
|
This bug has been fixed and will be available in the next release of Tautulli. This issue will be automatically closed once the update is available. |
Is the change being fixed part of #2098 ? But the usage of |
https://github.com/PythonCharmers/python-future/releases/tag/v1.0.0 The lines you reference do not affect it. |
Describe the Bug
Tautulli/lib/future/standard_library/__init__.py
Line 65 in d019efc
fails since
Source: https://docs.python.org/3.12/whatsnew/3.12.html
Change:
https://github.com/Tautulli/Tautulli/blob/d019efcf911b4806618761c2da48bab7d04031ec/lib/future/standard_library/__init__.py#L300C11-L300C11
to
and
https://github.com/Tautulli/Tautulli/blob/d019efcf911b4806618761c2da48bab7d04031ec/lib/future/standard_library/__init__.py#L301C9-L301C9
to
Steps to Reproduce
Expected Behavior
Tautulli should start
Screenshots
No response
Relevant Settings
Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)]
Tautulli Version
2.13.4
Git Branch
release
Git Commit Hash
NA
Platform and Version
Windows 10
Python Version
3.12.1
Browser and Version
NA
Link to Logs
NA
The text was updated successfully, but these errors were encountered: