[Debian] SABnzbd

Pagina: 1
Acties:
  • 3.691 views sinds 30-01-2008
  • Reageer

  • kokkel
  • Registratie: September 2000
  • Laatst online: 31-01 13:41
Ik heb problemen met het runnen, van SABnzbd. Heb de readme gevolgt van het programma.
Ik wil dit runnen op, debian-31r5-i386-netinst. Dit systeem is zover mogelijk geconfigureerd.
Er is eerst een heel stuk informatie, het probleem staat helemaal onderaan.

Readme File van SABnzbd:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
                                SABnzbd v0.2.5
-------------------------------------------------------------------------------
0) LICENSE
-------------------------------------------------------------------------------

Copyright 2005 Gregor Kaufmann <tdian@users.sourceforge.net>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

-------------------------------------------------------------------------------
1) INSTALL
-------------------------------------------------------------------------------
SABnzbd-0.2.5-w32 (pre-built binary) users:
o) Everything below already included, goto 2)

Preqrequisites:
- Without these modules, SABnzbd won't work -
- (Included in w32 build) -
- Dependencies in [] are not needed with python-2.5 -

[o) Python-2.4.4]          http://www.python.org
o) Python-2.5              http://www.python.org
o) CherryPy-2.2.1          http://www.cherrypy.org
o) cheetah-2.0rc7          http://www.cheetahtemplate.org/
[o) elementtree >= 1.2.6]  http://effbot.org/downloads/
- w32 only -
o) pywin32-208         https://sourceforge.net/projects/pywin32/

Semi-Optional:
- Required for post processing -
- (Included in w32 build) -
o) unrar >= 3.6.6          http://www.rarlab.com/rar_add.htm
o) unzip >= 5.5.2          http://www.info-zip.org/
o) par2cmdline >= 0.4      http://parchive.sourceforge.net/

Optional:
- (Included in w32 build) -
o) yenc module >= 0.3      unix: 
                           http://sabnzbd.sourceforge.net/yenc-0.3.tar.gz
                           
                           w32:
                           http://sabnzbd.sourceforge.net/yenc-0.3-w32fixed.zip
                           (crippled version that compiles on w32)

[o) cElementTree >= 1.0.5] http://effbot.org/downloads/

o) feedparser >= 4.1       http://feedparser.org/

System-wide install is not required, but possible by using the provided
setup.py script => python setup.py install

-------------------------------------------------------------------------------
2) CONFIG
-------------------------------------------------------------------------------
SABnzbd-0.2.5-w32 users:
 See 3)

Everyone else:
 View SABnzbd.ini.sample for all config options, then copy your edited
 SABnzbd.ini to <your_config_dir>/SABnzbd.ini
 
-------------------------------------------------------------------------------
3) USE
-------------------------------------------------------------------------------
SABnzbd-0.2.5-w32 users:
 Run SABnzbd.exe 
 Point your browser to http://127.0.0.1:8080/sabnzbd
 Goto the config page and enter your preferences.
 
Everyone else:
 Run "python SABnzbd.py -h" for a list of options.
 
 Run "python SABnzbd.py -f <your_config_dir>/SABnzbd.ini", 
 Point your browser to http://127.0.0.1:<your_port>/sabnzbd

-------------------------------------------------------------------------------
4) CREDITS
-------------------------------------------------------------------------------

o) SABnzbd uses various code from pynewsleecher, newsunpack and grabnzb by: 
   Freddie (freddie@madcowdisease.org) (http://www.madcowdisease.org/mcd)

o) SABnzbd interface is served by: 
   cherrypy (http://www.cherrypy.org/)

o) SABnzbd configfile is interpreted by:
   pythonutils.configObj (http://www.voidspace.org.uk/python/pythonutils.html)
   
o) SABnzbd MS Windows .exe is generated by : 
   py2exe (http://starship.python.net/crew/theller/py2exe/)
   
o) SABnzbd Scheduler:
   kronos (http://www.razorvine.net/downloads.html)
   
o) SABnzbd Authentication:
   MultiAuth (http://projects.dowski.com/view/multiauth)
   
o) python yenc module:
   http://golug.cc.uniud.it/yenc.html
   
