Installation problems | Problèmes à l'installation
Tofe, Friday 25 February 2011 à 10:10
|
|
Subscription date : 09 February 2008
Messages : 921
|
If some of our applets don't work with python 3, the right thing on Arch would be to change #/usr/bin/python to #/usr/bin/python2. If you change the symbolic link, it will make the whole system unstable, as the system is now migrated to python 3.
I'll also have a look tonight at the applet, to see how complicated it is to make it compatible with both versions.
Also, the 2.3.0-rc1 is out, and as soon as 2.3.0 will be out, I'll upgrade the cairo-dock and cairo-dock-plug-ins AUR packages.
@mattbe: on AUR, for bzr packages, the latest version in the repository is always retrieved and taken. Don't be fooled by the version number shown in AUR  |
Guest, Friday 25 February 2011 à 11:41
|
|
|
Thanks. I would appreciate if you kept us updated here. |
matttbe, Friday 25 February 2011 à 14:23
|
|
Subscription date : 24 January 2009
Messages : 12573
|
@Tofe: I think there are a few python script to convert a file coded for Python 2 to Python 3. I think there is also a Python module to create a code for both version.
EDIT: e.g. http://docs.python.org/library/2to3.html |
Lockheed, Saturday 19 March 2011 à 10:35
|
|
Subscription date : 13 January 2010
Messages : 72
|
Any news on support for Cardapio/Gnomenu or any other menu system? |
nochka85, Saturday 19 March 2011 à 10:44
|
|
Subscription date : 29 November 2007
Messages : 7408
|
Of course ! You have applets in the config :
- Lancelot
- Cardapio
- MintMenu
- GnoMenu
|
matttbe, Saturday 19 March 2011 à 10:54
|
|
Subscription date : 24 January 2009
Messages : 12573
|
I think that the dock should check if it's a python script and check if python2 binary if available... |
Lockheed, Saturday 19 March 2011 à 11:25
|
|
Subscription date : 13 January 2010
Messages : 72
|
nochka85 : Of course ! You have applets in the config :
- Lancelot
- Cardapio
- MintMenu
- GnoMenu
Of course I do, but they do not work. |
Subscription date : 13 January 2010
Messages : 72
|
This is the last thing that stops me from using Linux. I am sick of windows, please do something. |
matttbe, Monday 21 March 2011 à 14:23
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Don't use a distribution like this one (not a rolling release...)
This is the only one with python3 set as default and there are a few problems due to this choice... |
Subscription date : 13 January 2010
Messages : 72
|
I used to use Ubuntu for a year but got so fed up with non-rolling releases I went back to Windows.
Isn't there any workaround for this? |
Subscription date : 13 January 2010
Messages : 72
|
This is what Arch people have to say about this:
This is the typical bs/fud/similar. It is possible to modify cairo-dock to link correctly against python2, as with all other open source apps. And if cairo-dock is using hardcoded paths to python, then its really a issue that upstream should fix. You can never rely on "python" being any spesific version of python, it might not even be cPython at all. See http://allanmcrae.com/2010/10/big-python-transition-in-arch-linux/ and similar. |
Subscription date : 30 November 2007
Messages : 17118
|
the interpreter is defined on the first line of the applet (#!/bin/bash for instance)
there is no hard link, but you might want to modify it if you installed python yourself
applets are made to work with python2, because that's what we all have on our PCs (except maybe Matttbe who lives in the future ) |
Subscription date : 13 January 2010
Messages : 72
|
All I installed myself is default Arch. I did not modify it.
I created a hard link according to your earlier instructions but it did make a difference. |
matttbe, Monday 21 March 2011 à 23:16
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Can you modify the first line of our python scripts (all external applets and also the CDApplet.py file) by: |
Tofe, Wednesday 23 March 2011 à 17:34
|
|
Subscription date : 09 February 2008
Messages : 921
|
By the way, I agree with the Arch guy. We should modify our scripts so that they are started with the wanted version of python. Today they are only compatible with python 2, not python 1 nor python 3. So /usr/bin/python is a wrong choice, I guess.
Does /usr/bin/python2 exist on Ubuntu and Fedora too ? |
fabounet, Wednesday 23 March 2011 à 17:47
|
|
Subscription date : 30 November 2007
Messages : 17118
|
/usr/bin/python is a wrong choice, I guess.
I thought it was precisely the good one
what other choice do we have.
I'm more concerned about the changes we'll need to apply to ba able to run with python3 (I think I've read that print will need brackets ...) |
matttbe, Wednesday 23 March 2011 à 18:19
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Tofe : Does /usr/bin/python2 exist on Ubuntu and Fedora too ? No => Except python2.7 but it's not what we want to have...
I don't know what's the best solution...
- Switch to python3 (but I think that not all modules are available for python3...)
- Add #!/usr/bin/python2 but it will work only on Arch...
- Add a workaround into the code of cairo-dock in order to detect if it's python and try to force to use python2 if it's available
- Or something else...
|
Lockheed, Wednesday 23 March 2011 à 20:55
|
|
Subscription date : 13 January 2010
Messages : 72
|
So right now, what is my best choice? |
matttbe, Wednesday 23 March 2011 à 21:09
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Lockheed : So right now, what is my best choice? Did you try that? => Can you modify the first line of our python scripts (all external applets and also the CDApplet.py file) by: |
Tofe, Wednesday 23 March 2011 à 21:10
|
|
Subscription date : 09 February 2008
Messages : 921
|
Modifying the #!/usr/bin/python to #!/usr/bin/python2 seems the best option for you right now. |
Installation problems | Problèmes à l'installation
|