clinton-hall / GetScripts

A Collection of NZBGet Post-Process Scripts
GNU General Public License v2.0
100 stars 39 forks source link

NameError: global name 'SEVENZIP' is not defined #19

Closed vaneess closed 6 years ago

vaneess commented 6 years ago

i sometimes get the error from sabnzbd: NameError: global name 'SEVENZIP' is not defined

7zip is installed, do i have to add a system variable?

clinton-hall commented 6 years ago

Can you show the logs?

clinton-hall commented 6 years ago

As a note here, these GetScripts are designed to work in NZBGet and not SABnzbd.

vaneess commented 6 years ago

hi clinton-hall thank you for answering so quickly! :) here are the logs, hope it helps

Script triggered from SABnzbd
Traceback (most recent call last):
File "C:\Program Files\SABnzbd\scripts\SAB-SafeRename.py", line 264, in <module>
rename_script(dirname)
File "C:\Program Files\SABnzbd\scripts\SAB-SafeRename.py", line 130, in rename_script
cmd = extract_command(shlex.split(line), dirname)
File "C:\Program Files\SABnzbd\scripts\SAB-SafeRename.py", line 212, in extract_command
if not os.path.exists(SEVENZIP):
NameError: global name 'SEVENZIP' is not defined
vaneess commented 6 years ago

thank youu! 👍 :)