Server Version#: 1.23.0.4497
Player Version#: 4.56.4
I’ve been using PMS_Updater to update PMS in my TrueNAS jail. A few versions back all the python modules were removed from /usr/local/share/plexmediaserver-plexpass/Resources/Python/lib/python2.7 and as a result Plex Script Host no longer works. The error message I get is .ImportError: No module named site.
In 1.23 we changed how our script host is distributed. The standard library is now in python27.zip. If you want to run it from the command line you need to point the environment variable PYTHONPATH to the python27.zip file.
I wouldn’t rely on using the plex script host outside plugins in PMS though. We don’t consider any other usage and might change or remove functionality as we see fit. So you have been warned.
I just hacked the updater script with a ln work around, I couldn’t get it to recognize the path variable. Tomorrow if I have some time I’m going to experiment with escaping that and defining it in different ways and in different parts of the script it’s very touchy. Updated the script on my GitHub and also have a pull request in on the main project.