o) cElementTree and elementtree:
   http://effbot.org/downloads/
  
o) Contributors:
   gwynevans, Jigal van Hemert, ...
   
-------------------------------------------------------------------------------
5) FAQ
-------------------------------------------------------------------------------
o) Q: How can I download a set of *par2/*PAR2 files without activating
      auto-par2 mode?
   A: Select None as your PostProcess option while importing your nzb file.


Heb door het oplossen, van verschillende problemen. Meer informatie gevonden, over het installeren onder debian. Door het gebruik van apt-get install mogelijkheid, heb software versies gelijk.

SABnzbd.ini file:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
__version__ = 016

[misc]
    ## host we should listen on, leave "" for localhost
    host = "192.168.1.64"
    
    ## port we should listen on
    port = 8080
    
    ## username for the web-interface
    username = ""
    
    ## password for the web-interface
    password = ""
    
    ## web file dir for (custom) Cheetah templates and the default.css file
    web_dir = ""

    ## dir to put downloads to, won't be created automatically
    download_dir = "/Download"
    
    ## dir to put completed downloads to, won't be created automatically
    complete_dir = "/Download/complete"

    ## If specified, .nzbs fetched by postid (or added by the dirscanner) will 
    ## be backed up to this readable/writeable dir
    nzb_backup_dir = "/Download/NZB"
    
    ## dir to store cache and cookie files, windows users should
    ## leave this at .
    cache_dir = "/Download/cash"
    
    ## location of your log directory, "" to disable logging
    log_dir = ""
    
    ## dirscan directory
    ## SABnzbd will consume everything in that dir
    ## while trying to add it to the queue
    dirscan_dir = ""
    
    ## Scheduling options
    ## Syntax: minute hour day action
    ##         1st argument must be 0-59 (minute)
    ##         2nd argument must be 0-24 (hour)
    ##         3rd argument must be 1-7 (day) or *
    ##         4th argument must be resume or pause
    ##
    ## e.g schedlines = 0 7 * pause, 0 21 * resume 
    ##     to pause SABnzbd at 7:00 and resume operation at 21:00
    schedlines = ,
    
    ## default options for dirscan added items
    ## 0 = None
    ## 1 = +Repair
    ## 2 = +Unpack
    ## 3 = +Delete
    dirscan_opts = 1
    
    ## Enable/disable filejoining
    ## 0 = Disabled
    ## 1 = Enabled
    enable_filejoin = 1
    
    ## Enable/disable unraring
    ## 0 = Disabled
    ## 1 = Enabled
    enable_unrar = 1
    
    ## Enable/disable unzipping
    ## 0 = Disabled
    ## 1 = Enabled
    enable_unzip = 1
    
    ## Enable/disable periodic queue saving
    ## 0 = Disabled
    ## 1 = Enabled
    ## Enable this on unstable systems
    enable_save = 0
    
    ## Enable/disable
    ## 0 = Disabled
    ## 1 = Enabled
    ## Enable to cleanup par2 files 
    ## (only if verifiying/repairing succeded)
    enable_par_cleanup = 1
    
    ## should we failover on yenc crc errors
    ## 0 = no
    ## 1 = yes
    fail_on_crc = 0
    
    ## should we download to group folders? 
    ## (i.e /my/download/dir/alt.bin.whatever/somepost/)
    ## 0 = no
    ## 1 = yes
    create_group_folders = 0
    
    ## bandwith limit
    ## 0 == ignore
    ## Slowdown factor, try values between 0.01 and 1.0.
    bandwith_limit = 0
    
    ## Cleanup List
    ## List of file_extensions that should be deleted
    ## Example: ".nfo," or ".nfo, .sfv"
    cleanup_list = ,
    
    ## Only get articles from topmost collection
    ## Enable for less memory usage
    ## Disable for more efficient downloading
    ## 0 = Disabled
    ## 1 = Enabled
    top_only = 1
    
    ## Automatically sort by average age
    ## 0 = No
    ## 1 = Yes
    auto_sort = 0
    
    ## Send group command before requesting articles
    ## 0 = No
    ## 1 = Yes
    send_group = 0
    
    ## Article cache limit
    ## 0 = Disable Cache
    ## -1 = Unlimited cache
    ## >0 = Maximum memory (in bytes) to use for cache
    cache_limit = 0
    
    ## Umask to use for directories/files
    umask = 755
    
[logging]
    ## max size of SABnzbd.log (in bytes)
    max_log_size = 5242880
    
    ## how many backups of SABnzbd.log to keep around
    log_backups = 5
    
    ## enable cherrypy logging
    ## 0 = no
    ## 1 = yes
    enable_cherrypy_logging = 1
    
## Fill in your servers here
## If your server doesn't need password auth set
## username and password to ''
## fillserver field must be 0 for non-fillservers (>0 otherwise)
[servers]
#    [[server 0]]
#       host = news.mymainserver.com
#       port = 119
#       username = myusername
#       password = mypassword
#       connections = 8
#       fillserver = 0
#    [[server 1]]
#   host = news.myfillserver.com
#   port = 119
#   username = ""
#   password = "" 
#   connections = 8
#       fillserver = 1

## www.newzbin.com support
[newzbin]
    username = ""
    password = ""
    
    ## Place downloads into newzbin.com category folders
    ## 0 = No
    ## 1 = Root category only
    ## 2 = Root category + subcategory
    create_category_folders = 0


SABnzbd.py file:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
#!/usr/bin/python -OO
# Copyright 2005 Gregor Kaufmann <tdian@users.sourceforge.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

import sys

if hasattr(sys, "frozen"):
    try:
        import linecache
        def fake_getline(filename, lineno, module_globals = None):
            return ''
        linecache.getline = fake_getline
        
        del linecache, fake_getline
        
        import win32gui
        win32gui.ShowWindow(win32gui.GetForegroundWindow(), False)
    except ImportError:
        pass
        
import logging
import logging.handlers
import os
import cherrypy
import getopt
import sabnzbd
import signal

from sabnzbd.utils.configobj import ConfigObj, ConfigObjError

from sabnzbd.interface import *

from sabnzbd.constants import *

from threading import Thread

#------------------------------------------------------------------------------
signal.signal(signal.SIGINT, sabnzbd.sig_handler)
signal.signal(signal.SIGTERM, sabnzbd.sig_handler)

try:
    import win32api
    win32api.SetConsoleCtrlHandler(sabnzbd.sig_handler, True)
except ImportError:
    pass
    
#------------------------------------------------------------------------------
            
def print_help():
    print "Usage: SABnzbd.py [-f <configfile>]"
    print
    print "Options:"
    print "  -f   location of config file"
    print "  -d   fork daemon process"
    print "  -p   start paused"
    print "  -v   print version information"
    print "  -h   print this message"
    
def print_version():
    print "SABnzbd-%s" % sabnzbd.__version__
    
def daemonize():
    try:
        pid = os.fork() 
        if pid > 0:
            sys.exit(0) 
    except OSError:
        print "fork() failed"
        sys.exit(1)
        
    os.chdir("/") 
    os.setsid()
    os.umask(0)
    
    try:
        pid = os.fork()
        if pid > 0:
            sys.exit(0) 
    except OSError:
        print "fork() failed"
        sys.exit(1)
        
    dev_null = file('/dev/null', 'r')
    os.dup2(dev_null.fileno(), sys.stdin.fileno())
    
def main():
    try:
        opts, args = getopt.getopt(sys.argv[1:], "phdvf:")
    except getopt.GetoptError:
        print_help()
        sys.exit(2)
        
    fork = False
    pause = False
    f = None
    
    if os.name == 'nt':
        f = './SABnzbd.ini'
        
    for o, a in opts:
        if o == '-d' and os.name != 'nt':
            fork = True
        if o == '-h':
            print_help()
            sys.exit()
        if o == '-f':
            f = a
        if o == '-v':
            print_version()
            sys.exit()
        if o == '-p':
            pause = True
            
    if not f:
        print_help()
        sys.exit()
    else:
        f = os.path.abspath(f)
        if not os.path.exists(f):
            print "Error:"
            print "%s does not exist" % f
            sys.exit()
    try:
        cfg = ConfigObj(f)
        if int(cfg['__version__']) < sabnzbd.__configversion__:
            print "Error:"
            print "Configfile out of date, please update to latest version"
            sys.exit()
            
    except ConfigObjError, strerror:
        print "Error:"
        print "%s is not a valid configfile" % f
        sys.exit()
        
    if fork and not cfg['misc']['log_dir']:
        print "Error:"
        print "I refuse to fork without a log directory!"
        sys.exit()
        
    logdir = ""
    format = '%(asctime)s::%(levelname)s::%(message)s'
    
    if cfg['misc']['log_dir']:
        logdir = os.path.abspath(cfg['misc']['log_dir'])
        try:
            rollover_log = logging.handlers.RotatingFileHandler(\
                        os.path.join(logdir, 'SABnzbd.log'), 'a+', 
                        int(cfg['logging']['max_log_size']), 
                        int(cfg['logging']['log_backups']))
                        
            rollover_log.setLevel(logging.DEBUG)
            rollover_log.setFormatter(logging.Formatter(format))
            logger = logging.getLogger('')
            logger.setLevel(logging.DEBUG)
            logger.addHandler(rollover_log)
            logging.info("--------------------------------")
                
        except IOError:
            print "Error:"
            print "Can't write to logfile"
            sys.exit()
            
    if fork:
        try:
            sys.stderr.fileno
            sys.stdout.fileno
            ol_path = os.path.join(cfg['misc']['log_dir'], 
                                   'SABnzbd.error.log')
            out_log = file(ol_path, 'a+', 0)
            sys.stderr.flush()
            sys.stdout.flush()
            os.dup2(out_log.fileno(), sys.stderr.fileno())
            os.dup2(out_log.fileno(), sys.stdout.fileno())
        except AttributeError:
            pass
            
    else:
        try:
            sys.stderr.fileno
            sys.stdout.fileno
            
            console = logging.StreamHandler()
            console.setLevel(logging.DEBUG)
            console.setFormatter(logging.Formatter(format))
            logger = logging.getLogger('')
            logger.setLevel(logging.DEBUG)
            logger.addHandler(console)
        except AttributeError:
            pass
                
    logging.info('SABnzbd v%s', sabnzbd.__version__)
    
    sabnzbd.CFG = cfg
    
    init_ok = sabnzbd.initialize(pause)
    
    if not init_ok:
        logging.error('Initializing SABnzbd v%s failed, aborting', 
                      sabnzbd.__version__)
        sys.exit(2)
        
    if sabnzbd.decoder.HAVE_YENC:
        logging.info("_yenc module... found!")
    else:
        logging.info("_yenc module... NOT found!")
        
    if sabnzbd.nzbstuff.HAVE_CELEMENTTREE:
        logging.info("celementtree module... found!")
    else:
        logging.info("celementtree module... NOT found!")
        
    if sabnzbd.newsunpack.PAR2_COMMAND:
        logging.info("par2 binary... found!")
    else:
        logging.info("par2 binary... NOT found!")
        
    if sabnzbd.newsunpack.RAR_COMMAND:
        logging.info("rar binary... found!")
    else:
        logging.info("rar binary... NOT found")
        
    if sabnzbd.newsunpack.ZIP_COMMAND:
        logging.info("unzip binary... found!")
    else:
        logging.info("unzip binary... NOT found!")
        
        
    cherryhost = cfg['misc']['host']
    cherryport = int(cfg['misc']['port'])
    cherrypylogging = bool(int(cfg['logging']['enable_cherrypy_logging']))
    
    log_dir = os.path.abspath(cfg['misc']['log_dir'])
    web_dir = os.path.abspath(cfg['misc']['web_dir'])
    
    sabnzbd.interface.USERNAME = cfg['misc']['username']
    sabnzbd.interface.PASSWORD = cfg['misc']['password']
    
    if not os.path.exists(web_dir):
        logging.error('Web directory: %s does not exist', web_dir)
        sys.exit(1)
    if not os.access(web_dir, os.R_OK):
        logging.error('Web directory: %s error accessing', web_dir)
        sys.exit(1)
        
    if fork and os.name != 'nt':
        daemonize()
        
    logging.info('Starting SABnzbd v%s', sabnzbd.__version__)
    try:
        sabnzbd.start()
    except:
        logging.exception("Failed to start SABnzbd v%s", sabnzbd.__version__)
        sabnzbd.halt()
    
    cherrylogtoscreen = False
    cherrylogfile = None
    
    if cherrypylogging:
        if log_dir: 
            cherrylogfile = os.path.join(log_dir, "cherrypy.log");
        if not fork:
            try:
                sys.stderr.fileno
                sys.stdout.fileno
                cherrylogtoscreen = True
            except:
                cherrylogtoscreen = False
                
    cherrypy.root = BlahPage()
    cherrypy.root.sabnzbd = MainPage(web_dir)
    cherrypy.root.sabnzbd.queue = QueuePage(web_dir)
    cherrypy.root.sabnzbd.config = ConfigPage(web_dir)
    cherrypy.root.sabnzbd.config.general = ConfigGeneral(web_dir)
    cherrypy.root.sabnzbd.config.directories = ConfigDirectories(web_dir)
    cherrypy.root.sabnzbd.config.switches = ConfigSwitches(web_dir)
    cherrypy.root.sabnzbd.config.server = ConfigServer(web_dir)
    cherrypy.root.sabnzbd.config.scheduling = ConfigScheduling(web_dir)
    cherrypy.root.sabnzbd.config.rss = ConfigRss(web_dir)
    cherrypy.root.sabnzbd.connections = ConnectionInfo(web_dir)
    cherrypy.root.sabnzbd.history = HistoryPage(web_dir)
    
    cherrypy.config.update(updateMap={'server.environment': 'production',
                                 'server.socketHost': cherryhost,
                                 'server.socketPort': cherryport,
                                 'server.logToScreen': cherrylogtoscreen,
                                 'server.logFile': cherrylogfile,
                                 'sessionFilter.on': True,
                                 '/sabnzbd/shutdown': {'streamResponse': True},
                                 '/sabnzbd/default.css': {'staticFilter.on': True, 'staticFilter.file': os.path.join(web_dir, 'default.css')},
                                 '/sabnzbd/static': {'staticFilter.on': True, 'staticFilter.dir': os.path.join(web_dir, 'static')}
                           })
    logging.info('Starting web-interface')
    try:
        cherrypy.server.start()
    except:
        logging.exception("Failed to start web-interface")
        sabnzbd.halt()
        
if __name__ == '__main__':
    main()


Nou komt dus het eigenlijke probleem, wat er gebeurt als ik hem start. Dat doe ik doormiddel van gebruik te maken van dit commando: "python SABnzbd.py -f /DL/SABnzbd-0.2.5/SABnzbd.ini
". Dit run ik als root, dus geen probleem met de rechten. De directory's zijn ook aangemaakt en toegevoegd in samba.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Thera:/DL/SABnzbd-0.2.5# python SABnzbd.py -f /DL/SABnzbd-0.2.5/SABnzbd.ini
2003-04-02 12:58:10,835::INFO::SABnzbd v0.2.5
2003-04-02 12:58:10,836::INFO::Initializing SABnzbd v0.2.5
2003-04-02 12:58:10,837::DEBUG::FAIL_ON_CRC -> False
2003-04-02 12:58:10,838::DEBUG::CREATE_GROUP_FOLDERS -> False
2003-04-02 12:58:10,839::DEBUG::DO_FILE_JOIN -> True
2003-04-02 12:58:10,840::DEBUG::DO_UNZIP -> True
2003-04-02 12:58:10,841::DEBUG::DO_UNRAR -> True
2003-04-02 12:58:10,841::DEBUG::DO_SAVE -> False
2003-04-02 12:58:10,842::DEBUG::PAR_CLEANUP -> True
2003-04-02 12:58:10,843::DEBUG::CLEANUP_LIST -> []
2003-04-02 12:58:10,844::DEBUG::UMASK -> 493
2003-04-02 12:58:10,844::DEBUG::SEND_GROUP -> False
2003-04-02 12:58:10,845::DEBUG::CREATE_CAT_FOLDERS -> False
2003-04-02 12:58:10,846::DEBUG::CREATE_CAT_SUB -> False
2003-04-02 12:58:10,847::INFO::DOWNLOAD_DIR: /Download
2003-04-02 12:58:10,848::INFO::COMPLETE_DIR: /Download/complete
2003-04-02 12:58:10,849::INFO::NZB_BACKUP_DIR: /Download/NZB
2003-04-02 12:58:10,849::INFO::CACHE_DIR: /Download/cash
2003-04-02 12:58:10,850::INFO::dirscan_dir:
2003-04-02 12:58:10,851::INFO::BANDWITH_LIMIT: 0.0
2003-04-02 12:58:10,852::INFO::schedlines: []
2003-04-02 12:58:10,853::INFO::dirscan_opts: 1
2003-04-02 12:58:10,854::INFO::top_only: True
2003-04-02 12:58:10,854::INFO::auto_sort: False
2003-04-02 12:58:10,855::INFO::[sabnzbd] Loading data for bytes.sab from /Download/cash/bytes.sab
2003-04-02 12:58:10,856::INFO::[sabnzbd] /Download/cash/bytes.sab missing
2003-04-02 12:58:10,857::INFO::[sabnzbd] Loading data for queue.sab from /Download/cash/queue.sab
2003-04-02 12:58:10,858::INFO::[sabnzbd] /Download/cash/queue.sab missing
2003-04-02 12:58:10,860::INFO::_yenc module... NOT found!
2003-04-02 12:58:10,861::INFO::celementtree module... NOT found!
2003-04-02 12:58:10,861::INFO::par2 binary... NOT found!
2003-04-02 12:58:10,862::INFO::rar binary... NOT found
2003-04-02 12:58:10,863::INFO::unzip binary... NOT found!
2003-04-02 12:58:10,864::INFO::Starting SABnzbd v0.2.5
2003-04-02 12:58:10,864::DEBUG::[sabnzbd] Starting postprocessor
2003-04-02 12:58:10,866::DEBUG::[sabnzbd] Starting assembler
2003-04-02 12:58:10,867::DEBUG::[sabnzbd] Starting downloader
Traceback (most recent call last):
  File "SABnzbd.py", line 313, in ?
    main()
  File "SABnzbd.py", line 295, in main
    cherrypy.config.update(updateMap={'server.environment': 'production',
TypeError: update() got an unexpected keyword argument 'updateMap'

  • benoni
  • Registratie: November 2003
  • Niet online
Nu programmeer ik geen Python, maar als ik domweg de foutmelding interpreteer lees ik dat de functie config.update() van de geïmporteerde library cherrypy iets anders verwachtte dan een keyword argument met de naam 'updateMap'. Als je in de 'cherrypy' library gaat zoeken vind je die functie 'update' wel terug, je zou in de openingsregel van die functie eens kunnen kijken welke naam de parameter moet hebben, er zou iets moeten staan van def update(updateMap={}):.
Maar ja, als zoiets inderdaad niet goed werkt, zou je gewoon een bugreport moeten sturen naar de maintainer, met de patch erbij als je erg behulpzaam wilt zijn
:)

Of het moet zijn dat heel je Python niet overweg kan met parameters die op naam zijn gezet. In dat geval: Welke versie is die Python eigenlijk onder Debian Sarge? Ik kan me voorstellen dat de ondersteuning voor keyword arguments wat later is toegevoegd, maar het lijkt me toch wel dat het sinds Sarge erin zit, zo antiek is 31r5 nou ook weer niet. Je zou voor alle zekerheid kunnen dist-upgraden naar Etch natuurlijk.

Verwijderd

Je moet Python2.4 hebben anders wil het niet lukken, waarschijnlijk heb je nu 2.3 te pakken.

  • benoni
  • Registratie: November 2003
  • Niet online
Oh, inderdaad, die update() is een standaard functie zie ik, en ondersteunt pas sinds kort keyword arguments. Upgraden dus. Dank, TRRoads :)

Best een beschaafd taaltje trouwens, dat Python :>

  • Paul
  • Registratie: September 2000
  • Nu online
debian-31r5-i386-netinst is, als ik me niet vergis, Sarge oftewel OldStable.

De meeste pakketten daaruit zijn al weer een paar jaar uit. Het is dus ook niet heel simpel om alleen maar Python te updaten enzo.

Het beste zet je die hele installatie over naar Etch. Etch is een paar weekjes terug "stable" verklaard, en biedt dus dezelfde "garanties" ten aanzien van de stabiliteit die Sarge daarvoor deed, maar dan met een stuk nieuwere software.

Upgrade-instructies: http://www.debian.org/rel...otes/ch-upgrading.en.html

"Your life is yours alone. Rise up and live it." - Richard Rahl
Rhàshan - Aditu Sunlock


  • kokkel
  • Registratie: September 2000
  • Laatst online: 31-01 13:41
Verwijderd schreef op vrijdag 04 mei 2007 @ 02:35:
Je moet Python2.4 hebben anders wil het niet lukken, waarschijnlijk heb je nu 2.3 te pakken.
Heb daadwerkelijk, python 2.5 geinstalleerd. Heb nou ook, python 2.4 geprobeert. Deze geeft hetzelfde probleem

Verwijderd

code:
1
sudo apt-get install hellanzb


Probleem opgelost.

  • Xof
  • Registratie: Juni 2001
  • Laatst online: 27-01 22:32

Xof

Verwijderd schreef op vrijdag 04 mei 2007 @ 12:13:
code:
1
sudo apt-get install hellanzb


Probleem opgelost.
Jup idd, al kan die ook nog wel even zeuren dat je niet alle paketten up to date hebt, maar dat is natuurlijk zo weer opgelost met een paar extra apt-gets ;)
hellanzb werkt erg fijn vind ik zelf :)

  • kokkel
  • Registratie: September 2000
  • Laatst online: 31-01 13:41
Het werkt nou, heb het opgelost op de volgende mannier.
Heb debian-31r5-i386-netinst vervangen, door debian-40r0-i386-netinst .
Hier word python 2.4, mee geinstalleerd.

Apt-get update
- update hij zijn apt-get lijst

apt-get install python-cherry
apt-get install python-cheetah
apt-get install python-elementtree

hij installeerde bij mij gelijk de goeie versies, verder alle directory instellingen invullen.
Nu alleen het spul nog delen, met samba.

Verwijderd

Ik heb ook een hoop ge-emmer gehad met SABnzbd, en Hellanzb did the trick.

Werkt verder precies hetzelfde voor zover ik weet :)

Verwijderd

Het werkt zelfs beter, en het zit standaard in debian, dus je hoeft je zelf geen zorgen te maken, alles blijf automatisch up to date ;-)
Pagina: 1