[SABnzbd3] nice: can't execute '/var/packages/sabnzbd/target/var/scripts/Deobfuscate.py': No such file,but file is there

Report & discuss bugs found in 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.
pven
Release Testers
Release Testers
Posts: 114
Joined: August 21st, 2009, 5:00 am

Re: [SABnzbd3] nice: can't execute '/var/packages/sabnzbd/target/var/scripts/Deobfuscate.py': No such file,but file is t

Post by pven »

Thanks! :-)

To be sure: you don't expect anything from me for now?
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: [SABnzbd3] nice: can't execute '/var/packages/sabnzbd/target/var/scripts/Deobfuscate.py': No such file,but file is t

Post by sander »

FWIW: my Synology:

Code: Select all

admin@DiskStation:/$ which python3
/usr/local/bin/python3
So ... yet another location?



python3 does know its executable:

Code: Select all

admin@DiskStation:/$ python3
Python 3.5.1 (default, Jan 29 2018, 14:17:54)
[GCC 4.6.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.executable)
/usr/local/bin/python3
>>>
FWIW on Synology /usr/bin/env does work:

Code: Select all

admin@DiskStation:/$ /usr/bin/env python3
Python 3.5.1 (default, Jan 29 2018, 14:17:54)
[GCC 4.6.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Code: Select all

admin@DiskStation:/$ /usr/bin/env python2
Python 2.7.12 (default, May  7 2020, 04:27:29)
[GCC 4.6.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

Code: Select all

admin@DiskStation:/$ env python2
Python 2.7.12 (default, May  7 2020, 04:27:29)
[GCC 4.6.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
admin@DiskStation:/$
admin@DiskStation:/$ env python3
Python 3.5.1 (default, Jan 29 2018, 14:17:54)
[GCC 4.6.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: [SABnzbd3] nice: can't execute '/var/packages/sabnzbd/target/var/scripts/Deobfuscate.py': No such file,but file is t

Post by jcfp »

safihre wrote: August 27th, 2020, 4:03 pmWell, I am the maintainer of the Synology package.. So guess I have work to do 😅
Only takes a simple one-liner to mod the shebang to whatever you want:

Code: Select all

sed -i '1s/\/usr\/bin/\/usr\/local/' /path/to/Deobfuscate.py
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: [SABnzbd3] nice: can't execute '/var/packages/sabnzbd/target/var/scripts/Deobfuscate.py': No such file,but file is t

Post by safihre »

@sanderjo did you install the latest Python 3 package from SynoCommunity? Could be there's 2 python 3 on synology, I think DSM itself also provides a python.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: [SABnzbd3] nice: can't execute '/var/packages/sabnzbd/target/var/scripts/Deobfuscate.py': No such file,but file is t

Post by sander »

Yes, I do think so: Package Center shows Python3, by Allan Clark, Publisher SynoCommunity, Installed Version 3.7.7-12
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: [SABnzbd3] nice: can't execute '/var/packages/sabnzbd/target/var/scripts/Deobfuscate.py': No such file,but file is t

Post by safihre »

I added the fix to the 3.0.2 package for SynoCommunity:
https://github.com/SynoCommunity/spksrc/pull/4154
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply