LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-19-2012, 09:38 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,291

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Python Versions


I am trying to compile mplayer2 here, and I have a mess as usual. The latest reason to crap out was that Slackware-14.0 has python2.7, but mplayer2 uses python3

Python3.0 was released in 2008. There was a bugfix, and only 3.0.1 is up on the site now. They are now on python-3.3 and counting. Any reason why Slackware is still back on python2.7?

How should I approach adding python3 - keep the 2 versions? Do I need different directories? They are incompatible, it seems.
 
Old 10-19-2012, 10:23 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Not even Ubuntu or Fedora use Python 3.x and they are bleeding edge. Don't expect Slackware to use it any time soon.

Mplayer2 is worthless. The devs only like to remove functionality claiming it is terrible, unmaintainable code, and add ridiculous dependencies like Python 3.x. Use regular Mplayer.
 
1 members found this post helpful.
Old 10-19-2012, 11:27 AM   #3
NeoMetal
Member
 
Registered: Aug 2004
Location: MD
Distribution: Slackware
Posts: 114

Rep: Reputation: 24
Most distro's still use 2.x as the defauly python because there is a lot of existing code that would break with 3.x at this point. You should be able to install 3.x side by side though and just point the stuff that needs it to use python3 instead of the default python
 
Old 10-19-2012, 12:18 PM   #4
corvid
LQ Newbie
 
Registered: May 2011
Distribution: Debian
Posts: 16

Rep: Reputation: Disabled
Quote:
Originally Posted by H_TeXMeX_H View Post
The devs only like to remove functionality claiming it is terrible, unmaintainable code
I don't know anything about mplayer2, but I must say that I have some sympathy for the idea of ripping out terrible, unmaintainable code.
 
Old 10-19-2012, 01:18 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,291

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by H_TeXMeX_H View Post
Not even Ubuntu or Fedora use Python 3.x and they are bleeding edge. Don't expect Slackware to use it any time soon.

Mplayer2 is worthless. The devs only like to remove functionality claiming it is terrible, unmaintainable code, and add ridiculous dependencies like Python 3.x. Use regular Mplayer.
:-)
I don't know if anyone else remembers this, but they used to race 50cc motorbikes at one time. I'm in a similar business really with the ATI graphics chip on this Laptop (RS690 aka X1250 aka rs600 aka r4XX aka ... aka ... aka ... I digress). I went through the pain of updating to Slackware-14.0 for the later video & mesa, and it has helped. We have just broken through to where you can lipread conversations in time with the speech, which for my box is a breakthrough.

The README sounded good for mplayer2(better use of acceleration), and the punishment might be good for me.
Nevertheless, thanks for the review. I'll review my reasons for using it before going any further.

/OT
50cc racing was hilarious, if you had the sense of humour for it. Little rashers of guys in leather like spandex flat on (tiny) patrol tanks doing crazy speeds yet slowing to basically nothing on a little hill against the wind. Honda had a 50cc twin 4 stroke which was designed to rev to 17,000 rpm but actually held together at 22,000 rpm, and went faster; it had 17 gears. Suzuki had a similarly geared 2 stroke three cylinder 50, and Yamaha had a twin and were building a 4 or 5 cylinder when the racing guys ruled the lot out and said "max 2 cylinders and six gears under 250cc"
 
Old 10-19-2012, 01:45 PM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Python 2.x is still alive and kicking. Eventually it is going to be replaced by Python 3 but it seems that for a good few years those two versions are going to coexist with 3.x VERY SLOWLY pushing 2.x out. Python 3 was released in 2008 and the Django Project, for example, added experimental support for Python 3 this month. This speaks volumes. The implementation of Python 3 is somewhat slower than it was expected because:

1. In some areas Python 3 is not compatible with Python 2.x so thousands of scripts all over the world could break if distros switched to Python 3. Mind you, IIRC, Python 2.7 has many features implemented in P3k. There are also tools to port python 2.x scripts to P3k.
2. Python 2.x still does the job.

For the above mentioned reasons there hasn't been much demand for Python 3. Having said that, eventually it will take over.

Back to the original question, you can easily run 2 versions of Python alongside and point mplayer2 to P3k if you want.
 
  


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] Removing/switching python versions vvenomouss Linux - Software 4 11-10-2011 01:24 AM
Different Versions of Python FragInHell Programming 14 05-11-2011 08:26 PM
[SOLVED] Prepare firmware versions availability for current versions mufy AIX 2 01-03-2011 10:19 AM
install latest versions of python, pygtk and glib kosmognov Linux - Software 2 05-12-2006 02:30 PM
different python versions on the same box birras Red Hat 0 11-14-2004 12:51 PM

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

All times are GMT -5. The time now is 09:52 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