linuxserver / docker-nzbget

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

Python version #91

Closed Itsmmai closed 4 years ago

Itsmmai commented 4 years ago

Hi for nzbget working with a script I need a newer python version. Now it tells me: nzbToSickBeard: Please use a newer version of Python. CUrrent Python version is 2.7 and I need at least 3.x can you update or tell me how to update?

Kind regards, Abel

djderan commented 4 years ago

This is what i did as a temporary work around.

docker exec -it $nzbget_container_name apk add python3 docker exec -it $nzbget_container_name ln -s /usr/bin/python3 /usr/bin/python --force

CHBMB commented 4 years ago

Python is a bit of a mess at the moment, some projects have been updated to python 3, some are still in the midst of migration, the approach we're currently taking is to include python2 and python3 if the underlying project and it's common plugins/scripts.

https://github.com/linuxserver/docker-nzbget/commit/c87dc842020ee2b0f018c6f16cf15b1ff9d41c53

Looks like nzbtomedia has done some backtracking from it's python2 to python3 migration. New release 5 mins ago adds back python2 compatibility

https://github.com/clinton-hall/nzbToMedia/releases

So, bottom line, container already has python 3 now, and the scripts causing the issue have been reverted to continue to support python 2.

So, if you wish to migrate to python 3 I wonder if the shell override is the way forward to avoid getting down and dirty with the terminal.

2020-01-04_09-54

djderan commented 4 years ago

I can confirm that adding ".py=/usr/bin/python3" to the shelloverride option in extension scripts works.

thelamer commented 4 years ago

I guess we should add the override option in the readme so we can close out this issue.

thelamer commented 4 years ago

closing via https://github.com/linuxserver/docker-nzbget/pull/92