It means you are running it with a different python than you build
pyCuda against.
Apple's stock python is /usr/bin/python and MacPorts is
/opt/local/bin/python . (I might be a little bit off, I'm not on my Mac
right now). I don't know where EPD puts its python, but it probably
doesn't write over Apple's.
You can do 'which python' to see which python is your default (probably
Apple's unless your PATH was tweaked or if EPD has something like
MacPort's python_select).
When you run your program, you need to run with the appropriate python
binary. So, try the full path rather than just 'python'.
Good luck,
Evan
Amir wrote:
> After pycuda install on Macbook Pro Intel, NVidia 9600M GT,
> with EPD 4.0.30002 python distribution from Enthought and
> Mac OS X 10.5.5, I get the following error:
>
> $ python ./test_driver.py
> Fatal Python error: Interpreter not initialized (version mismatch?)
> Abort trap
>
> pycuda is from git. I installed boost two ways, 1.37 as
> described in the pycuda docs and 1.35 using MacPorts. There
> were no errors reported in the build process. My
> {DY}LD_LIBRARY_PATH seems to be correct (otherwise, I would
> get the same runtime errors as another post). Running the
> numpy and scipy test suites returned no errors. CUDA is 2.0
> downloaded from nvidia's site.
>
> Here is one of my siteconf.py (adapted from post by wohlegemuth):
>
> BOOST_INC_DIR = ['/opt/local/include/boost-1_35']
> BOOST_LIB_DIR = ['/opt/local/lib']
> BOOST_PYTHON_LIBNAME = ['boost_python-mt-1_35']
> CUDA_ROOT = '/usr/local/cuda'
> CUDADRV_LIB_DIR = ['/usr/local/cuda/lib']
> CUDADRV_LIBNAME = ['cuda']
> CXXFLAGS = ['-arch', 'i386']
> LDFLAGS = ['-arch', 'i386']
>
> I am unfamiliar with Mac OS, my 2nd day. A response to an earlier
> post by Evan Wies suggested a fix if python was installed
> using MacPorts. Does it apply here as well with EPD?
>
> Thanks.
>
>
> _______________________________________________
> PyCuda mailing list
> [email protected]
> http://tiker.net/mailman/listinfo/pycuda_tiker.net
>
_______________________________________________
PyCuda mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net