Can not run python...

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
deef
Newbie
Newbie
Posts: 1
Joined: March 4th, 2016, 1:44 pm

Can not run python...

Post by deef »

I have a few problems with installing Sabnzbdplus:

When I visit the QPKG-log file it's giving this errors:

Code: Select all

Performing SABnzbdplus prestartup checks at Fri Mar  4 19:19:23 CET 2016...
 Checking for git...  Found!
HEAD is now at 3e4861e V10.13 for merge
Already up-to-date.
 Checking environment
  Checking if all configured directories exist....... Done
  Creating Symbolic links for required utils. Done
 AUTO_RESTART tag found. Checking if crontab needs to be altered... Yes, Done
Checking for a new version...
 Downloading online version file... Done
 Reading file... Done
 Determine current (installed) version... 0.0.0 (99)
 Determine stable release... 0.7.20 (72099)
 ALL_RELEASES tag found, also checking unstable branch...
 Determine Unstable release... 1.0.0RC2 (1000082)
 Checking which is newest... Unstable, upgrading
Upgrading SAB remotely...gzip: Invalid magic
/bin/tar: Child returned status 1
/bin/tar: Exiting with failure status due to previous errors
. Done
Starting SABnzbplus once... Done
Starting SABnzbdplus/usr/bin/python2.7: can't open file 'SABnzbd.py': [Errno 2] No such file or directory
 Done (Fri Mar  4 19:19:46 CET 2016)
Probably the error is that Python could not start becausse the path does not exists:

SABnzbdplus/usr

it has to be
/usr/....

I have looked in the file sabnzbd.sh

Code: Select all

#!/bin/sh
#/share/CACHEDEV1_DATA/.qpkg/SABnzbdplus 

QPKG_NAME="SABnzbdplus"
QPKG_DIR=$(/sbin/getcfg $QPKG_NAME Install_Path -f /etc/config/qpkg.conf) #root of the qpkg dir
LOG_DIR=$(/sbin/getcfg misc log_dir -f $QPKG_DIR/Config/sabnzbd.ini) #log dir where the TAG files are stored
DAEMON="/usr/bin/python2.7"
DAEMON_PACKAGE="$QPKG_DIR/Repository/lib/python"
DAEMON_OPTS=" SABnzbd.py -f Config/sabnzbd.ini --browser 0 --daemon --pid /tmp" #watch out that --pid only sets the path to the pidfile, not the name
PID_NAME="/tmp/sabnzbd" #am a bit lazy to code the pidpath in a variable too, so change path here to path set by --pid in the line above
PID_FILE="$PID_NAME-$(/sbin/getcfg Misc port -f $QPKG_DIR/Config/sabnzbd.ini).pid" #sabnzbd itself names it's pidfile to sabnzbd-<portnr-listening-on> can be http or https port
Url="http://sabnzbdplus.sourceforge.net/version/latest" #url to the upgrade file
QDOWNLOAD=$(/sbin/getcfg SHARE_DEF defDownload -d Qdownload -f /etc/config/def_share.info)

#The url to the git repository we're going to install
GIT_URL=git://github.com/clinton-hall/nzbToMedia.git
GIT_URL1=http://github.com/clinton-hall/nzbToMedia.git
and I have found that the path is correct... So why is it not working?

Can someone help me with remote desktop for example?

Thanks,

deef
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Can not run python...

Post by shypike »

Have you tried to contact the QPKG maker?
We don't make this package.
wouter1971
Newbie
Newbie
Posts: 1
Joined: April 2nd, 2016, 1:09 pm

Re: Can not run python...

Post by wouter1971 »

Hi,
I had the same issue too. It's the upgrade script on QNAP.
This is part of the manual:

FORCE_MANUAL_INSTALL
- FOR EXPERTS ONLY. only use it with the right SABnzbd source file!
- If this tag is found, the wrapper will look at the first line inside the tag for the path to the source file that must be installed.
- The path must be like: <sharename>/SABnzbd_file_to_upgrade.tar.gz (subfolders below the share are also allowed).
- Example what to put into this tag: Multimedia/SABnzbd-0.7.0Beta3-src.tar.gz
- If the file is found, it will be unpacked over the current installation, regardless of the version.
- After unpacking the tag will be removed automatically.
- This tag takes precedence over the NO_UPGRADE tag. So even if both tags exist, the manual install will be forced.

commands:

cd /share
wget https://github.com/sabnzbd/sabnzbd/rele ... src.tar.gz --no-check-certificate
Now place a file in de sabnzbd log dir (check sabnzbd.ini) named "FORCE_MANUAL_INSTALL"
On the first line of that file place the path to the install file without "/share" so in this example " SABnzbd-1.0.0-src.tar.gz"
now execute "/etc/init.d/sabnzbd.sh restart"

Now it does the installation normaly, i didn't find the real error but did the manual install as workaround.
cryion
Newbie
Newbie
Posts: 1
Joined: July 16th, 2016, 10:36 am

Re: Can not run python...

Post by cryion »

wouter1971 wrote:Hi,
...
After hours of screwing around and screaming at the screen I finally came across your post which helped me to get it running. Thank you very much, sir!
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Can not run python...

Post by safihre »

For future reference, try Clinton Hall's latest package: https://sabnzbd.org/wiki/installation/install-nas
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply