1.15.0 linux python related errors on folderscan/import

Server Version#:1.15.0
Player Version#:
After going from 1.14.1.5488 to 1.15.0, new content wouldn’t be imported automatically. Looking at the logs, I’d see similar errors to:

Feb 21, 2019 16:12:35.468 [0x7f1c106cd7c0] ERROR - Error scanning directory tvshowX.
Feb 21, 2019 16:12:35.478 [0x7f1c106cd7c0] ERROR - No module in Plex Series Scanner
Feb 21, 2019 16:12:35.478 [0x7f1c106cd7c0] ERROR - Error in Python: Looking up module:
Traceback (most recent call last):
File “/usr/lib64/plexmediaserver/Resources/Plug-ins-d893009fb/Scanners.bundle/Contents/Resources/Series/Plex Series Scanner.py”, line 5, in
import Media, VideoFiles, Stack, Utils
File “/usr/lib64/plexmediaserver/Resources/Plug-ins-d893009fb/Scanners.bundle/Contents/Resources/Common/VideoFiles.py”, line 2, in
import Filter
File “/usr/lib64/plexmediaserver/Resources/Plug-ins-d893009fb/Scanners.bundle/Contents/Resources/Common/Filter.py”, line 2, in
import Utils
File “/usr/lib64/plexmediaserver/Resources/Plug-ins-d893009fb/Scanners.bundle/Contents/Resources/Common/Utils.py”, line 1, in
import os, re, string, unicodedata, sys
ImportError: /usr/lib64/plexmediaserver/Resources/Python/lib/python2.7/lib-dynload/unicodedata.so: undefined symbol: _PyUnicodeUCS2_ToDigit
Feb 21, 2019 16:12:35.478 [0x7f1c106cd7c0] ERROR - We got an error scanning in /raid/video/tvstuffs
Feb 21, 2019 16:12:35.481 [0x7f1c106cd7c0] WARN - Scanning the location /raid/video/tvstuffs did not complete

If I revert back to plexmediaserver_1.14.1.5488-cc260c476_amd64.deb it works as expected.

It sounds like dependencies were updated, is this documented anywhere.

Whatever is happening here,

  1. Stop Plex (if it hasn’t already crashed)
  2. Remove, but do not purge the package
  3. Install the new package.

I would like to know more details about distro and version as this is the first I’ve seen this type error

Hi Chuck,

Thanks for the reply. I’m admittedly running a custom configuration, essentially using Gentoo on kernel 4.20.11 , glibc-2.28 . I essentially extract the ubuntu 64bit package and deploy the contents to update.

I believe plex used to require python 2.7, has that possibly changed to cause the above new errors between versions? Is there any documentation on dependency requirement changes with the new version besides glibc as mentioned in the changelog?

Plex does require Python 2.7 for now. The Python dependency is decreasing and is on the “deprecated” list already.

If you have Python 3 installed, which I fully expect, You will see this.

A little PATH magic on the Plex user will let you create a symlink somewhere, named python, which resolves to python 2.7 for Plex but not impact your system.

Since you’re running Gentoo, I presume not a challenge albeit an annoyance during this transition ?

The system is certainly using python 2.7

plex@raidh4x ~ /usr/bin/python -V Python 2.7.15 plex@raidh4x ~ python -V
Python 2.7.15
plex@raidh4x ~ $

Also, reverting to the previous version of plex functions normally, also using python 2.7. Its only if I upgrade to 1.15 that I start to see these errors.

CHecking to see if something else could be calling python 3, but I’m skeptical.

Plex uses its own Python runtimes 99% of the time, which includes the scanners.
This is why I’m confused right now.

I have both python 2 and 3 installed here (develop part of Plex using Python 3 but run under 2).

If you do this, you should see the same

