-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Receiving init() missing 1 required positional argument: ‘certification_country’ when first starting Kodi #1657
Comments
I have the same issue on latest Beta. |
Same here, same config |
Same issue but doesn't happen all the time |
Also happens on the matrix stable version. PMS is on a Synology 920+, and have 2 Nvidia shield tv pro 2019 |
Seeing this a lot. I have a lot of foreign media, may be connected?! |
I'm a bit at a loss here. This issue is caused by PKC calling another Kodi add-on called
|
tmdb.zip |
I opend and closed kodi a few times, and the message is gone. |
Me too, message is gone on my windows computer and my Shield. |
I'm running on Windows 10. Attached is a copy of my tmdb.py file. |
I use a shield 2019 pro and have seen this message before, after I installed this plugin in kodi android. My PMS is installed on a synology. Sorry forgot to mention. |
Message come back this morning on my Shield |
Here's the culprit: class TMDBMovieScraper(object):
def __init__(self, url_settings, language, certification_country):
self.url_settings = url_settings
self.language = language
self.certification_country = certification_country
self._urls = None The code you guys got: class TMDBMovieScraper(object):
def __init__(self, url_settings, language, search_language, certification_country):
self.url_settings = url_settings
self.language = language
self.search_language = search_language
self.certification_country = certification_country
self._urls = None So you seem to be using this fork: https://github.com/mkaflowski/metadata.themoviedb.org.python instead of the "original" Kodi https://github.com/xbmc/metadata.themoviedb.org.python. Officially, this change is "just" a pull request: xbmc/metadata.themoviedb.org.python#101. I know what to do to fix this, but it'll need some time. By the way, another change is in the works that changes this classe's signature: xbmc/metadata.themoviedb.org.python#66 |
I just checkt in kodi (android), and i have indeed that code, but it is standard kodi install, and the plugin is from kodi team. Did not change anything. No idea how it is mixed up. Edit: I only change the language in the plugin itself. |
I also have the default Kodi install. |
Same for me, add-on 1.4.2 team Kodi |
I have added default value: https://github.com/mkaflowski/metadata.themoviedb.org.python/blob/master/python/lib/tmdbscraper/tmdb.py |
I'm baffled as to how the fork got installed. In any case I pasted your change into the tmdb.py file. It worked, I no longer get the error when I start Kodi. FWIW I checked the version, it's 1.4.2 by Team Kodi. |
Indeed, by replacing tmdb.py with the version mkaflowski linked to, the error is gone. Thanks! |
I can confirm, by replacing it, the error is gone. |
You can just download zip from my fork. I have made pull request and hope that it will be in official channel but I am little confused where should I commit because there are 2 repositories. |
Please try PKC version 3.5.4. Hopefully fixes this easily... |
@croneter yes, this fixs the problem. Thank you for your work.,😁 |
I am on the stable repo, Will it auto-update? |
@croneter confirmed as well, your update fixed the issue when using the 1.4.2 version of tmdb.py much appreciated |
Thanks for reporting back! |
I'm getting the above error when first starting Kodi. It's a fresh install of Kodi 19.2 and PlexKodiConnect Beta v3.5.3.
kodi.log
Providing updated log. It appears the error happens right after various media scanners initialize.
Excerpt,
2021-10-12 07:20:57.405 T:11612 DEBUG : MUSIC_INFO::CMusicInfoScanner::Process - Starting scan
2021-10-12 07:20:57.406 T:7856 ERROR : PLEX.utils: Error encountered: - init() missing 1 required positional argument: 'certification_country'
..............................
2021-10-12 07:20:57.411 T:7856 ERROR : PLEX.utils: return tmdb.TMDBMovieScraper(settings, language, certcountry)
2021-10-12 07:20:57.411 T:7856 ERROR : PLEX.utils: TypeError: init() missing 1 required positional argument: 'certification_country'
............................
kodi.log
The text was updated successfully, but these errors were encountered: