Hi Bryan.

I'm not sure if this will help. I had issues when I tried to use
Python 2.5.4 since my Python header directory was pointing to OS X's
native headers from Python 2.5.1. When I installed Python 2.6.2, the
Python headers were contained in Python 2.6.2's framework directory.
This appeared to absolve the version mismatch error.

The header files are used by the Boost library. So when you point the
config file to Python for building it will look for the Python
headers. When I was building boost with Python 2.5.4, the header
directory in 2.5.4 was pointing to the Python 2.5.1 headers. This I
believe this is the error for the "Fatal Python error: Interpreter not
initialized (version mismatch?)". Can anyone else verify this?

In a nutshell, this is what I did:

1) Install Python 2.6.2.
2) Make sure Python2.6 header directory is not pointing to OS X's
python headers.
3) Build boost, pointing to the newly installed Python directory.
4) Install PyCUDA

Cheers,

Eli



On Wed, Jun 24, 2009 at 2:32 AM, Bryan
Catanzaro<[email protected]> wrote:
> Hello all -
> I'm trying to install PyCuda on OS X 10.5, using Python 2.6 (unfortunately,
> I can't use 2.5 in the project I'm working on.)
> Has anyone successfully installed it with this configuration?  It seems to
> build successfully, but when I try to import pycuda.driver, the python
> interpreter aborts with an error message:
> Fatal Python error: Interpreter not initialized (version mismatch?)
>
> I believe I'm building PyCuda with the Python 2.6 include files, so I'm not
> sure where the version mismatch is coming.  Perhaps from the python boost
> library?  Has anyone seen this error before?
>
> Thanks,
> bryan
>
> _______________________________________________
> 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

Reply via email to