-
Notifications
You must be signed in to change notification settings - Fork 167
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
Critical Error: Unable to import the playhouse.apsw_ext library (No module named apsw) #521
Comments
I have the same issue on a Synology RS814 (armv7_hf) if I‘m running a 1.15.x Plex server version. If I downgrade to 1.14.x the plugin runs without issues. |
Same problem here. Here is the output from the plugin (the interesting parts):
|
Same problem here: Odroid C2 (aarch64) Waiting feedback to correct this issue |
For plex 1.15, you will have to compile the APSW binding manually. Here's what I had to do on a raspberry pi: Compile a custom version of python2.7Since Plex is running a python version that's compiled with UCS-2, and the raspbian python is compiled with UCS-4, the apsw library that's distributed in the repos is UCS-4, that cannot be loaded in plex.
Build python-apsw using the custom python version
Restart plex, and you're done. |
Anyone have any ideas on how to fix this on a Seagate Personal Cloud. I've tried dropping it into the directory I think it should be, and it's wiped out by the restart - thus giving me an infinite loop of no apsw library available |
Tkz |
I'm very sorry for my ignorance. Can you please write me what to do one point after another so that I only have to write it in the terminal possibly without causing damages? |
@vrachnis could you upload your compiled |
I've follow the instructions of @vrachnis and here is the apsw.so file. It works for and Odroid HC2 and should also for a Raspberry Pi. You might need to update your sqlite to stretch-backports. |
That worked just fine @Belphemur, thanks a lot for the upload. I couldn't get it to compile due to the compilation requiring a newer version SQLite, which I didn't manage to update. |
Does anyone have an idea how to do this on a Synology with an ARMv7? |
@theFeverDog Should work with the file I gave. Odroid HC2 is also a ARMv7 (armhf). Doesn't cost anything to try :) |
hi @Belphemur i tried your file but it did not work on a raspberry pi |
Should work on a Raspberry Pi 3. Not for the older version that aren't based on armv7 armhf
…________________________________
From: martinlaune <notifications@github.com>
Sent: Wednesday, April 3, 2019 12:24
To: trakt/Plex-Trakt-Scrobbler
Cc: Antoine Aflalo; Mention
Subject: Re: [trakt/Plex-Trakt-Scrobbler] Critical Error: Unable to import the playhouse.apsw_ext library (No module named apsw) (#521)
hi @Belphemur i tried your file but it did not work on a raspberry pi
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi @Belphemur |
@martinlaune that's a whole different error.
It means you have a problem with the sqlite database used by the plug-in. I'd advise to reinstall the plug-in or open a new issue about that to see with the devs.
…________________________________
From: martinlaune <notifications@github.com>
Sent: Thursday, April 4, 2019 12:05
To: trakt/Plex-Trakt-Scrobbler
Cc: Antoine Aflalo; Mention
Subject: Re: [trakt/Plex-Trakt-Scrobbler] Critical Error: Unable to import the playhouse.apsw_ext library (No module named apsw) (#521)
Hi @Belphemur
after copying the file apsw.so into /usr/lib/plexmediaserver/Resources/Python/lib/python2.7/lib-dynload
and reboot the Rpi3 (RPi 3 Model B (armv7l))
i got the folowing message:
"Exception: SQLError: no such column: t1.deleted"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Is this an issue thats going to up fixed in an updated version of the plugin or are we required to follow the suggestions above to get this working again? |
How to update all files for a Synology NAS ? |
How can I find out what Trakt Scrobbler program - and version - I have? |
Did you ever get the step-by-step procedure? I am not an expert (either?) and I am not sure how to do steps 2-3 in the build section. [EDIT] I figured out #2, but #3 I have no idea how to check out... |
Hi, I just got it working, and here is the step by step procedure; remove the trakt plugin (from the WebTools - UnsupportedAppStore) or uninstall from Plex. Compile a custom version of python2.7 Since Plex is running a python version that's compiled with UCS-2, and the raspbian python is compiled with UCS-4, the apsw library that's distributed in the repos is UCS-4, that cannot be loaded in plex.
Build python-apsw using the custom python version
unzip the 64a421.....apsw file and cd into it.
Restart plex, |
@treshed do you know if this step by step procedure could work on Synology ARMv7 devices? I have Plex Media Server 1.15.4.993 installed on Synology NAS DS414 and since PMS 1.15.x, the Plex-Trakt-Scrobbler 3.0.0 stopped working due to this APSW issue, so I wonder if your guide is applicable to Synology? |
Sorry for obviously beeing a complete n00b, but would you be able to provide the exact steps for "checkout" and going to commits and downloading? I checked the web site but there are no commits there... |
Im having this error compiling the commit |
Hi, |
Hi @brassica77, thanks for the workaround tip! Until we get a solution for our Synology NAS I will try to use the Trakt plugin in Kodi's own Plex addon. I still have a doubt because if your Plex Media Server is installed in your Synology NAS, then regardless of what Plex client you run Trakt from, it should trigger the APSW error because the Trakt plugin is installed in the server, not in Kodi's Plex addon. Could you please give more details about how you successfully run the Trakt plugin from the Kodi's Plex addon? |
In my case, I was coming from Emby, been using it since years, and I was already using Kodi on my desktop pc to access Emby's server on the NAS on my local network. |
@brassica77 OK I understand, so you installed the Trakt plugin in Kodi, outside of Kodi's Plex addon. I will give that a try. Thanks a lot! |
I cobbled this together from various sources
|
You're the best. |
As mentioned above the problem is with the database file. The workaround is to copy workign db file from somewhere else: |
Im trying to do this on a nvidia shield and after using the apsw.mo given in this thread, my error is now: ImportError: dlopen failed: “/storage/emulated/0/Android/data/com.plexapp.mediaserver.smb/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv/Libraries/Android/aarch64/ucs2/apsw.so” is 32-bit instead of 64-bit Do you know how to compile for aarch64 for the shield? |
Hello everybody, My conf is the following:
Please let me know what you think about it. |
For those who do not achieve to use this plugin, there is a working python script that syncs Plex & Trakt : https://github.com/Taxel/PlexTraktSync |
Very interesting ! Seems promissing. I'll have a look as soon as I can. Looking at the link shared, I have to say that I'm quite unfamiliar to such Python script and for now I have no idea how to "install" it and make it run. Has anyone tried to instal this script with a cron running on a Synology NAS? |
It has been a while since I installed it, but here is an attempt to make their instructions more user-friendly. Make sure Python 3 and git are installed.
Answer the prompts then run: (This takes a very long time)
Install the cronjob if so desired:
Add the line:
Save and Exit
Yes, but if I mark something as unwatched in plex so I can rewatch it (usually TV series I am rewatching with my kids), the sync keeps marking it as watched. This made it so I constantly lost my spot while rewatching, so I got rid of the cron.
Nope :) |
Anyone got this working on Windows? |
Noticed this too recently: Critical Error: Unable to import the playhouse.apsw_ext library (DLL load failed: The specified module could not be found.) Windows 10 |
Exact error I am getting. I ran a sync using a seperate program and am now using Webhooks to keep current watch/collection up to date on Trakt. But would be great to get the plugin working again. |
After way too much time spent what worked was a reinstall of Visual C++ 2013 x86. |
Windows 10 Solved: |
I have same problem since 1 week on Windows 10... |
Tried fully uninstalling and deleting db files. Didn't seem to work, although admittedly I did not restart PMS. I then tried the reinstall of Visual C++ 2013 x86, restarted entire machine, everything now working. I'm using Kitana with Docker on Win 10. |
I finaly solved the issue, thanks you all for your comments. |
Glad that helped. |
Can confirm 'repairing' my Visual C++ 2013 x86 install and a restart worked for getting the plugin back up and running. Cheers. |
im getting this same issue on Synology NAS - DS2015XS - its based on the Arm7 CPU. I migrated plex to Windows machine, but with 5 years of watched history on the Synology, I was hoping to sync that data across to the new system. I keep getting the no apsw module issues, but trying even the step by step approach isn't working for me as pip3 isn't available on the NAS, I get the following when I try to run through the commands admin@diskstation: I only need to run the sync once on the Synology, but this is taking so much effort as I am out of my knowledge area with this issue. Any help would be appreciated! Windows install did work, and is updating with information gathered since setup. |
@chrisweetman as a workaround, could you copy the Synology’s Plex history database file(s) to Windows and sync to Trakt from there? |
i could give that a go, is it just the file com.plexapp.plugins.library.db |
That appears to have worked for me!! all entries are now showing up in trakt, will now revert to the new version of the db file and check that all remains, if so, you have helped me get rid of an issue which has been bugging me for weeks! Simple when you know how!! |
On Windows 10 64bit |
Hello , I am finaly trying to follow your instruction to run his script on my Synology NAS.
|
Did anyone manage to install this script on a Synology NAS? Many thanks to all of you. |
@JeeDeWee it's not |
Hey guys I'm having the same problem with the apsw.so library i think. I already followed all the steps provided by vrachnis here #521 (comment) |
Hello, I have never managed to make the trakt plugin work on my plex. However I am quite happy about PlexTraktSync. Have you tried it? |
After copying apsw.so I have the following error: I've found libsqlite3.so.0 in my system and tried to add the path to LD_LIBRARY_PATH, tried to use ldconfig and even tried to copy the file directly to the What's weird, the plugin was working fine until the last Plex update (about a week ago or so). Any clue will be much appreciated. |
Could someone solve this shitty issue? copying the apsw.so is not longer working. PLEASE!!!!! |
Hi.
I have (strange) problem with plex on docker container based on linuxserver/plex image on Odroid HC2 (Odroid XU4)
Message "Critical Error: Unable to import the playhouse.apsw_ext library (No module named apsw)" in Plex web interface.
plugin log:
com.plexapp.plugins.trakttv.zip
I created the Plug-in Support\Data\com.plexapp.plugins.trakttv\advanced.ini file with the following contents:
[libraries]
cache_path = /var/lib/tfp/libraries
libraries_path = /var/lib/tfp/libraries
I copied Linux/armv7_hf folder from Plug-ins/Trakttv.bundle/Contents/Libraries to /var/lib/tfp/libraries.
I set permission for content /var/lib/tfp/libraries
This configuration work on docker contaner based on lsioarmhf/plex image and work perfect.
But after i tried turn container to linuxserver/plex (after linuxserver team include multiarch support to this image) trakttv plugin stop work :(
I tried add to the Plug-in Support\Data\com.plexapp.plugins.trakttv\advanced.ini file next content:
cpu_architecture = armv7_hf
And I copied Linux/armv6_hf folder from Plug-ins/Trakttv.bundle/Contents/Libraries to /var/lib/tfp/libraries because linuxserver/plex image support exactly armv6-32 architecture.
Did not help for me
The text was updated successfully, but these errors were encountered: