Prinz23 / NZBGetPasswordDetector

14 stars 2 forks source link

issue missing xmlrpclib_to #1

Closed SalehAlolayan closed 2 years ago

SalehAlolayan commented 2 years ago

root@93be1b9e5fa5:/data/downloading/usenet/scripts# python PasswordDetector.py /usr/lib/python3.9/site-packages/requests/init.py:102: RequestsDependencyWarning: urllib3 (1.26.7) or chardet (5.0.0)/charset_normalizer (2.0.7) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported " Traceback (most recent call last): File "/data/downloading/usenet/scripts/PasswordDetector.py", line 82, in from xmlrpclib_to import ServerProxy ModuleNotFoundError: No module named 'xmlrpclib_to'

Prinz23 commented 2 years ago

Did you forget to copy over the xmlrpclib_to subfolder?

Since this package/lib is provided within this repro. Or maybe a permissions issue to the folder and contained files.

SalehAlolayan commented 2 years ago

I saw it, however im not sure where to copy it to..., Im using the docker ver thus if it needs to be copyed outside if the config folder of the container it wont be a good idea as any update to the container will reset the libs to the defaults, unless there is a way to import the lib from a specific path

Prinz23 commented 2 years ago

The folder xmlrpclib_to is copied into the folder where the PasswordDetector.py is.

So in your case the file/folder structure would be:

/data/downloading/usenet/scripts/PasswordDetector.py /data/downloading/usenet/scripts/xmlrpclib_to/init.py

SalehAlolayan commented 2 years ago

Thanks that also solved the issue, you can accept of reject the pull change

Prinz23 commented 2 years ago

I will have to reject it, because it will not work, since the original ServerProxy has no timeout parameter.

The point of xmlrpclib_to is add a timeout parameter to the ServerProxy to prevent deadlocks of the script.