PMS_Updater: ImportError: No module named site
Current error running on 12.1-RELEASE-p13:
Using URL https://plex.tv/api/downloads/5.json
Searching https://plex.tv/api/downloads/5.json for the FreeBSD download URL .....
ImportError: No module named site
Could not find a FreeBSD download link on page https://plex.tv/api/downloads/5.json?channel=plexpass&X-Plex-Token=...
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 23 (6 by maintainers)
Commits related to this issue
- Update PMS_Updater.sh Added Line 216 according to: https://github.com/mstinaff/PMS_Updater/issues/57#issuecomment-845626592 — committed to baroso/PMS_Updater by baroso 3 years ago
I made a change to use
jq
instead of the Plex bundled Python to parse the json for the download URL. Unfortunately, this is an extra external dependency.Temporary workaround:
pkg install jq
to installjq
.DOWNLOADURL
on line 135 to:All we need to do is add the following at L216
I just “fixed” this in my fork.
https://github.com/jbeez/PMS_Updater/blob/TokenAuth/PMS_Updater.sh
That issue has nothing to do with the updater script.
https://www.reddit.com/r/PleX/comments/n3a8ob/server_settings_are_unavailable_truenas_iocage/
@jbeez
I just tried your fork of the PMS_Updater script and I get this error:
./PMS_Updater.sh 7: Syntax error: newline unexpected (expecting word)
Didn’t work for me. I’ve had to manually upgrade the three last releases. Currently running PMS 1.23.0.4482 in a 12.2-RELEASE-p6 jail on TrueNAS-12.0-U3. root@plex:~ # ./PMS_Updater.sh -vv -a Using URL https://plex.tv/api/downloads/5.json Searching https://plex.tv/api/downloads/5.json for the FreeBSD download URL …ImportError: No module named site Could not find a FreeBSD download link on page https://plex.tv/api/downloads/5.json?channel=plexpass&X-Plex-Token=XXXXXXXXXXXXXXXXX root@plex:~ #