I'm working on a QNAP NAS-system (which alone is troublesome; firmware: 4.1.1 (not that new)) and installed duplicity through some community-package.ProblemLogged in as admin (which is the replacement of root within QNAPs system) through ssh, the following works:duplicityCommand line error: Expected 2 args, got 0Enter 'duplicity --help' for help screen.Trying the same as another user fails all the time (here: sudo -i):sudo -i -u backupScriptduplicityCould not find platform independent libraries <prefix>Could not find platform dependent libraries <exec_prefix>Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]ImportError: No module named siteAlso sudo --login:sudo -u backupScript --loginduplicityCould not find platform independent libraries <prefix>Could not find platform dependent libraries <exec_prefix>Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]ImportError: No module named sitesudo -E (which could be a candidate) seems not be available with my version: 1.8.14p3.Debugging env-setting:admin: envHOSTNAME=XXXTERM=xtermSHELL=/bin/shHISTSIZE=1000SSH_CLIENT=192.168.2.106 55935 22SSH_TTY=/dev/pts/5LC_ALL=en_US.UTF-8HISTFILESIZE=1000USER=adminTEMP=/Apps/opt/tmpLS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:PAGER=/bin/moreMAIL=/var/mail/adminPATH=/Apps/opt/bin:/Apps/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin:/usr/local/ruby/bin:/Apps/bin:/Apps/sbin:/usr/local/jre/binINPUTRC=/etc/inputrcPWD=/rootJAVA_HOME=/usr/local/jreRUBY_PATH=/usr/local/rubyEDITOR=/bin/viLANG=en_US.UTF-8DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfilePS1=[\w] #SHLVL=1HOME=/rootTERMINFO=/Apps/opt/share/terminfoTMP=/Apps/opt/tmpLOGNAME=adminLC_CTYPE=en_US.UTF-8SSH_CONNECTION=192.168.2.106 55935 192.168.2.103 22_=/usr/bin/envbackupScript env after sudo -i -u backupScriptHOSTNAME=XXXSHELL=/bin/shTERM=xtermHISTSIZE=1000LC_ALL=en_US.UTF-8HISTFILESIZE=1000USER=backupScriptLS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:SUDO_USER=adminSUDO_UID=0USERNAME=backupScriptPAGER=/bin/moreMAIL=/var/mail/backupScriptPATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin:/usr/local/ruby/bin:/Apps/bin:/Apps/sbin:/usr/local/jre/binINPUTRC=/etc/inputrcPWD=/share/homes/backupScriptJAVA_HOME=/usr/local/jreRUBY_PATH=/usr/local/rubyEDITOR=/bin/viLANG=en_US.UTF-8DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfilePS1=[\u@\h \W]\$SHLVL=1SUDO_COMMAND=/bin/shHOME=/share/homes/backupScriptLOGNAME=backupScriptLC_CTYPE=en_US.UTF-8SUDO_GID=0_=/usr/bin/envBoth doesn't have any PYTHONHOME defined (which is mentioned in the error)How is admin able to run duplicity, while user backupScript is not?Any ideas how to repair this?Any ideas of further debugging-attemps? Just mention if i'm approaching this in a completely wrong way!
admin vs. sudo user: program not working for user (sudo env problem?)
sudo;python;environment variables