Page 1 of 1

Can I install python 2.6 along side of 2.7?

PostPosted: Jun 5th, '11, 03:32
by rc2011
I have been trying to install Cedega. Running gametree from the terminal it says it only works with python 2.4-2.6

WARNING: Unsupported version of Python: 2.7
Only Python 2.4 - 2.6 is officially supported by GameTree Linux
Traceback (most recent call last):
File "/home/me/.cedega/.ui/app/frontend/main.py", line 381, in <module>
from App import App
File "/home/me/.cedega/.ui/app/frontend/App.py", line 20, in <module>
import gtk.glade
ImportError: No module named glade


Mageia has 2.7. I am guessing I can't just downgrade to 2.6? So is there a way I can just install 2.6 side by side with 2.7? Or is there a way I can fake it so Cedega thinks 2.6 is installed, providing that other problems don't arise from faking it?

Running from terminal:

$ python
Python 2.7.1 (r271:86832, May 22 2011, 22:07:10)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>> import gtk.glade
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named glade


So any thoughts on how can I make this work?

(Also, I wasn't sure if this should be in basic or advanced section, but this doesn't seem like a basic question, well at least to me it doesn't.)

Re: Can I install python 2.6 along side of 2.7?

PostPosted: Jun 6th, '11, 13:38
by xardas008
You can look in the repositories for Python 2.6.

Normally you are able to install different versions next to each other, For example if 2.7 is installed as the default version, Version 3.x will be named as python3.

But i don't know if Mageia has Python 2.6 in the repository.

Re: Can I install python 2.6 along side of 2.7?

PostPosted: Jun 27th, '11, 09:59
by laidlaws
I needed Python 2.6 to run VirtualBox. I simply downloaded the RPM of libpython2.6 from the Mandriva repositories and installed it. It set up alongside 2.7. It has no dependencies. Ubuntu has 2.6 (now deprecated) 2.7 (the current version) and the upcoming Version 3, all side by side.

Doug.

Re: Can I install python 2.6 along side of 2.7?

PostPosted: Jun 28th, '11, 11:08
by djennings
I needed Python 2.6 to run VirtualBox

Aren't you using the Mageia virtualbox package?
virtualbox-4.0.6-4.mga1 requires python 2.7

Re: Can I install python 2.6 along side of 2.7?

PostPosted: Jun 28th, '11, 17:48
by broadstairs
djennings wrote:
I needed Python 2.6 to run VirtualBox

Aren't you using the Mageia virtualbox package?
virtualbox-4.0.6-4.mga1 requires python 2.7


One problem with this is that VirtualBox is now at 4.0.10 which is what I want to install but Mandriva packages need python 2.6. Opensuse uses python 2.7 but when I tried the rpm for 4.0.8 I had problems with VirtualBox. Also remember that the dkms packae will do you no good if you do a kernel update as it has only the 4.0.6 code. We either need Mageia to speed up adding product (but with limited resources right now something like VB is unlikely to figure highly) or maybe install the version for other Linux's as that is a script file, but as yet I've not tried it and dont know what if any dependencies there are.

Stuart

Re: Can I install python 2.6 along side of 2.7?

PostPosted: Jun 28th, '11, 20:58
by wobo
broadstairs wrote:One problem with this is that VirtualBox is now at 4.0.10

And why did you want to install that? Is there something you need which 4.0.6 is not able to do or just because 4.0.10 is "the latest"? If that is the case you should have a look at Cauldron - the stable release is not for you then.

Re: Can I install python 2.6 along side of 2.7?

PostPosted: Jun 28th, '11, 21:55
by broadstairs
How do I get a repository which will allow me to choose additional packages like this to add to my system. I dont want all unstable stuff only one or two carefully selected packages. Also VirtualBox is something which in itself is not unstable at the latest level, an extensive user of the product is likely to want the latest release as it fixes issues we have. However I dont want a completely unstable system, I want to be able to select packages carefully that fit my requirements. When I used Mandriva Oracle creates rpms for it which worked fine. Maybe Mageia should ask for the same.

Stuart

Re: Can I install python 2.6 along side of 2.7?

PostPosted: Jun 28th, '11, 22:27
by wobo
Well, you are always free to add any RPM you like from everywhere. But then it is on your own risk how stable/unstable your whole system will become. A distribution is a complete system where all components are balanced so that no single package puts functioning of another package in jeopardy. Enter a 3rd-party package - how would you know that the packager tested it thoroughly with your current system? It may work, it may not work. Your risk.