LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-26-2019, 04:06 PM   #61
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413

Quote:
Originally Posted by zeebra View Post
Firefox is dependent on Python2 to compile from source? That's pretty crazy actually. Anyways, I was searching the web trying to find a list of "relevant" packages which still use python2, but I could find nothing. So your example is interesting (and shocking).
I'm not shocked that someone doesn't want to retool their complex build environment. There's a half assed attempt to provide a python2 environment by including an obj-x86_64-pc-linux-gnu directory populated with a Python 2.7 environment but that's the wrong thing to do, and I have yet to see it actually work. It fails my build for me if I don't nuke that directory first.
 
Old 08-26-2019, 05:24 PM   #62
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by zeebra View Post
In my one and only time and horrible experience with Python, that was NOT the case. It does not seem to work as expected under all circumstances, that's my experience at least. I didn't know Python well, so I might have done something wrong, but I tried a variety of things when installing Python 3, and the Python 3 based libs, software and extensions etc refused to install to Python 3 paths etc properly and/or do/work as expected. I even switched python from python2 to python3 and it did me little good.
Here a bunch applications are linked to Python3, others to Python2 with no issue. Indeed Pyhon2 and Python3 are installed side by side and coexist peacefully.
Code:
didier[~]$ ls -l /usr/bin/python*
lrwxrwxrwx 1 root root     9 avril 29 02:14 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root    14 avril 29 02:14 /usr/bin/python-config -> python2-config
lrwxrwxrwx 1 root root     9 avril 29 02:14 /usr/bin/python2 -> python2.7
lrwxrwxrwx 1 root root    16 avril 29 02:14 /usr/bin/python2-config -> python2.7-config
-rwxr-xr-x 1 root root  6200 mars   3 21:11 /usr/bin/python2.7
-rwxr-xr-x 1 root root  1681 mars   3 21:10 /usr/bin/python2.7-config
lrwxrwxrwx 1 root root     9 avril 29 02:14 /usr/bin/python3 -> python3.5
lrwxrwxrwx 1 root root    16 avril 29 02:14 /usr/bin/python3-config -> python3.5-config
-rwxr-xr-x 2 root root 10336 août  30  2017 /usr/bin/python3.5
lrwxrwxrwx 1 root root    17 avril 29 02:14 /usr/bin/python3.5-config -> python3.5m-config
-rwxr-xr-x 2 root root 10336 août  30  2017 /usr/bin/python3.5m
-rwxr-xr-x 1 root root  3079 août  30  2017 /usr/bin/python3.5m-config
didier[~]$
 
Old 08-26-2019, 05:31 PM   #63
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
I think , at least python , need points to python3 instead 2... like archlinux are doing since 1 year or more...to start python2 deprecation is the first pass to do.

slackbuilds can provide python2.


As i say , i think the first and probably more hard pass, is make python3 , the default , cause need to make changes in too many slackbuilds...but is the start point for this ... in some moment that is happen.

wicd needs python2 , and is a excellent option , for people not networkmanager fans or problems with it.
but again , i think slackbuilds can adopt, but not sure if not better option make in /pasture , cause some times issues with network , can make imposible to build wicd from slackbuilds, cause no conection.I think this is important point to see.

Last edited by USUARIONUEVO; 08-26-2019 at 05:45 PM.
 
1 members found this post helpful.
Old 08-26-2019, 05:44 PM   #64
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
EDIT:

Never mind. Posted without knowing what I was saying. Carry on.

Last edited by dugan; 08-26-2019 at 05:46 PM.
 
Old 08-26-2019, 06:00 PM   #65
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by montagdude View Post
I was talking about your experiences with Python, not your issues with Fedora (I have no idea about that).
Oops, my bad. I don't think it was actually. I just found Python a horrible environment to work with. It's been awhile, but I can try to remember the reasons that I was thinking so if you care. One of the things was pip and actually basing a script on a web address being fetched correctly. I think one thing I was trying to do was to insert some kind of tiny lib or function into python, but I was not allowed to do that without pip, even though I had it at hand. Sure, that was a user error, but I just found the method disagreeable. I had the same experience trying to install something else to python as well.

