[Chimera-users] Installing colorbrewer for Chimera Python
Paul Kibet Korir
pkorir at ebi.ac.uk
Tue Feb 16 04:31:15 PST 2016
OK. So I've managed to 'resolve' this. Though it will not work if I
install 'colorbrewer' on my system.
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)
That did it for me.
Paul
On 16/02/2016 12:08, Paul Kibet Korir wrote:
> Hi,
>
> 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.
>
> >>> import chimera
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File
> "/Applications/Chimera.app/Contents/Resources/share/chimera/__init__.py",
> line 73, in <module>
> import palettes
> File
> "/Applications/Chimera.app/Contents/Resources/share/chimera/palettes.py",
> line 103, in <module>
> _initPresets()
> File
> "/Applications/Chimera.app/Contents/Resources/share/chimera/palettes.py",
> line 95, in _initPresets
> from colorbrewer import ColorBrewer
> ImportError: cannot import name ColorBrewer
>
> 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).
>
> --
> With kind regards,
>
> *Paul K Korir, PhD*
> /Scientific Programmer/
> EMBL-EBI
> Main Building, A2-35,
> WTGC, Hinxton, Cambridge CB10 1SD
> P: +44 1223 49 44 22
> F: +44 1223 49 44 68
>
>
> _______________________________________________
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu
> Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
--
With kind regards,
*Paul K Korir, PhD*
/Scientific Programmer/
EMBL-EBI
Main Building, A2-35,
WTGC, Hinxton, Cambridge CB10 1SD
P: +44 1223 49 44 22
F: +44 1223 49 44 68
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20160216/bc4dbe38/attachment.html>
More information about the Chimera-users
mailing list