[chuck@lizum Cache.297]$ python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib64/python2.7/site.pyc matches /usr/lib64/python2.7/site.py
import site # precompiled from /usr/lib64/python2.7/site.pyc
# /usr/lib64/python2.7/os.pyc matches /usr/lib64/python2.7/os.py
import os # precompiled from /usr/lib64/python2.7/os.pyc
import errno # builtin
import posix # builtin
# /usr/lib64/python2.7/posixpath.pyc matches /usr/lib64/python2.7/posixpath.py
import posixpath # precompiled from /usr/lib64/python2.7/posixpath.pyc
# /usr/lib64/python2.7/stat.pyc matches /usr/lib64/python2.7/stat.py
import stat # precompiled from /usr/lib64/python2.7/stat.pyc
# /usr/lib64/python2.7/genericpath.pyc matches /usr/lib64/python2.7/genericpath.py
import genericpath # precompiled from /usr/lib64/python2.7/genericpath.pyc
# /usr/lib64/python2.7/warnings.pyc matches /usr/lib64/python2.7/warnings.py
import warnings # precompiled from /usr/lib64/python2.7/warnings.pyc
# /usr/lib64/python2.7/linecache.pyc matches /usr/lib64/python2.7/linecache.py
import linecache # precompiled from /usr/lib64/python2.7/linecache.pyc
# /usr/lib64/python2.7/types.pyc matches /usr/lib64/python2.7/types.py
import types # precompiled from /usr/lib64/python2.7/types.pyc
# /usr/lib64/python2.7/UserDict.pyc matches /usr/lib64/python2.7/UserDict.py
import UserDict # precompiled from /usr/lib64/python2.7/UserDict.pyc
# /usr/lib64/python2.7/_abcoll.pyc matches /usr/lib64/python2.7/_abcoll.py
import _abcoll # precompiled from /usr/lib64/python2.7/_abcoll.pyc
# /usr/lib64/python2.7/abc.pyc matches /usr/lib64/python2.7/abc.py
import abc # precompiled from /usr/lib64/python2.7/abc.pyc
# /usr/lib64/python2.7/_weakrefset.pyc matches /usr/lib64/python2.7/_weakrefset.py
import _weakrefset # precompiled from /usr/lib64/python2.7/_weakrefset.pyc
import _weakref # builtin
# /usr/lib64/python2.7/copy_reg.pyc matches /usr/lib64/python2.7/copy_reg.py
import copy_reg # precompiled from /usr/lib64/python2.7/copy_reg.pyc
# /usr/lib64/python2.7/traceback.pyc matches /usr/lib64/python2.7/traceback.py
import traceback # precompiled from /usr/lib64/python2.7/traceback.pyc
# /usr/lib64/python2.7/sysconfig.pyc matches /usr/lib64/python2.7/sysconfig.py
import sysconfig # precompiled from /usr/lib64/python2.7/sysconfig.pyc
# /usr/lib64/python2.7/re.pyc matches /usr/lib64/python2.7/re.py
import re # precompiled from /usr/lib64/python2.7/re.pyc
# /usr/lib64/python2.7/sre_compile.pyc matches /usr/lib64/python2.7/sre_compile.py
import sre_compile # precompiled from /usr/lib64/python2.7/sre_compile.pyc
import _sre # builtin
# /usr/lib64/python2.7/sre_parse.pyc matches /usr/lib64/python2.7/sre_parse.py
import sre_parse # precompiled from /usr/lib64/python2.7/sre_parse.pyc
# /usr/lib64/python2.7/sre_constants.pyc matches /usr/lib64/python2.7/sre_constants.py
import sre_constants # precompiled from /usr/lib64/python2.7/sre_constants.pyc
dlopen("/usr/lib64/python2.7/lib-dynload/_localemodule.so", 2);
import _locale # dynamically loaded from /usr/lib64/python2.7/lib-dynload/_localemodule.so
# /usr/lib64/python2.7/_sysconfigdata.pyc matches /usr/lib64/python2.7/_sysconfigdata.py
import _sysconfigdata # precompiled from /usr/lib64/python2.7/_sysconfigdata.pyc
import encodings # directory /usr/lib64/python2.7/encodings
# /usr/lib64/python2.7/encodings/__init__.pyc matches /usr/lib64/python2.7/encodings/__init__.py
import encodings # precompiled from /usr/lib64/python2.7/encodings/__init__.pyc
# /usr/lib64/python2.7/codecs.pyc matches /usr/lib64/python2.7/codecs.py
import codecs # precompiled from /usr/lib64/python2.7/codecs.pyc
import _codecs # builtin
# /usr/lib64/python2.7/encodings/aliases.pyc matches /usr/lib64/python2.7/encodings/aliases.py
import encodings.aliases # precompiled from /usr/lib64/python2.7/encodings/aliases.pyc
# /usr/lib64/python2.7/encodings/utf_8.pyc matches /usr/lib64/python2.7/encodings/utf_8.py
import encodings.utf_8 # precompiled from /usr/lib64/python2.7/encodings/utf_8.pyc
Python 2.7.15 (default, Oct 15 2018, 18:36:25) 
[GCC 7.3.1 20180712 (Red Hat 7.3.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib64/python2.7/lib-dynload/readline.so", 2);
import readline # dynamically loaded from /usr/lib64/python2.7/lib-dynload/readline.so
>>>

Notice all the paths point to the default installed package location.

Might you have misconfigured python when you compiled?

plex@raidh4x ~ $ python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/site.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/site.py
import site # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/site.pyc
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/os.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/os.py
import os # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/os.pyc
import errno # builtin
import posix # builtin
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/posixpath.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/posixpath.py
import posixpath # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/posixpath.pyc
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/stat.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/stat.py
import stat # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/stat.pyc
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/genericpath.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/genericpath.py
import genericpath # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/genericpath.pyc
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/warnings.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/warnings.py
import warnings # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/warnings.pyc
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/linecache.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/linecache.py
import linecache # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/linecache.pyc
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/types.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/types.py
import types # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/types.pyc
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/UserDict.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/UserDict.py
import UserDict # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/UserDict.pyc
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/_abcoll.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/_abcoll.py
import _abcoll # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/_abcoll.pyc
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/abc.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/abc.py
import abc # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/abc.pyc
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/_weakrefset.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/_weakrefset.py
import _weakrefset # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/_weakrefset.pyc
import _weakref # builtin
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/copy_reg.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/copy_reg.py
import copy_reg # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/copy_reg.pyc
# /usr/lib/python-exec/python2.7/../../../lib64/python2.7/traceback.pyc matches /usr/lib/python-exec/python2.7/../../../lib64/python2.7/traceback.py
import traceback # precompiled from /usr/lib/python-exec/python2.7/../../../lib64/python2.7/traceback.pyc
# /usr/lib64/python2.7/sysconfig.pyc matches /usr/lib64/python2.7/sysconfig.py
import sysconfig # precompiled from /usr/lib64/python2.7/sysconfig.pyc
# /usr/lib64/python2.7/re.pyc matches /usr/lib64/python2.7/re.py
import re # precompiled from /usr/lib64/python2.7/re.pyc
# /usr/lib64/python2.7/sre_compile.pyc matches /usr/lib64/python2.7/sre_compile.py
import sre_compile # precompiled from /usr/lib64/python2.7/sre_compile.pyc
import _sre # builtin
# /usr/lib64/python2.7/sre_parse.pyc matches /usr/lib64/python2.7/sre_parse.py
import sre_parse # precompiled from /usr/lib64/python2.7/sre_parse.pyc
# /usr/lib64/python2.7/sre_constants.pyc matches /usr/lib64/python2.7/sre_constants.py
import sre_constants # precompiled from /usr/lib64/python2.7/sre_constants.pyc
dlopen("/usr/lib64/python2.7/lib-dynload/_locale.so", 2);
import _locale # dynamically loaded from /usr/lib64/python2.7/lib-dynload/_locale.so
# /usr/lib64/python2.7/_sysconfigdata.pyc matches /usr/lib64/python2.7/_sysconfigdata.py
import _sysconfigdata # precompiled from /usr/lib64/python2.7/_sysconfigdata.pyc
import encodings # directory /usr/lib64/python2.7/encodings
# /usr/lib64/python2.7/encodings/__init__.pyc matches /usr/lib64/python2.7/encodings/__init__.py
import encodings # precompiled from /usr/lib64/python2.7/encodings/__init__.pyc
# /usr/lib64/python2.7/codecs.pyc matches /usr/lib64/python2.7/codecs.py
import codecs # precompiled from /usr/lib64/python2.7/codecs.pyc
import _codecs # builtin
# /usr/lib64/python2.7/encodings/aliases.pyc matches /usr/lib64/python2.7/encodings/aliases.py
import encodings.aliases # precompiled from /usr/lib64/python2.7/encodings/aliases.pyc
# /usr/lib64/python2.7/encodings/utf_8.pyc matches /usr/lib64/python2.7/encodings/utf_8.py
import encodings.utf_8 # precompiled from /usr/lib64/python2.7/encodings/utf_8.pyc
Python 2.7.15 (default, Jan 13 2019, 12:01:48)
[GCC 8.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib64/python2.7/lib-dynload/readline.so", 2);
import readline # dynamically loaded from /usr/lib64/python2.7/lib-dynload/readline.so
>>>

PMS is running under your username?
ldconfig set to the default paths?

I haven’t used Gentoo in ages but know you can change everything.

do you have libpython-anything installed in /lib64 ?

ldconfig would preempt Plex and cause problems.

plex@raidh4x ~ $ ldconfig -p | grep python
        libpython3.6m.so.1.0 (libc6,x86-64) => /usr/lib64/libpython3.6m.so.1.0
        libpython3.6m.so (libc6,x86-64) => /usr/lib64/libpython3.6m.so
        libpython2.7.so.1.0 (libc6,x86-64) => /usr/lib64/libpython2.7.so.1.0
        libpython2.7.so (libc6,x86-64) => /usr/lib64/libpython2.7.so
        libpytalloc-util.cpython-36m-x86-64-linux-gnu.so.2 (libc6,x86-64) => /usr/lib64/libpytalloc-util.cpython-36m-x86-64-linux-gnu.so.2
        libpytalloc-util.cpython-36m-x86-64-linux-gnu.so (libc6,x86-64) => /usr/lib64/libpytalloc-util.cpython-36m-x86-64-linux-gnu.so
        libboost_python-3.6.so.1.65.0 (libc6,x86-64) => /usr/lib64/libboost_python-3.6.so.1.65.0
        libboost_python-3.6.so (libc6,x86-64) => /usr/lib64/libboost_python-3.6.so
        libboost_python-2.7.so.1.65.0 (libc6,x86-64) => /usr/lib64/libboost_python-2.7.so.1.65.0
        libboost_python-2.7.so (libc6,x86-64) => /usr/lib64/libboost_python-2.7.so

Yeah, I keep coming back and forth to gentoo. I move to ubuntu, and then find that I want to do custom stuff so try gentoo again. However, I probably should just start using docker more often, as docker is now available for most of the products that I tend to prefer gentoo for, and therefor is becoming moot.

Seeing how the libpython listed, it’s clear.
You’re getting python3 libraries superseding Plex’s.

This is one of those cases when a distro we’ve tested, and has predictability, saves you headaches

Docker will provide you that since the internal environment is controlled.

However, Gentoo affords you full control. Docker removes all control.

Interesting dilemma

Thats interesting. If I check with ldd, it does point out:

/usr/lib64/plexmediaserver/Library/Application Support/Plex Media Server/Logs $ ldd /usr/lib64/plexmediaserver/Plex\ Media\ Scanner | grep python
libpython2.7.so.1.0 => /usr/lib64/libpython2.7.so.1.0 (0x00007fe4e4b7a000)

So, if I change it, and then upgrade to 1.50 its still broken.

plex@raidh4x /usr/lib64/plexmediaserver $ ldd /usr/lib64/plexmediaserver/Plex\ Media\ Scanner | grep python
libpython2.7.so.1.0 => /usr/lib64/plexmediaserver/lib/libpython2.7.so.1.0 (0x00007f8fe095d000)

checking the media scanner log
Feb 22, 2019 21:36:22.735 [0x7fa16def97c0] ERROR - Error scanning directory farscape.
Feb 22, 2019 21:36:22.745 [0x7fa16def97c0] ERROR - No module in Plex Series Scanner
Feb 22, 2019 21:36:22.746 [0x7fa16def97c0] ERROR - Error in Python: Looking up module:
Traceback (most recent call last):
File “/usr/lib64/plexmediaserver/Resources/Plug-ins-d893009fb/Scanners.bundle/Contents/Resources/Series/Plex Series Scanner.py”, line 5, in
import Media, VideoFiles, Stack, Utils
File “/usr/lib64/plexmediaserver/Resources/Plug-ins-d893009fb/Scanners.bundle/Contents/Resources/Common/VideoFiles.py”, line 2, in
import Filter
File “/usr/lib64/plexmediaserver/Resources/Plug-ins-d893009fb/Scanners.bundle/Contents/Resources/Common/Filter.py”, line 2, in
import Utils
File “/usr/lib64/plexmediaserver/Resources/Plug-ins-d893009fb/Scanners.bundle/Contents/Resources/Common/Utils.py”, line 1, in
import os, re, string, unicodedata, sys
ImportError: /usr/lib64/plexmediaserver/Resources/Python/lib/python2.7/lib-dynload/unicodedata.so: undefined symbol: _PyUnicodeUCS2_ToDigit
Feb 22, 2019 21:36:22.746 [0x7fa16def97c0] ERROR - We got an error scanning in /raid/video/1.current.tv
Feb 22, 2019 21:36:22.750 [0x7fa16def97c0] WARN - Scanning the location /raid/video/1.current.tv did not complete

ldd /usr/lib64/plexmediaserver/Plex\ Media\ Scanner | grep -v plexmediaserver
linux-vdso.so.1 (0x00007ffd67af5000)
librt.so.1 => /lib64/librt.so.1 (0x00007f9c5c277000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f9c5b140000)
libm.so.6 => /lib64/libm.so.6 (0x00007f9c5ac77000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f9c5ac6f000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9c561f1000)
libc.so.6 => /lib64/libc.so.6 (0x00007f9c55ce4000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9c5c958000)
libva.so.2 => not found
libva.so.2 => not found
libva-drm.so.2 => not found
libva.so.2 => not found
libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/libgcc_s.so.1 (0x00007f9c55cc6000)

Other libraries replaced by ld don’t seem to be present in your file structure.

plex@raidh4x /usr/lib64/plexmediaserver find . -name linux-vdso.so.1 plex@raidh4x /usr/lib64/plexmediaserver find . -name librt.so.1
plex@raidh4x /usr/lib64/plexmediaserver find . -name libutil.so.1 plex@raidh4x /usr/lib64/plexmediaserver find . -name libm.so.6
plex@raidh4x /usr/lib64/plexmediaserver find . -name libdl.so.2 plex@raidh4x /usr/lib64/plexmediaserver find . -name libpthread.so.0
plex@raidh4x /usr/lib64/plexmediaserver find . -name libc.so.6 plex@raidh4x /usr/lib64/plexmediaserver find . -name ld-linux-x86-64.so.2
plex@raidh4x /usr/lib64/plexmediaserver find . -name libva.so.2 ./lib/libva.so.2 ./libva.so.2 plex@raidh4x /usr/lib64/plexmediaserver find . -name libva.so.2
./lib/libva.so.2
./libva.so.2
plex@raidh4x /usr/lib64/plexmediaserver find . -name libva-drm.so.2 ./libva-drm.so.2 ./lib/libva-drm.so.2 plex@raidh4x /usr/lib64/plexmediaserver find . -name libva.so.2
./lib/libva.so.2
./libva.so.2
plex@raidh4x /usr/lib64/plexmediaserver find . -name libgcc_s.so.1 plex@raidh4x /usr/lib64/plexmediaserver

I am not sure how to say this nicely but I can’t do any more for you other than recommend Docker.

I’ve never tested on Gentoo, not equipped to support Gentoo, and it’s so configurable there’s too many variations possible.

I can only wish you the best of luck.
Sorry I can’t help more.

Heh, Thanks Chuck. No worries. I’m just confused as to what changed around python between the two versions? If 1.14 works fine, and 1.15 doesn’t.

1.15.0 is the full bump of the build system, glibc 2.14.1 minimum all the way around.
Because everything is built differently, there will be some minor issues.

One minor issue we’re seeing is RPATH. That’s under control now

Docker is up and running. I was hoping to avoid the rescan and reset of viewed items, but alas… Appreciate your attempt!

I’m having the same issue after updating to 1.15. My library is not being updated with the new files and the scan log shows some errors.

I tried changing from the last 1.14 build (where my scanner was working) to the first 1.15 build and this error happened, also happened with the last 1.15 build. So clearly is something between 1.14 and 1.15

My PMS is running inside a screen and this is the info from lsb_release

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.5 (stretch)
Release:        9.5
Codename:       stretch

This is my latest scanner log:

Mar 25, 2019 18:47:21.794 [0x7f6ca0675780] ERROR - No module in VideoFiles
Mar 25, 2019 18:47:21.794 [0x7f6ca0675780] ERROR - Error in Python: Looking up module:
Traceback (most recent call last):
  File "/media/sdi1/elfenars/private/plex/usr/lib/plexmediaserver/Resources/Plug-ins-782228f99/Scanners.bundle/Contents/Resources/Common/VideoFiles.py", line 2, in <module>
    import Filter
  File "/media/sdi1/elfenars/private/plex/usr/lib/plexmediaserver/Resources/Plug-ins-782228f99/Scanners.bundle/Contents/Resources/Common/Filter.py", line 2, in <module>
    import Utils
  File "/media/sdi1/elfenars/private/plex/usr/lib/plexmediaserver/Resources/Plug-ins-782228f99/Scanners.bundle/Contents/Resources/Common/Utils.py", line 1, in <module>
    import os, re, string, unicodedata, sys
ImportError: /media/sdi1/elfenars/private/plex/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/lib-dynload/unicodedata.so: undefined symbol: _PyUnicodeUCS2_ToDigit
Mar 25, 2019 18:47:21.794 [0x7f6ca0675780] ERROR - Error scanning directory Cowboy Bebop/S01.
Mar 25, 2019 18:47:21.807 [0x7f6ca0675780] ERROR - No module in Plex Series Scanner
Mar 25, 2019 18:47:21.807 [0x7f6ca0675780] ERROR - Error in Python: Looking up module:
Traceback (most recent call last):
  File "/media/sdi1/elfenars/private/plex/usr/lib/plexmediaserver/Resources/Plug-ins-782228f99/Scanners.bundle/Contents/Resources/Series/Plex Series Scanner.py", line 5, in <module>
    import Media, VideoFiles, Stack, Utils
  File "/media/sdi1/elfenars/private/plex/usr/lib/plexmediaserver/Resources/Plug-ins-782228f99/Scanners.bundle/Contents/Resources/Common/VideoFiles.py", line 2, in <module>
    import Filter
  File "/media/sdi1/elfenars/private/plex/usr/lib/plexmediaserver/Resources/Plug-ins-782228f99/Scanners.bundle/Contents/Resources/Common/Filter.py", line 2, in <module>
    import Utils
  File "/media/sdi1/elfenars/private/plex/usr/lib/plexmediaserver/Resources/Plug-ins-782228f99/Scanners.bundle/Contents/Resources/Common/Utils.py", line 1, in <module>
    import os, re, string, unicodedata, sys
ImportError: /media/sdi1/elfenars/private/plex/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/lib-dynload/unicodedata.so: undefined symbol: _PyUnicodeUCS2_ToDigit
Mar 25, 2019 18:47:21.807 [0x7f6ca0675780] ERROR - We got an error scanning in /media/sdi1/elfenars/plex/anime
Mar 25, 2019 18:47:21.916 [0x7f6ca0675780] WARN - Scanning the location /media/sdi1/elfenars/plex/anime did not complete
Mar 25, 2019 18:47:21.916 [0x7f6ca0675780] DEBUG - Since it was an incomplete scan, we are not going to whack missing media.
Mar 25, 2019 18:47:21.991 [0x7f6ca0675780] DEBUG - Refreshing section 2 of type: 2
Mar 25, 2019 18:47:22.003 [0x7f6c97665700] DEBUG - Refreshing 0 IDs.

This is just the last 20-ish lines of the scanner log, but the error is the same all over the place.

As far as I see the python version is 2.7.

I also see this warnings at the top of the log, but I believe they’re unrelated.

Mar 25, 2019 18:47:20.954 [0x7f6c97f49700] INFO - Plex Media Scanner v1.15.2.793-782228f99 - unknown PC unknown - build: linux-x86_64 - GMT 00:00
Mar 25, 2019 18:47:20.955 [0x7f6c97f49700] INFO - Linux version: 4.17.19-feral (#2 SMP Thu Aug 30 13:26:36 BST 2018), language: en-GB
Mar 25, 2019 18:47:20.955 [0x7f6c97f49700] INFO - Processor       Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz
Mar 25, 2019 18:47:20.955 [0x7f6c97f49700] INFO - /media/sdi1/elfenars/private/plex/usr/lib/plexmediaserver/Plex Media Scanner --scan --refresh --section 2
Mar 25, 2019 18:47:20.955 [0x7f6ca0675780] VERBOSE - [FFMPEG] - Rescanning for external libs: '/media/sdi1/elfenars/Library/Application\ Support/Plex\ Media\ Server/Codecs/a22632d-2132-linux-x86_64/'
Mar 25, 2019 18:47:20.955 [0x7f6ca0675780] VERBOSE - [FFMPEG] - Loading external lib /media/sdi1/elfenars/Library/Application Support/Plex Media Server/Codecs/a22632d-2132-linux-x86_64/liblibx264_encoder.so
Mar 25, 2019 18:47:20.957 [0x7f6ca0675780] WARN - [FFMPEG] - Incompatible FFmpeg versions: '1.4-a22632d-13' vs. 'git-2018-09-24-531e313'.
Mar 25, 2019 18:47:20.957 [0x7f6ca0675780] WARN - [FFMPEG] - Failed to initialize library.
Mar 25, 2019 18:47:20.957 [0x7f6ca0675780] VERBOSE - [FFMPEG] - Loading external lib /media/sdi1/elfenars/Library/Application Support/Plex Media Server/Codecs/a22632d-2132-linux-x86_64/libdca_decoder.so
Mar 25, 2019 18:47:20.957 [0x7f6ca0675780] WARN - [FFMPEG] - Incompatible FFmpeg versions: '1.4-a22632d-13' vs. 'git-2018-09-24-531e313'.
Mar 25, 2019 18:47:20.957 [0x7f6ca0675780] WARN - [FFMPEG] - Failed to initialize library.
Mar 25, 2019 18:47:20.957 [0x7f6ca0675780] VERBOSE - [FFMPEG] - Loading external lib /media/sdi1/elfenars/Library/Application Support/Plex Media Server/Codecs/a22632d-2132-linux-x86_64/libac3_decoder.so
Mar 25, 2019 18:47:20.958 [0x7f6ca0675780] WARN - [FFMPEG] - Incompatible FFmpeg versions: '1.4-a22632d-13' vs. 'git-2018-09-24-531e313'.
Mar 25, 2019 18:47:20.958 [0x7f6ca0675780] WARN - [FFMPEG] - Failed to initialize library.
Mar 25, 2019 18:47:20.958 [0x7f6ca0675780] VERBOSE - [FFMPEG] - Loading external lib /media/sdi1/elfenars/Library/Application Support/Plex Media Server/Codecs/a22632d-2132-linux-x86_64/libmp3_decoder.so
Mar 25, 2019 18:47:20.958 [0x7f6ca0675780] WARN - [FFMPEG] - Incompatible FFmpeg versions: '1.4-a22632d-13' vs. 'git-2018-09-24-531e313'.
Mar 25, 2019 18:47:20.958 [0x7f6ca0675780] WARN - [FFMPEG] - Failed to initialize library.
Mar 25, 2019 18:47:20.958 [0x7f6ca0675780] VERBOSE - [FFMPEG] - Loading external lib /media/sdi1/elfenars/Library/Application Support/Plex Media Server/Codecs/a22632d-2132-linux-x86_64/libmpeg4_decoder.so
Mar 25, 2019 18:47:20.959 [0x7f6ca0675780] WARN - [FFMPEG] - Incompatible FFmpeg versions: '1.4-a22632d-13' vs. 'git-2018-09-24-531e313'.
Mar 25, 2019 18:47:20.959 [0x7f6ca0675780] WARN - [FFMPEG] - Failed to initialize library.
Mar 25, 2019 18:47:20.959 [0x7f6ca0675780] VERBOSE - [FFMPEG] - Loading external lib /media/sdi1/elfenars/Library/Application Support/Plex Media Server/Codecs/a22632d-2132-linux-x86_64/libhevc_decoder.so
Mar 25, 2019 18:47:20.960 [0x7f6ca0675780] WARN - [FFMPEG] - Incompatible FFmpeg versions: '1.4-a22632d-13' vs. 'git-2018-09-24-531e313'.
Mar 25, 2019 18:47:20.960 [0x7f6ca0675780] WARN - [FFMPEG] - Failed to initialize library.
Mar 25, 2019 18:47:20.960 [0x7f6ca0675780] VERBOSE - [FFMPEG] - Loading external lib /media/sdi1/elfenars/Library/Application Support/Plex Media Server/Codecs/a22632d-2132-linux-x86_64/libac3_encoder.so
Mar 25, 2019 18:47:20.961 [0x7f6ca0675780] WARN - [FFMPEG] - Incompatible FFmpeg versions: '1.4-a22632d-13' vs. 'git-2018-09-24-531e313'.
Mar 25, 2019 18:47:20.961 [0x7f6ca0675780] WARN - [FFMPEG] - Failed to initialize library.
Mar 25, 2019 18:47:20.961 [0x7f6ca0675780] VERBOSE - [FFMPEG] - Loading external lib /media/sdi1/elfenars/Library/Application Support/Plex Media Server/Codecs/a22632d-2132-linux-x86_64/libaac_encoder.so
Mar 25, 2019 18:47:20.961 [0x7f6ca0675780] WARN - [FFMPEG] - Incompatible FFmpeg versions: '1.4-a22632d-13' vs. 'git-2018-09-24-531e313'.
Mar 25, 2019 18:47:20.961 [0x7f6ca0675780] WARN - [FFMPEG] - Failed to initialize library.
Mar 25, 2019 18:47:20.961 [0x7f6ca0675780] VERBOSE - [FFMPEG] - Loading external lib /media/sdi1/elfenars/Library/Application Support/Plex Media Server/Codecs/a22632d-2132-linux-x86_64/libaac_decoder.so
Mar 25, 2019 18:47:20.962 [0x7f6ca0675780] WARN - [FFMPEG] - Incompatible FFmpeg versions: '1.4-a22632d-13' vs. 'git-2018-09-24-531e313'.
Mar 25, 2019 18:47:20.962 [0x7f6ca0675780] WARN - [FFMPEG] - Failed to initialize library.
Mar 25, 2019 18:47:20.962 [0x7f6ca0675780] VERBOSE - [FFMPEG] - Loading external lib /media/sdi1/elfenars/Library/Application Support/Plex Media Server/Codecs/a22632d-2132-linux-x86_64/libh264_decoder.so
Mar 25, 2019 18:47:20.963 [0x7f6ca0675780] WARN - [FFMPEG] - Incompatible FFmpeg versions: '1.4-a22632d-13' vs. 'git-2018-09-24-531e313'.
Mar 25, 2019 18:47:20.963 [0x7f6ca0675780] WARN - [FFMPEG] - Failed to initialize library

I see the problem.

Mar 25, 2019 18:47:20.954 [0x7f6c97f49700] INFO - Plex Media Scanner v1.15.2.793-782228f99 - unknown PC unknown - build: linux-x86_64 - GMT 00:00
Mar 25, 2019 18:47:20.955 [0x7f6c97f49700] INFO - Linux version: 4.17.19-feral (#2 SMP Thu Aug 30 13:26:36 BST 2018), language: en-GB

Feral hosting is not compatible with Plex. You need a different provider.