<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
OK. So I've managed to 'resolve' this. Though it will not work if I
install 'colorbrewer' on my system.<br>
<br>
The solution is to set a .pth file in the system site-packages
folder e.g. chimera.pth with the path to Chimera site-packages (e.g.
/Applications/Chimera.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages)<br>
<br>
That did it for me.<br>
<br>
Paul<br>
<br>
<div class="moz-cite-prefix">On 16/02/2016 12:08, Paul Kibet Korir
wrote:<br>
</div>
<blockquote cite="mid:56C31120.8010701@ebi.ac.uk" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
Hi,<br>
<br>
I want to use the chimera API and I've managed to configure a
successful import of chimera except that I get that colorbrewer is
not installed. <br>
<br>
>>> import chimera<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>
File
"/Applications/Chimera.app/Contents/Resources/share/chimera/__init__.py",
line 73, in <module><br>
import palettes<br>
File
"/Applications/Chimera.app/Contents/Resources/share/chimera/palettes.py",
line 103, in <module><br>
_initPresets()<br>
File
"/Applications/Chimera.app/Contents/Resources/share/chimera/palettes.py",
line 95, in _initPresets<br>
from colorbrewer import ColorBrewer<br>
ImportError: cannot import name ColorBrewer<br>
<br>
What is the right way to go about this? (I could create a symbolic
link to my system colorbrewer, but that doesn't seem clean).<br>
<br>
<div class="moz-signature">-- <br>
With kind regards,<br>
<br>
<strong>Paul K Korir, PhD</strong><br>
<i>Scientific Programmer</i><br>
EMBL-EBI<br>
Main Building, A2-35,<br>
WTGC, Hinxton, Cambridge CB10 1SD<br>
P: +44 1223 49 44 22<br>
F: +44 1223 49 44 68</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Chimera-users mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a>
Manage subscription: <a class="moz-txt-link-freetext" href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
With kind regards,<br>
<br>
<strong>Paul K Korir, PhD</strong><br>
<i>Scientific Programmer</i><br>
EMBL-EBI<br>
Main Building, A2-35,<br>
WTGC, Hinxton, Cambridge CB10 1SD<br>
P: +44 1223 49 44 22<br>
F: +44 1223 49 44 68</div>
</body>
</html>