caronc / nzb-subliminal

Fetches subtitles for the videos it's provided. It can be easily integrated into NZBGet and SABnzbd too.
GNU General Public License v3.0
103 stars 14 forks source link

error #71

Closed jst1102 closed 5 years ago

jst1102 commented 5 years ago

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?

caronc commented 5 years ago

What version of Python are you using? NZB-Subliminal unfortunately doesn't support v3 (yet).

jst1102 commented 5 years ago

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 .

caronc commented 5 years ago

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

jst1102 commented 5 years ago

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 .

caronc commented 5 years ago

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!

jst1102 commented 5 years ago

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 .

jst1102 commented 5 years ago

Closing for now. If anyone can figure out the cron job, that's just icing on the cake