Why does nzbget need python3?

Problems with packages? Post here, using [tags] of the package name.

Why does nzbget need python3?

Postby loop » Mon Apr 14, 2014 1:25 pm

For some reason (main Arch repo does this too) python is a dependency of nzbget. This breaks couchpotato-git, which has /usr/bin/python in the shebang, but python3 does not have a particular library that CP requires (quote_plus):

$this->bbcode_second_pass_code('', 'loop@pi ~ % sudo python /opt/couchpotato/CouchPotato.py
Traceback (most recent call last):
File "/opt/couchpotato/CouchPotato.py", line 21, in <module>
from couchpotato.environment import Env
File "/opt/couchpotato/couchpotato/__init__.py", line 1, in <module>
from couchpotato.api import api_docs, api_docs_missing, api
File "/opt/couchpotato/couchpotato/api.py", line 1, in <module>
from couchpotato.core.helpers.request import getParams
File "/opt/couchpotato/couchpotato/core/helpers/request.py", line 1, in <module>
from couchpotato.core.helpers.encoding import toUnicode
File "/opt/couchpotato/couchpotato/core/helpers/encoding.py", line 3, in <module>
from urllib import quote_plus
ImportError: cannot import name 'quote_plus'
loop@pi ~ %
')

I've logged an issue in Github - it doesn't seem to be platform dependent:
https://github.com/archlinuxarm/PKGBUILDs/issues/806
loop
 
Posts: 4
Joined: Fri Apr 04, 2014 1:14 pm

Re: Why does nzbget need python3?

Postby WarheadsSE » Mon Apr 14, 2014 4:33 pm

As stated in the issue, the problem is with couchpotato needing alteration to specify python2 instead of python, as on Arch, python3 is the default python.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Why does nzbget need python3?

Postby loop » Wed Apr 16, 2014 2:12 am

Rather than have a discussion on github, I'll continue here.

I can understand both of your reasons, but nzbget doesn't actually need to pull in python-anything. I can't find any other platform where nzbget is distributed as a binary where python is a dependency (compiling from source is different), hence my reason for filing the bug report against nzbget.

.... and thanks for the quick fix in the PKGBUILD too
loop
 
Posts: 4
Joined: Fri Apr 04, 2014 1:14 pm

Re: Why does nzbget need python3?

Postby moonman » Wed Apr 16, 2014 7:36 am

AFAIK nzbget itself does not need python, but postprocessing scripts that come with it do: http://sourceforge.net/p/nzbget/code/HE ... ppscripts/
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 4 guests