sabnzbd 0.4.11-1
http://www.sabnzbd.org/
A web-interface based binary newsgrabber with NZB file support
unsupported :: network
Maintainer: farhany
Votes: 65
License: GPL
Last Updated: Sat, 23 May 2009 16:16:17 +0000
First Submitted: Fri, 09 Nov 2007 16:21:18 +0000
Tarball :: Files :: PKGBUILD
This package has been flagged out of date.
Dependencies par2cmdline pyopenssl python-cheetah python-feedparser python-yenc python25 unrar unzip wget
Fine, I'll do it right away.
Revelation60, can you delete your package sabnzbd-0.5.0 so I can replace it with this one featuring RC6?
In the process of updating to v0.5.0 RC6. It's coming very soon. I promise!!!
The current build starts to open konqueror windows like crazy!
Family emergencies are of course more important! The only changes I have made are in the PGKBUILD file, so you can copy that file. I don't mind taking over this package, if you don't want to do it anymore. Anyhow, I will delete the sabnzbd-0.5 package if this one is updated :)
Yes guys, sorry for the hiatus there due to some family emergencies. I'm here. Can you send me the changes you made so we can avoid the duplicate? If you'd like to take over this and delete the other, that is also an option. Let me know how you'd like to proceed.
I'd suggest posting any changes you've made, and contacting the maintainer if there is no response for a while. It will be a bit less convenient for people using yaourt maybe but I think it is better than having multiple packages in AUR for different releases.
We could, but this one has been out of date for too long :(
Argh, can we not keep one package for releases and one for svn :(
If you want the most recent version which can use python 2.6, you can download my package: sabnzbd-0.5.
just updated the version/md5sum
pkgname=sabnzbd
pkgver=0.4.12
pkgrel=1
pkgdesc="A web-interface based binary newsgrabber with NZB file support"
arch=(i686 x86_64)
url="http://www.sabnzbd.org/"
license=('GPL')
depends=('wget' 'par2cmdline' 'python25' 'python-cheetah' 'python-feedparser' 'python-yenc' 'pyopenssl' 'unrar' 'unzip')
install=sabnzbd.install
backup=('/etc/conf.d/sabnzbd' '/opt/sabnzbd/sabnzbd.ini')
source=("http://downloads.sourceforge.net/sabnzbdplus/SABnzbd-$pkgver-src.tar.gz" sabnzbd sabnzbd.init sabnzbd.confd)
md5sums=('9290f743835a21994a96667f7d7234ab' '3d893740ed3add96c16911bb83254ce1' '946d9d680e73d965322ea7a1ab474ac8'
'21b2e39ac5dd9682416521392c07cf99')
build() {
mkdir -p $startdir/pkg/opt/sabnzbd
mv -v $startdir/src/SABnzbd-$pkgver/* $startdir/pkg/opt/sabnzbd/
find $startdir/pkg/opt/sabnzbd -type d -exec chmod 755 {} \;
find $startdir/pkg/opt/sabnzbd -type f -exec chmod 644 {} \;
chmod 755 $startdir/pkg/opt/sabnzbd/SABnzbd.py
chmod 755 $startdir/pkg/opt/sabnzbd/Sample-PostProc.sh
install -D -m755 $startdir/sabnzbd $startdir/pkg/usr/bin/sabnzbd
install -D -m755 $startdir/sabnzbd.init $startdir/pkg/etc/rc.d/sabnzbd
install -D -m644 $startdir/sabnzbd.confd $startdir/pkg/etc/conf.d/sabnzbd
}
:P
It feels nice being the one doing the hassling :D
It's going. Haven't had the time to update it for the new release, but will in the next 2 weeks.
How's it going?
Adopted. Thanks Michael!
Same here..
I saw you have the API key in .confd and use it to shutdown in .init. That solves the problem that the initscript of this package can't shut the daemon down.
But we're also having another issue here: If you want to change any setting in the web-UI, or even add something to the queue, this fails with "Session Key Required." The only workaround seems to be to set disable_api_key to 1 in sabnzbd.ini.
This happens even when starting it directly with just the python command, so there is some other problem with this package that is not related to the initscripts - or with SABnzbd itself. I also upgraded to 0.4.12 manually, the problem persists.
@Malstrond
Look at the svn version:
http://aur.archlinux.org/packages.php?ID=21941
Take your time ..... and easy sailing :-)
4 Midterms, 2 assignments, etc. It will have to wait. Sorry. If someone else wants to take a crack it that let me know.
Same problem here.
-The API key functionality is completely broken
-The initscript can't shutdown sabnzbd
But I think the maintainer has buggered off anyway.
I do also get the "Session Key Required" error.
This may not be a solution to the session key error, but I don't have the problem with sabnzbd-svn, which I installed from AUR instead. Although, as jordz the maintainer of sabnzbd-svn notes, you need to copy the API key from the config > general settings in sabnzbd to the /etc/conf.d/sabnzbd file.
I'm also have the problem Revelation60 notes. I get "error: Session Key Required" when tring to change the host in the "General" settings tab. Is there some configuation setting I'm missing?
"cp /usr/lib/python2.6/site-packages/Cheetah /usr/lib/python2.5/site-packages/Cheetah -R" fixed it for me. I dont exactly understand the difference to what I did before, I'll have to look into that.
Since "# cp -Rv /usr/lib/python2.6/s /usr/lib/python-2.5/site-packages/" returned an error because /s doesn't exist, I did "# cp -Rv /usr/lib/python2.6/site-packages/ /usr/lib/python-2.5/site-packages/" which seemed to work, but I still get the same error. Any ideas?
Which command did you run?
I can't get this to work due to the Cheetah problem mentiones before. For some reason the posted command didn't do it for me. Am I missing something? I assumed you ment /usr/lib/python2.6/site-packages/. Is there any other way to get this to work or am I missing something???
When I try to add a new server I get "error: Session Key Required". Does anyone have a fix?
Yes, this is mentioned farther down in the comments. Maybe I should add a message to the install. You have to do a similar procedure with pyopenssl to get openssl support working.
If you get the "Sorry, requires Python module Cheetah 2.0rc7 or higher." error when starting sabnzb, all you need to do is: "# cp -Rv /usr/lib/python2.6/s /usr/lib/python-2.5/site-packages/"
Just FYI, I changed sabnzbd-svn to use the session key to support a proper shutdown (you can't disable it in trunk, the option is there but it won't work).
I'm guessing your package has the same problem or you will get it in the future.
Thank you
Thanks.
It DOES allow me now to 'check' SSL, but havn't seen the ...::INFO::... message you mentioned (on the other hand, I havn't upgraded to 0.4.9 - though this sholuld not matter). Will keep it as is.
Thank you for the support, and I hope the exams went well :-)
Alright, upgraded to 0.4.9.
As to your openssl problem. Try doing the following
(backup your 2.5 OpenSSL dir if it exists)
cp -R /usr/lib/python2.5/site-packages/OpenSSL /root
(copy 2.6 OpenSSL to 2.5 and remove *.pyc files)
cp -R /usr/lib/python2.6/site-packages/OpenSSL /usr/lib/python2.5/site-packages/
find /usr/lib/python2.5/site-packages/OpenSSL -type f -name '*.pyc' -exec rm {} \;
After doing this when I start sabnzbd I get
2009-04-20 20:24:47,652::INFO::pyOpenSSL... found (True)
In the logfile so hopefully all is good.
Good luck with the exams !
Just popping in for a moment, unfortunately I am occupied with school at the monet (2 more exams left!). I should have time after Monday, I'll get to things then. I am guessing there is no SSL because pyopenssl probably isn't there for python25. I'll confirm on my machine after I finish exams. Your patience is appreciated :).
And the last problem -
SSL encription is disabled. What should I do to make it emabled ?
I should have mentioned changing /etc/conf.d/sabnzbd only works if you are using the initscript, in fact it's the only way to change what port it uses when the init script launches it. Otherwise yes, change the ini file in ~/.sabnzbd
Up. Will check another day about running :-)
Host had to be changed in - /home/user/.sabnzbd which IS the ini file. (change in /etc/conf.d/sabnzbd had no effect, though the file exists).
The problem was NOT the port but the default host - "localhost". Once I've changed it to my host name, all is well).
Thanks
Ben
You can change the port in the /etc/conf.d/sabnzbd file.
Ok ... Recopied Cheeta and things look rosier (...just).
When I try to run sabnzbd, I get a temp file in the browser saying -
----------------Welcome to SABnzbd.py 0.4.8
SABnzbd needs a free tcp/ip port for its internal web server.
Port 8080 on localhost was tried , but it is not available.
Some other software uses the port or SABnzbd is already running.
Please restart SABnzbd with a different port number.
Open a Terminal window and type the line (example):
/opt/sabnzbd/SABnzbd.py --server localhost:8081
If you get this error message again, please try a different number.
Program did not start!
---------------------
Acording to netstat - the port is NOT in use.
Another strange thing -
Instead of creating an /home/user/.sabnzbd directory with the sabnzbd.ini file inside, I'm getting /home/user/.sabnzbd - a file which is ACTUALLY the ini file ....
Did you see this comment
"It seems like your /usr/lib/python2.5/site-packages/Cheetah directory isn't setup correctly. My instructions were slightly off, this probably is causing issues. You need all the files in the Cheetah directory, but you want to recompile any of the python code (get rid of the *.pyc files). This should do it I think."
?
Trying to install.
Had same problems as 'h4xx3d'. Coppied the .../Chettah and Cheetah/Macro dirs, compiled (2.5) the modules in them, but still :
[el@arch64 ~]$ sabnzbd
Traceback (most recent call last):
File "/opt/sabnzbd/SABnzbd.py", line 44, in <module>
import sabnzbd
File "/opt/sabnzbd/sabnzbd/__init__.py", line 52, in <module>
from sabnzbd.assembler import Assembler
File "/opt/sabnzbd/sabnzbd/assembler.py", line 34, in <module>
from sabnzbd.interface import CheckFreeSpace
File "/opt/sabnzbd/sabnzbd/interface.py", line 46, in <module>
from Cheetah.Template import Template
File "/usr/lib/python2.5/site-packages/Cheetah/Template.py", line 59, in <module>
from Cheetah.Compiler import Compiler, DEFAULT_COMPILER_SETTINGS
File "/usr/lib/python2.5/site-packages/Cheetah/Compiler.py", line 35, in <module>
from Cheetah.Utils.Indenter import indentize # an undocumented preprocessor
ImportError: No module named Utils.Indenter
Am using Arch64.
Any suggestion will be appreciated.
Ben
You're welcome :)
Thank you very much :-)
You are correct, copying the entire contents of the directory corrected the issue.
It seems like your /usr/lib/python2.5/site-packages/Cheetah directory isn't setup correctly. My instructions were slightly off, this probably is causing issues. You need all the files in the Cheetah directory, but you want to recompile any of the python code (get rid of the *.pyc files). This should do it I think.
The directory doesn't exist. I tried copying it over from Python-2.6 but that gave a slightly different error:
:: Starting SABnzbd [BUSY] Traceback (most recent call last):
File "/opt/sabnzbd/SABnzbd.py", line 44, in <module>
import sabnzbd
File "/opt/sabnzbd/sabnzbd/__init__.py", line 52, in <module>
from sabnzbd.assembler import Assembler
File "/opt/sabnzbd/sabnzbd/assembler.py", line 34, in <module>
from sabnzbd.interface import CheckFreeSpace
File "/opt/sabnzbd/sabnzbd/interface.py", line 46, in <module>
from Cheetah.Template import Template
File "/usr/lib/python2.5/site-packages/Cheetah/Template.py", line 59, in <module>
from Cheetah.Compiler import Compiler, DEFAULT_COMPILER_SETTINGS
File "/usr/lib/python2.5/site-packages/Cheetah/Compiler.py", line 35, in <module>
from Cheetah.Utils.Indenter import indentize # an undocumented preprocessor
ImportError: No module named Utils.Indenter
What's in your /usr/lib/python2.5/site-packages/Cheetah/Macros directory?
I was getting the came error as valk and did what you said in your Feb 27th post, now i'm getting this:
bash-3.2# /etc/rc.d/sabnzbd start
:: Starting SABnzbd [BUSY] Traceback (most recent call last):
File "/opt/sabnzbd/SABnzbd.py", line 44, in <module>
import sabnzbd
File "/opt/sabnzbd/sabnzbd/__init__.py", line 52, in <module>
from sabnzbd.assembler import Assembler
File "/opt/sabnzbd/sabnzbd/assembler.py", line 34, in <module>
from sabnzbd.interface import CheckFreeSpace
File "/opt/sabnzbd/sabnzbd/interface.py", line 46, in <module>
from Cheetah.Template import Template
File "/usr/lib/python2.5/site-packages/Cheetah/Template.py", line 58, in <module>
from Cheetah.Parser import ParseError, SourceReader
File "/usr/lib/python2.5/site-packages/Cheetah/Parser.py", line 36, in <module>
from Cheetah.Macros.I18n import I18n
ImportError: No module named Macros.I18n
Upgraded to 0.4.7
Try this:
"...delete the *.pyo files in your /opt/sabnzbd folder as well as copy the *.py python-cheetah files from /usr/lib/python-2.6/site-packages/Cheetah to /usr/lib/python-2.5/site-packages/Cheetah."
I managed to get sabnzbd installed. But when I try to start it I get the message "sorry, requires Python module cheetah 2.0rc7 or higher." But as far as i know a cheetah module is installed?
It seems to be something related to python25. It checks the python25 dependencies and every dependency is found/installed execpt for tk but it says (package found) after tk in blue (I´m using yaourt). Therefore i cannot install python25 which i need for sabnzbd apperently.
I hope this is enough info?
Could you post the complete error you are getting? I'll try and take a look but I am going to be pretty busy till at least Monday with exams and other school related crap.
Hi,
just a short question. I'm trying to install sabnzbd, but somehow there is a dependency failure. The system misses a package called tk and I cannot find it. Does someone know how to fix this?
Thanks in advance!
Alright, new update.
CHANGES:
- I changed the init script, it now uses the host/port/username/conf defined in /etc/conf.d/sabnzbd when starting. These settings will override your /opt/sabnzbd/sabnzbd.ini file if you use the init script.
- Changed the dependency to python-2.5, the current version of sabnzbd does not support python-2.6, it causes various problems.
- It now uses the http://$SABNZBD_HOST:$SABNZBD_PORT/sabnzbd/shutdown url to shutdown sabnzbd. I decided to use wget instead of the curl suggestion since wget is included in the default install and curl is not.
- You will notice a new message after installing about adding your machine's hostname to /etc/hosts. If sabnzbd is unable to resolve your machines hostname it will default to listening on all addresses, regardless of what $SABNZBD_HOST or your sabnzbd.ini specifies.
You may need to delete the *.pyo files in your /opt/sabnzbd folder as well as copy the *.py python-cheetah files from /usr/lib/python-2.6/site-packages/Cheetah to /usr/lib/python-2.5/site-packages/Cheetah. Let me know if there are any other problems.
Enjoy!
The proper way of stopping sabnzbd is using
curl -s http://<ip>:<port>/sabnzbd/shutdown,
instead of just killing it.
I changed my -svn package to do it that way, so you can have a look :)
@quitlahok
From the PKGBUILD of python (2.6.1):
provides=('python-elementtree' 'python-ctypes')
replaces=('python-elementtree' 'python-ctypes')
So it's not necessary :)
Update 0.4.6
Thanks Zepp for your package!
I created sabnzbd-svn for anyone who's interested:
http://aur.archlinux.org/packages.php?ID=21941
Ahh it is probably just referring to the "c" variant. Alright, I'll get this added tonight or tomorrow.
According to the INSTALL.txt included with the latest source tar ball it is only needed if you are running python 2.4.4
"Unix/Linux/OSX
Python-2.4.4 http://www.python.org
cElementTree-1.0.5 http://effbot.org/downloads/
OR
Python-2.5.2 http://www.python.org
"
Arch's current version is 2.6 I believe? I can add it anyway but I am not 100% certain it is still required. I'll look into it more this weekend.
python-elementtree needs to be added to the dependencies
Alright updated to 0.4.5
CHANGES:
- SABnzbd will now be installed into /opt instead of /usr/share. This makes more sense to me. Please copy your sabnzbd.ini to /opt/sabnzbd.ini if you intend to use the init script.
- A new user "sabnzbd" will now be created after installation. This is the user sabnzbd will be run as if you use the init script.
- If you start sabnzbd using the script in /usr/bin/sabnzbd it will run as the current user and the sabnzbd conf dir will be $HOME/.sabznzbd/
There are some deprecation warnings from cherrypy, pretty sure it is related to the new python-2.6, they don't appear to cause any problems. I could have silenced them I suppose but I chose not to; they can safely be ignored.
Damn I didn't get a notification of a new release on the RSS feed :(. I'll update the PKGBUILD soon.
To get it to build the new version, just edit the PKGBUILD and change these 2 lines:
pkgver=0.4.5
md5sums=('72552e61c42d699f3c692756a7fab8dd' 'd9ab123d1b522aa5c12f882f5fd1a8db' '8aecd401a062f0bc45d538bf58cf6d38')
I'm sorry, I flagged it as out of date but I misread the website. This is still the correct version and it rocks as a package!
Updated to 0.4.4
Updated to 0.4.3. No major changes in this version, it is claimed to be compatible with 0.4.2 so I just updated the checksums and src URL. Seems to work fine.
Sorry for the delay, finally got around to updating the PKGBUILD to the latest version (0.4.2). I also included the init script in the new package.
Thanks for letting me know :). Ya I will try and take it over for now, I'll update the package later today when I have time.
Sorry, not using Arch anymore. I've disowned the package.
Can someone else please take care of maintaining... Zepp? :)
And remember, NO warez should be downloaded with this application, it is stictly made for open-source games and dvd's... ;o)
Here's an init script I hacked together for SABnzbd.
http://bbs.archlinux.org/viewtopic.php?pid=392340#p392340
There is a new version out (0.4.0). I updated the current PKGBUILD to work with the new version, not sure how I am supposed to submit it so I will just put it here for now.
pkgname=sabnzbd
pkgver=0.4.0
pkgrel=1
pkgdesc="A web-interface based binary newsgrabber with NZB file support"
arch=(i686 x86_64)
url="http://www.sabnzbd.org/"
license=('GPL')
depends=('par2cmdline' 'python' 'python-cheetah' 'python-feedparser' 'python-yenc' 'pyopenssl' 'unrar' 'unzip')
source=("http://downloads.sourceforge.net/sabnzbdplus/SABnzbd-$pkgver-src.tar.gz" sabnzbd)
md5sums=('d4ad09898b82af6a1d6e894c51734cd3' 'd9ab123d1b522aa5c12f882f5fd1a8db')
build() {
mkdir -p $startdir/pkg/usr/share/sabnzbd
mv -v $startdir/src/SABnzbd-$pkgver/* $startdir/pkg/usr/share/sabnzbd/
chmod -Rv 755 $startdir/pkg/usr/share/sabnzbd
install -D -m755 $startdir/sabnzbd $startdir/pkg/usr/bin/sabznbd
}
CHANGES:
- pyopenssl added as dependency
- updated the version and release number reset I also changed the source url (it ends in -src.tar.gz now)
Updated, fixed dependencies and script (thanks, Sabooky).
change
python SABnzbd.py
to
python SABnzbd.py "$@"
To forward command line options.
also python-elementtree isn't needed if you have
python >= 2.5
Updated for latest SABnzbd+.
Also works on x86_64 please add it.
I get this error when trying to startup the package:
Traceback (most recent call last):
File "/usr/bin/SABnzbd.py", line 313, in <module>
main()
File "/usr/bin/SABnzbd.py", line 208, in main
init_ok = sabnzbd.initialize(pause)
File "/usr/lib/python2.5/site-packages/sabnzbd/decorators.py", line 26, in newFunction
return f(*args, **kw)
File "/usr/lib/python2.5/site-packages/sabnzbd/__init__.py", line 325, in initialize
DOWNLOADER = Downloader(servers)
File "/usr/lib/python2.5/site-packages/sabnzbd/downloader.py", line 119, in __init__
host = servers[server]['host']
TypeError: string indices must be integers
You should put an alias for the SABnzb program in lowercase so people wont get confused when trying to find the command line command.
Fixed cherrypy dependency.
v1.6.0