Outdated module in Python bundled with Plex Media Server

other-dev

#1

I'd like to report a bug in Python installation that is bundled with Plex Media Server: some modules distributed in python27.zip may be outdated (ie being from earlier Python versions than 2.7). I know of one:

Namely it's a unittest module. The one from the zip file consists only of a single file, named unittest.py, while the "real" unittest module that comes with Python 2.7 is a subdirectory named unittest with several files in it. Specifically, it has a test discovery feature that helps running all tests at once. Without the feature it's only possible to run test methods or classes one by one.

Since unit tests are important to develop and maintain Plex plug-ins in working order, I would really appreciate this module being updated. Could anybody in contact with Plex development team report it to them?

Example of a missing module:

> "C:\Program Files (x86)\Plex\Plex Media Server\PlexScriptHost.exe" -m unittest discover
Traceback (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\runpy.py", line 174, in _run_module_as_main
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\runpy.py", line 72, in _run_code
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\unittest.py", line 875, in <module>
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\unittest.py", line 816, in __init__
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\unittest.py", line 843, in parseArgs
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\unittest.py", line 849, in createTests
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\unittest.py", line 613, in loadTestsFromNames
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\unittest.py", line 576, in loadTestsFromName
ImportError: No module named discover

#2

Don't get your hopes up regarding bug reports in here... They're completely ignored by Plex staff...