Python 2 vs Python 3

Get help, report and discuss bugs.
Post Reply
ulrick65
Posts: 24
Joined: 10 May 2016, 13:49

Python 2 vs Python 3

Post by ulrick65 » 23 Feb 2020, 18:03

I know this has been asked before but I just want to clarify something.

I have some scripts that are Python3 and some are Python2. If the shebang is set correctly in Python3 scripts, they still do not run unless I set the shelloverride to Python3 (which of course breaks the Python2 scripts).

Why doesn't setting the shebang properly work? Is there some other way around this to make both Python2 and Python3 scripts work?

Thanks.

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Python 2 vs Python 3

Post by hugbug » 24 Feb 2020, 01:02

You must have an error in the shebang. Test if you can run the script from terminal and check if it runs from correct python version.

ulrick65
Posts: 24
Joined: 10 May 2016, 13:49

Re: Python 2 vs Python 3

Post by ulrick65 » 25 Feb 2020, 02:39

Sorry...I was confusing a couple of different things and thought it was a limitation of nzbget, but not so. Thanks for the reply.

Post Reply

Who is online

Users browsing this forum: No registered users and 47 guests