Re: [COOT] 'Isolate' Coot's Python2.6 from Ubuntu system

2009-04-26 Thread Paul Emsley

Victor Alves wrote:

Dear all

I installed Coot with Python and GTK2 in Ubuntu Intrepid 8.10.

Ubuntu 8.10 has Python 2.5.

Since 'ccp4-others.setup' file points to Coot's directory when I check
'which python' I get version 2.6 (the one Coot provides).


Is there a way to isolate Coot's python from Ubuntu system but still
maintaining the ability to call Coot from the terminal? So that Ubuntu's
Python version would be the active one for all the system (except for Coot)?



Dear Victor,

Thank you for reporting this problem.

It is not unreasonable for ccp4's setup to add the coot binary directory 
to the path.  However, (as you have noted) Coot adds its built-in python 
to this directory - and we do that deliberately (but I don't see why, 
currently).  You could try to remove python, python-2.6, python-config 
and python-2.6-config from that directory and coot should still work fine.


Please try this out and let us know if there are problems, I will remove 
their addition to the binaries if there are not.


(Of course, Kay's solution also works - and I do something like that 
myself, which is why I have not seen this problem).


Regards,

Paul.


[COOT] 'Isolate' Coot's Python2.6 from Ubuntu system

2009-04-25 Thread Victor Alves
Dear all

I installed Coot with Python and GTK2 in Ubuntu Intrepid 8.10.

Ubuntu 8.10 has Python 2.5.

Since 'ccp4-others.setup' file points to Coot's directory when I check
'which python' I get version 2.6 (the one Coot provides).

Trying to install HPLIP (HP Linux version of drivers and software for
managing HP printers and scanners) I got an error, which I found later was
due to Python incompatibilities. Temporarily removing Coot from PATH allowed
me to install HPLIP with no problems. I re-enabled it again and no problems.

Now my question (newbie in Linux, I am):

Is there a way to isolate Coot's python from Ubuntu system but still
maintaining the ability to call Coot from the terminal? So that Ubuntu's
Python version would be the active one for all the system (except for Coot)?

Thank you in advance

Victor Alves

PS: Hope my non-native English is not too confusing.