[solved] Python: only old versions in MXPI?

Message
Author
User avatar
Duliwi
Posts: 1178
Joined: Sun Jul 07, 2019 9:34 am

[solved] Python: only old versions in MXPI?

#1 Post by Duliwi »

I am a bit confused.

It is said on this homepage ...
https://vorta.borgbase.com/download/linux/
[To install our program,] your local Python version must be >= 3.6.
With

Code: Select all

python --version
... I found out, that I have version 2.7.16

So I went to MXPI into test tab.
My expectation was, that there I will find version >=3.6

But I found this:
python version.png
Does this mean, MXPI is not up-to-date? Or do I miss anything?

Thank you.
You do not have the required permissions to view the files attached to this post.
Last edited by Duliwi on Wed Aug 05, 2020 6:46 am, edited 1 time in total.

User avatar
baldyeti
Posts: 716
Joined: Sat Dec 05, 2009 3:37 pm

Re: Python: only old versions in MXPI?

#2 Post by baldyeti »

With debian 10 buster (on which MX19 is based), you get _both_ python 2.7 and 3.7
The latter can be invoked as "python3"

Code: Select all

(Debian_GNU/Linux_10_(buster)) Wed Aug 05 10:07:52 /
chroot> python --version
Python 2.7.16

(Debian_GNU/Linux_10_(buster)) Wed Aug 05 10:08:52 /
chroot> python3 --version
Python 3.7.3

User avatar
Duliwi
Posts: 1178
Joined: Sun Jul 07, 2019 9:34 am

Re: Python: only old versions in MXPI?

#3 Post by Duliwi »

Thank you. Do you mean this:

Terminal:

Code: Select all

$ python3 --version
Python 3.7.3
Does this mean, that I was missing, that I always have python version >=3.6 and that I have nothing more to do than just install the program, that needs python version >=3.6 ? Right?

User avatar
baldyeti
Posts: 716
Joined: Sat Dec 05, 2009 3:37 pm

Re: Python: only old versions in MXPI?

#4 Post by baldyeti »

Duliwi wrote: Wed Aug 05, 2020 5:06 am Does this mean, that I was missing, that I always have python version >=3.6 and that I have nothing more to do than just install the program, that needs python version >=3.6 ? Right?
I guess so, indeed. If your program/library is available from a repo, install the version whose name starts with python3, many are available for both python versions. The coexistence of these 2 versions has been going on for too long and keeps causing confusion. Hopefully debian 11 "bullseye" swill ship with only python3 by default.

User avatar
sunrat
Posts: 663
Joined: Mon Mar 28, 2016 9:54 pm

Re: Python: only old versions in MXPI?

#5 Post by sunrat »

baldyeti wrote: Wed Aug 05, 2020 5:13 amThe coexistence of these 2 versions has been going on for too long and keeps causing confusion. Hopefully debian 11 "bullseye" swill ship with only python3 by default.
It will. Sid is currently in transition of removing Python2.

maesch3ster
Posts: 4
Joined: Mon Nov 19, 2018 1:36 am

Re: Python: only old versions in MXPI?

#6 Post by maesch3ster »

baldyeti wrote: Wed Aug 05, 2020 5:13 am
Duliwi wrote: Wed Aug 05, 2020 5:06 am Does this mean, that I was missing, that I always have python version >=3.6 and that I have nothing more to do than just install the program, that needs python version >=3.6 ? Right?
I guess so, indeed. If your program/library is available from a repo, install the version whose name starts with python3, many are available for both python versions. The coexistence of these 2 versions has been going on for too long and keeps causing confusion. Hopefully debian 11 "bullseye" swill ship with only python3 by default.
Hoping the same thing on this, python3 hopefully will be a default so no confusion around, tired also of always upgrading the py2 to py3 lol.

Post Reply

Return to “Software / Configuration”