Page 1 of 1

Ubuntu 16.04 / python 3.7: upgrading after years and get Syntax Error when trying to start up the new version

Posted: November 29th, 2021, 6:13 am
by Ogre01
I am on the older Ubuntu LTS version and did read that 3,7 was needed after 2,9,4 I think the version I was on. So I have installed 3,7,10, anyway here's my output and upgrade method.



~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16,04,7 LTS
Release: 16,04
Codename: xenial

~$ python3,7 --version
Python 3,7, 10



self._size: int = size
^
SyntaxError: invalid syntax


I'm not trying to post URL but not sure how to make it work so this is just the tidbit that is the error when I'm trying to start up the sabnzbd service by invoking it from the init.d folder inside etc. Performed with sudo.

Thanks in advance for any assistance.

Re: Ubuntu 16.04 / python 3.7: upgrading after years and get Syntax Error when trying to start up the new version

Posted: November 29th, 2021, 8:01 am
by sander
(I changed the subject a bit.)

Ubuntu 16.04: "End of Life April 2021". It's now november 2021, so beyond EoL. So ... is it possible for you to upgrade Ubuntu to 18.04?

Re: Ubuntu 16.04 / python 3.7: upgrading after years and get Syntax Error when trying to start up the new version

Posted: November 29th, 2021, 1:32 pm
by Ogre01
@sander, thank you so much for your suggestion. I pushed my ubuntu version up to 20.04. And it looks like that was it. I thought I had pushed my ubuntu version enough, guess it pays to read a bit better.

Re: Ubuntu 16.04 / python 3.7: upgrading after years and get Syntax Error when trying to start up the new version

Posted: November 29th, 2021, 1:56 pm
by sander
Nice. I still have a Ubuntu 18.04 VPS (with python 3.6), and I am hesitating to upgrade