linuxserver / docker-pyload-ng

GNU General Public License v3.0
83 stars 10 forks source link

[BUG] ClickNLoad: SSL error: module 'ssl' has no attribute 'wrap_socket' #52

Closed 646EIN closed 4 months ago

646EIN commented 4 months ago

Is there an existing issue for this?

Current Behavior

ClickNLoad doen't work, so no links will be transmitted to pyload

Expected Behavior

No response

Steps To Reproduce

I've installed the container on a Raspberry Pi 5 under libreelec 12. Try to use ClickNLoad.

Environment

- OS:
- How docker service was installed:

CPU architecture

arm64

Docker creation

---
services:
  pyload-ng:
    image: lscr.io/linuxserver/pyload-ng:latest
    container_name: pyload-ng
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - /storage/container/pyload/config:/config
      - /media/CrucialDataSSD/download:/downloads
    ports:
      - 8000:8000
      - 9666:9666 #optional
    restart: unless-stopped

Container logs

8136    2024-07-20 10:33:50 DEBUG   pyload  ADDON ClickNLoad: Connection from 172.18.0.1:35152
8137    2024-07-20 10:33:50 ERROR   pyload  ADDON ClickNLoad: SSL error: module 'ssl' has no attribute 'wrap_socket'
8138    ?   ?   ?   Traceback (most recent call last):
8139    ?   ?   ?     File "/lsiopy/lib/python3.12/site-packages/pyload/plugins/addons/ClickNLoad.py", line 189, in _server
8140    ?   ?   ?       backend_socket = ssl.wrap_socket(backend_socket)
8141    ?   ?   ?                        ^^^^^^^^^^^^^^^
8142    ?   ?   ?   AttributeError: module 'ssl' has no attribute 'wrap_socket'
github-actions[bot] commented 4 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

646EIN commented 4 months ago

Seems like it is an issue with pyload-ng and python 3.12 (https://docs.python.org/3/whatsnew/3.12.html#ssl)

EDIT: Thanks for the downgrade of the docker image. ClickNLoad works now wit python3.11.9-r0