If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Outdated module in Python bundled with Plex Media Server

czukowskiczukowski Posts: 143Members ✭✭✭

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

Comments

  • EtherManEtherMan Posts: 64Members Plex Pass

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

Sign In or Register to comment.