Closed jst1102 closed 5 years ago
What version of Python are you using? NZB-Subliminal unfortunately doesn't support v3 (yet).
ahhhh - i am using v 3.7, should i downgrade??? i'm using that for my django project though, i think i can use a different version to accomplish this without downgrading, right? sorry, haven't had to deal with it yet. thanks for replying.
On Mon, Aug 12, 2019 at 7:55 AM Chris Caron notifications@github.com wrote:
What version of Python are you using? NZB-Subliminal unfortunately doesn't support v3 (yet).
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/caronc/nzb-subliminal/issues/71?email_source=notifications&email_token=AEGNZDRIMXLCJTWA7HY7WB3QEFFUJA5CNFSM4IK23U7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4CJRLY#issuecomment-520394927, or mute the thread https://github.com/notifications/unsubscribe-auth/AEGNZDTIVUAMDVBCA4OE43DQEFFUJANCNFSM4IK23U7A .
Unfortunately yeah, this is the only NZBGet plugin i haven't ported to Python 3 yet; sorry :slightly_frowning_face:
~Are you just using this script from the command line? Or are you connecting it up to NZBGet?~
Sorry you said Django; I'd honestly avoid this tool and check out the official Subliminal tool which supports Python v3.
You should not change from using Python 3; keep going the path you're already on, especially for a Django project. Python 2 will slowly (but eventually) be deprecated everywhere over time.
Edit: updated original comment
ah, i was trying to connect it to sabnzdb and do a cron job if i got it to work. Good suggestion though! i'll check it out
On Mon, Aug 12, 2019 at 9:55 PM Chris Caron notifications@github.com wrote:
Unfortunately yeah, this is the only NZBGet plugin i haven't ported to Python 3 yet; sorry 🙁
Are you just using this script from the command line? Or are you connecting it up to NZBGet? If you're just using the command line functionality of it, you could check out the official Subliminal tool https://github.com/Diaoul/subliminal which supports Python v3.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/caronc/nzb-subliminal/issues/71?email_source=notifications&email_token=AEGNZDXMXQFFWWWNAQTF7JDQEIICVA5CNFSM4IK23U7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4EJ3AY#issuecomment-520658307, or mute the thread https://github.com/notifications/unsubscribe-auth/AEGNZDQYZNXHTSI2HXQLVFTQEIICVANCNFSM4IK23U7A .
SABnzbd uses Python 2 as far as i know right now; so if it works, you definitely have the tools already to make this script work too (if you need to fall back).
Either way, I'll let you close this ticket when your comfortable. I don't mind answering any other questions you might have otherwise.
Good luck!
good news, i figured out how to do this:
from the cmd:
reference your old python v2 .exe first, then perform the desired command for the subminial wrapper you've created, e.g.:
C:\Program Files\SABnzbd\scripts>C:\python27\python Subliminal.py -s -f e:\Movies e:\Shows
here i am in the folder for the sabnzbd scripts as suggested, reference the python v2 exe, then perform the python command. It worked like a charm! Must have v2 of python installed separately from v3 for it to work.
now to figure out how to run the cron job...
i'll put this up in the ticket
On Mon, Aug 12, 2019 at 10:40 PM Chris Caron notifications@github.com wrote:
SABnzbd uses Python 2 as far as i know right now; so if it works, you definitely have the tools already to make this script work too (if you need to fall back).
Either way, I'll let you close this ticket when your comfortable. I don't mind answering any other questions you might have otherwise.
Good luck!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/caronc/nzb-subliminal/issues/71?email_source=notifications&email_token=AEGNZDUZPEQNQQPP3DH36PTQEINJDA5CNFSM4IK23U7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4ELZ2Y#issuecomment-520666347, or mute the thread https://github.com/notifications/unsubscribe-auth/AEGNZDTY7L236TSMJGXXMI3QEINJDANCNFSM4IK23U7A .
Closing for now. If anyone can figure out the cron job, that's just icing on the cake
when trying to download subtitles, i'm getting this error:
File "Subliminal.py", line 2435 except ConfigException, e: ^ SyntaxError: invalid syntax
when i run this command:
python Subliminal.py -s -f e:\Shows e:\Movies
I have subliminal in my scripts folder for sabnzbd and the subliminal.py script too. Is something wrong with the .py or am i doing something incorrect?