Hi,
I’m running the latest version of NZBGet on a rapsberry pi with docker. I am trying to send a push notification using Apprise with the Notify NZBGet script. However when I test the server connection, I get the following error:
Executing script Notify.py with command TestServers
Notify: Traceback (most recent call last):
Notify: File “/usr/lib/python3.8/site-packages/markdown/meta.py”, line 23, in
Notify: import packaging.version
Notify: ModuleNotFoundError: No module named ‘packaging’
Notify: During handling of the above exception, another exception occurred:
Notify: Traceback (most recent call last):
Notify: File “/scripts/Notify.py”, line 181, in
Notify: from apprise import Apprise
Notify: File “/usr/lib/python3.8/site-packages/apprise/init.py”, line 51, in
Notify: from .Apprise import Apprise
Notify: File “/usr/lib/python3.8/site-packages/apprise/Apprise.py”, line 29, in
Notify: from markdown import markdown
Notify: File “/usr/lib/python3.8/site-packages/markdown/init.py”, line 32, in
Notify: from .meta import version, version_info # noqa: E402
Notify: File “/usr/lib/python3.8/site-packages/markdown/meta.py”, line 25, in
Notify: from pkg_resources.extern import packaging
Notify: ImportError: cannot import name ‘packaging’ from ‘pkg_resources.extern’ (unknown location)
Script Notify.py with command TestServers failed (terminated with unknown status)
This looks like there is an incomplete version of setuptools installed. When I reinstall the package then everything works ok:
pip3 install --ignore-installed setuptools
Would it be possible to add the setuptools package to the DockerFile during install, or is there a workaround I could use?