Closed hugalafutro closed 3 years ago
Check your Python3 version with python3 --version
.
Also, what Deluge interface are you using?
it's this image https://github.com/linuxserver/docker-deluge and I connect to it using webui
inside the container:
root@805ec1739f00:/# python3 --version
Python 3.6.9
This plugin doesn't have WebUI support.
it's this image https://github.com/linuxserver/docker-deluge and I connect to it using webui
inside the container:
root@805ec1739f00:/# python3 --version Python 3.6.9
It seems like the "six" python package version in the image (1.11.0
) doesn't fit the requirement of this plugin (six>=1.12
), the following steps are how I manage it to work, hope this helps.
Since there's no pip
installed in this image, so we need to manually install the package.
Run a shell in the docker container.
docker exec -w /tmp -it <container name or id> bash
Download the latest six
package from PyPI.
curl -sSLO https://files.pythonhosted.org/packages/6b/34/415834bfdafca3c5f451532e8a8d9ba89a21c9743a0c59fbd0205c7f9426/six-1.15.0.tar.gz
Extract the tar file.
tar --no-same-owner --no-same-permissions -xf six-1.15.0.tar.gz
Install the package.
cp -r six-1.15.0/six.egg-info/ /usr/lib/python3/dist-packages/six-1.15.0.egg-info/ && cp six-1.15.0/six.py /usr/lib/python3/dist-packages/
Remove the old one.
rm -rf /usr/lib/python3/dist-packages/six-1.11.0.egg-info/
Exit shell and restart container.
Thanks @36web presumably I'll have to do this every time the image updates, but it is a solution.
you can make a Dockerfile build like this so you dont have to run this every time
FROM ghcr.io/linuxserver/deluge
RUN curl -sSLO https://files.pythonhosted.org/packages/6b/34/415834bfdafca3c5f451532e8a8d9ba89a21c9743a0c59fbd0205c7f9426/six-1.15.0.tar.gz
RUN tar --no-same-owner --no-same-permissions -xf six-1.15.0.tar.gz
RUN cp -r six-1.15.0/six.egg-info/ /usr/lib/python3/dist-packages/six-1.15.0.egg-info/ && cp six-1.15.0/six.py /usr/lib/python3/dist-packages/
RUN rm -rf /usr/lib/python3/dist-packages/six-1.11.0.egg-info/
and you can have a docker-compose.yaml like this
version: "3.8"
services:
deluge:
build: .
network_mode: host
environment:
- PUID=1000
- PGID=1000
- TZ=UTC
- DELUGE_LOGLEVEL=info
volumes:
- /var/config/deluge:/config
- /downloads/torrents:/downloading
- /downloads/completed:/completed
@ArabCoders many thanks for that! That's gonna make life a lot easier while keeping everything as is.
Hi, I use linuxserver/deluge in docker and am trying to enable this plugin.
I followed the same procedure as when installing WebAPI plugin which works, i.e. I copied the egg to the plugins subdir, enabled it in webui and it worked. The WebAPI egg was 3.6 too which is why I had hoped this would work too.
Trying to the same with DefaultTrackers makes it seem everything works, I can click it, but when I close the configuration dialog and reopen it it's disabled.
In logs I can only see these:
Any help appreciated, thanks!