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

Most upvoted comments

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:

  1. Run pkg install jq to install jq.
  2. Change the DOWNLOADURL on line 135 to:
    DOWNLOADURL="$(fetch -q $TOKENURL -o- | jq -r '.computer.FreeBSD.releases[0].url')"
    

All we need to do is add the following at L216

export PYTHONPATH="$PYTHONHOME/python27.zip"

@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:~ #