Just for the archive, I did finally resolve my problem.  Summary:
1) be careful when you have multiple Python installations
2) be careful that you don't have a ~/.profile prepending your PATH with /Library/Frameworks/Python... if you don't want it there :)

I can now, finally, do:

Python 2.6 (r26:66714, Nov 14 2008, 14:37:46)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycuda.cumath
>>> ^D


But I did have to edit ez_setup.py, for my python2.6, to use:
DEFAULT_VERSION = "0.6c8"
-->
DEFAULT_VERSION = "0.6c9"

and edit the siteconf.py:
#BOOST_PYTHON_LIBNAME = ['boost_python-gcc42-mt']
BOOST_PYTHON_LIBNAME = ['boost_python-xgcc40-mt']

thanks for the replies,  Randy


On Dec 8, 2008, at 11:15 AM, Andreas Klöckner wrote:

On Montag 08 Dezember 2008, Randy Heiland wrote:
Andreas,

Thanks for the reply.  Unfortunately your suggested workaround didn't
work for me - I got the same error.  So, I took a different approach.
I decided to build a new Python (2.6, as I've been wanting to
experiment with some of its features anyway; osx leopard system python is 2.5). Then I built pycuda OK. But now I get the following problem:

[EMAIL PROTECTED]:~/Documents/workspace/pycuda/examples$ python2.6
Python 2.6.1 (r261:67515, Dec  5 2008, 18:56:13)
[GCC 4.2.1 (Apple Inc. build 5566)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import pycuda
import pycuda.cumath

Fatal Python error: Interpreter not initialized (version mismatch?)
Abort trap

Just thought I'd ask the list if the solution is obvious, while I
attempt to resolve it.  One idea is that the boost libs I built were
built using my system python rather than 2.6.  I don't yet understand
how boost is used for pycuda.

Bill Punch had the same problem. See his recent thread here:
http://is.gd/aHCk

Andreas



_______________________________________________
PyCuda mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net

Reply via email to