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

Kodi 19 Error: NoneType Object is not Callable #1425

Closed
louisefindlay23 opened this issue Mar 20, 2021 · 6 comments
Closed

Kodi 19 Error: NoneType Object is not Callable #1425

louisefindlay23 opened this issue Mar 20, 2021 · 6 comments
Labels
Kodi issue Python 3 Starting with Kodi 19 Matrix, Kodi uses Python 3 wontfix

Comments

@louisefindlay23
Copy link

Describe the bug

I tried to force update so Kodi reflected my new Plex artwork but nothing happened so I reset the Kodi database.

After I restarted Kodi, Plex data wasn't syncing back (no Plex libraries) so I uninstalled and reinstalled PKC Matrix Stable using your instructions in #1359 but the prompt to Select libraries to sync didn't appear. Trying to force it in PKC Settings resulted in NoneType Object is not Callable error.

I also get that error when Kodi starts and occassionally when synced data. Before I reset the database, playback and syncing was working but with the error message.

Help yourself

Force updated library
Reset Kodi database
Uninstalled and reinstalled PKC Stable from scratch
Provided Debug Log

To Reproduce

Steps to reproduce the behavior:

  1. Install PKC on Kodi 19
  2. Restart Kodi
  3. Set up PKC
  4. Restart Kodi and Error message appears
  5. Reset database

Expected behavior

The error message shouldn't appear and force updating the Kodi database should work. When the database is reset, the select libraries to sync prompt should appear so Plex data can sync. Also, select libraries to sync should work via PKC settings.

You need to attach a KODI LOG FILE!

http://paste.kodi.tv/cizoxiwasi.kodi

@croneter
Copy link
Owner

croneter commented Mar 20, 2021

File "C:\Users\Media\AppData\Roaming\Kodi\addons\plugin.video.plexkodiconnect\resources\lib\plex_db\common.py", line 210, in initialize
plexdb.cursor.execute('''
File "C:\Users\Media\AppData\Roaming\Kodi\addons\script.games.rom.collection.browser\resources\lib\gamedatabase.py", line 19, in <lambda>
sqlite.register_adapter(str, lambda s: util.convertToUnicodeString(s))
TypeError: 'NoneType' object is not callable

Your Kodi add-on script.games.rom.collection.browser (usually standard Kodi!) literally hijacked either PlexKodiConnect or - even worse - the standard Kodi library sqlite (https://docs.python.org/3/library/sqlite3.html). There should NEVER be a call from PlexKodiConnect to an entirely different, unrelated add-on like script.games.rom.collection.browser

My guess is that a rogue Kodi add-on screwed your Kodi. Likely your add-on https://github.com/maloep/romcollectionbrowser

Clean your system. Scan for viruses and trojans. Make sure to not use piracy add-ons.

@croneter
Copy link
Owner

croneter commented Mar 20, 2021

Hmm, Rom Collection Browser seems legit, but you might have another, illegit version. I'm wondering which add-on could have gone rogue

@louisefindlay23
Copy link
Author

Think it was one of the Libertro addons I installed to try to get the native Kodi game system working. My Plex libraries starting syncing again once they were gone though the error message still appears, PKC is working again.

Turns out it's apparently a Matrix issue with RCB with its skins folder according to the forum. The fixed file link is dead so will try and get a copy.

Thanks for all your help, croneter. Amazing addon, btw.

@croneter
Copy link
Owner

Could you point me to the thread discussing this? Might be really good to know what's going on, exactly. Thx!!

@louisefindlay23
Copy link
Author

louisefindlay23 commented Mar 21, 2021

Found a better fix that works. Turns out it breaks the Netflix plugin too (and probably other types of video playback) and the dev there went into detail about the issue. CastagnaIT/plugin.video.netflix#1061 (comment)
Tested the fix from an open PR (comment out a line) and it seems to work great. No more errors and the plugin still works.
maloep/romcollectionbrowser#432

Sorry to bother you about a non-PKC issue

@croneter croneter reopened this Mar 21, 2021
@croneter
Copy link
Owner

No worries, thanks a lot for the valuable research!

@croneter croneter added the Python 3 Starting with Kodi 19 Matrix, Kodi uses Python 3 label Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Kodi issue Python 3 Starting with Kodi 19 Matrix, Kodi uses Python 3 wontfix
Projects
None yet
Development

No branches or pull requests

2 participants