Page 2 of 2
Re: [SABnzbd3] nice: can't execute '/var/packages/sabnzbd/target/var/scripts/Deobfuscate.py': No such file,but file is t
Posted: August 28th, 2020, 2:49 am
by pven
Thanks! :-)
To be sure: you don't expect anything from me for now?
Re: [SABnzbd3] nice: can't execute '/var/packages/sabnzbd/target/var/scripts/Deobfuscate.py': No such file,but file is t
Posted: August 28th, 2020, 2:57 am
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.
>>>
Re: [SABnzbd3] nice: can't execute '/var/packages/sabnzbd/target/var/scripts/Deobfuscate.py': No such file,but file is t
Posted: August 28th, 2020, 3:23 am
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
Re: [SABnzbd3] nice: can't execute '/var/packages/sabnzbd/target/var/scripts/Deobfuscate.py': No such file,but file is t
Posted: August 28th, 2020, 8:20 am
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.
Re: [SABnzbd3] nice: can't execute '/var/packages/sabnzbd/target/var/scripts/Deobfuscate.py': No such file,but file is t
Posted: August 28th, 2020, 8:40 am
by sander
Yes, I do think so: Package Center shows Python3, by Allan Clark, Publisher SynoCommunity, Installed Version 3.7.7-12
Re: [SABnzbd3] nice: can't execute '/var/packages/sabnzbd/target/var/scripts/Deobfuscate.py': No such file,but file is t
Posted: August 31st, 2020, 2:04 am
by safihre
I added the fix to the 3.0.2 package for SynoCommunity:
https://github.com/SynoCommunity/spksrc/pull/4154