It's not fresh in my mind, but some of those scripts were horrible and ugly with things I never wanted to know existed.

I think I even wrote down a sarcastic list about that experience somewhere after I was dealing with it.
 
1 members found this post helpful.
Old 08-26-2019, 06:01 PM   #66
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Anyways, that's off topic, sorry.
 
Old 08-26-2019, 08:34 PM   #67
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by Richard Cranium View Post
Install python3 from Slackbuilds.org. Update your scripts accordingly.

Python3 was released (slightly over) 10 years ago. There's been ample time to upgrade, for crying out loud.
For Python, there is never ample time to upgrade because Python does not have compatibility across different minor (not major) versions.
 
1 members found this post helpful.
Old 08-26-2019, 10:43 PM   #68
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by guanx View Post
For Python, there is never ample time to upgrade because Python does not have compatibility across different minor (not major) versions.
Oh, Jesus Christ on rollerblades. Fine, give examples.
 
1 members found this post helpful.
Old 08-26-2019, 11:17 PM   #69
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by guanx View Post
For Python, there is never ample time to upgrade because Python does not have compatibility across different minor (not major) versions.
You're the first person I've ever seen say this.

I'm a bit curious as to why you did.

Last edited by dugan; 08-26-2019 at 11:20 PM.
 
Old 08-27-2019, 12:18 AM   #70
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by dugan View Post
You're the first person I've ever seen say this.

I'm a bit curious as to why you did.
"Our position has always been that versions that only differ in the 3rd part of the version number should be compatible both ways, ..."
 
Old 08-27-2019, 12:29 AM   #71
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by USUARIONUEVO View Post
//snip


As i say , i think the first and probably more hard pass, is make python3 , the default , cause need to make changes in too many slackbuilds...but is the start point for this ... in some moment that is happen.

//snip
Making python3 the default Python interpreter is like making c++ the default C compiler. Cool, but crazy.
 
1 members found this post helpful.
Old 08-27-2019, 02:22 AM   #72
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by guanx View Post
Making python3 the default Python interpreter is like making c++ the default C compiler. Cool, but crazy.
I'm getting confused now. I don't use Python myself, but I thought "most" software had moved to Python3.
 
Old 08-27-2019, 03:33 AM   #73
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Most of it has, but of particular concern are sbo packages and the software that ships with Slackware.
 
Old 08-27-2019, 03:50 AM   #74
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by ttk View Post
Most of it has, but of particular concern are sbo packages and the software that ships with Slackware.
I see, but considering the "end of life January 2020", do they not HAVE to adapt?

I hate to put a burden on you here, but can you give any examples of "core" software that Slackware is likely to use which is still on Python2? Sorry for being such a pain about this, but I'm just trying to understand the situation more indepth.
 
Old 08-27-2019, 04:18 AM   #75
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by zeebra View Post
I see, but considering the "end of life January 2020", do they not HAVE to adapt?
That Python2 be considered EOL doesn't mean that software relying on it will cease to work overnight. And to be adapted these software will need someone to work on it. Including this one that I maintain
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware current - Openssl and python2 update broke python-setuptools? orbea Slackware 28 03-14-2016 03:16 PM
[SOLVED] How can I make Python2.7 my default Python without deleting/removing python2.6. steves504 Linux - Server 2 03-21-2014 11:57 AM
[SOLVED] Trying to install 'Gmail Backup' but it requires python2.5 - I have python2.8... Robert.Thompson Slackware 6 05-10-2011 08:23 AM
Python2.5-devel is unable to find installed Python2.5 Setya SUSE / openSUSE 1 06-08-2007 01:35 AM
python2.2 Dependencies webboss Linux - General 3 03-06-2002 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration