2008/11/28 Greg Landrum <[email protected]>:
> On Thu, Nov 27, 2008 at 10:34 PM, Noel O'Boyle <[email protected]> wrote:
>> than installs them. The Sytem Python comes with PIL, Tkinter,
>> wxPython, Numpy and Matplotlib. And that's it. There doesn't seem to
>> be a package manager for Macs. So if you want any other extensions
>> you're out of luck.
>
> For what it's worth, easy_install seems to work without problems using
> the system python. That, of course, doesn't help you if a package
> isn't available via easy_install.
>
>> And fink unstable is the only choice for pycairo
>> for MacOSX on an Intel.
>
> hmm, I wonder:
> ~ $ sudo easy_install pycairo
> Password:
> Searching for pycairo
> Reading http://pypi.python.org/simple/pycairo/
> Reading http://www.cairographics.org/pycairo
> Reading http://cairographics.org/releases/
> Best match: pycairo 1.6.4
> Downloading http://cairographics.org/releases/pycairo-1.6.4.tar.gz
> Processing pycairo-1.6.4.tar.gz
> Running pycairo-1.6.4/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-sVFG8W/pycairo-1.6.4/egg-dist-tmp-XART3x
> cairo >= 1.6.4 detected
> creating pycairo.pc
> zip_safe flag not set; analyzing archive contents...
> Adding pycairo 1.6.4 to easy-install.pth file
>
> Installed 
> /Library/Python/2.5/site-packages/pycairo-1.6.4-py2.5-macosx-10.5-i386.egg
> Processing dependencies for pycairo
> Finished processing dependencies for pycairo
> ~ $ python
> Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import cairo
>>>>
>
> Seems to work.

But, but, but...where did cairo come from? Was it already there? If
true, then it's problem solved.

>> Apparently it's a misnomer, but whatever, it's
>> the only choice. It all compiles beautifully and works though. If I
>> could just get RDKit working too...
>
> Let's see if we can diagnose it. Is it just Chem that leads to the
> crash, or do you see the same thing when you do the simplest possible
> RDKit extension module import: "import rdBase"
> If you do see a crash there, please send along the output of : 'otool
> -L $RDBASE/Python/rdBase.so'
> Otherwise, try running python -v and doing the Chem import, then at
> least you will see which specific piece of Chem is causing the crash.

Will do. It'll be late next week though before I see the Mac again.

> -greg
>

Reply via email to