> For what it's worth, when I installed PyOpenCL I was unable to get > Boost to link against the correct python (even after manually > modifying the Darwin target information in the Boost distribution), > but because 2.6.1 and 2.6.4 are API compatible I was able to use > "install_name_tool" to relink it against the correct one after it had > installed.
Thanks Matthew, this helped me installed PyCUDA on my Snow Leopard with boost-1.42. I updated the wiki here: http://wiki.tiker.net/PyCuda/Installation/Mac#Fatal_Python_error:_Interpreter_not_initialized_.28version_mismatch.3F.29 Cheers, N > > -Matt≈ > > On Wed, Nov 4, 2009 at 5:08 AM, Dwight Bell <[email protected]> wrote: >> Thanks for the tip, otool does show that my Boost library is using 2.6.1. I >> had tried to redirect the System Python to the 2.6.4 version and rebuild >> Boost, but Boost is still using 2.6.1. >> Thanks, >> ... Dwight >> >> ________________________________ >> From: Randy Heiland <[email protected]> >> To: Dwight Bell <[email protected]> >> Cc: "[email protected]" <[email protected]> >> Sent: Wed, November 4, 2009 5:26:11 AM >> Subject: Re: [PyCUDA] pycuda make error >> >> I'm guessing you've mixed different versions of Python in your build >> process. E.g. you say you're running 2.6.4, yet the default System Python >> for OSX 10.6.1 is 2.6.1 I think. One thing you might check is the version >> of Python that was used for your Boost: >> >> % otool -L libboost_python.dylib >> >> And of course another thing to check is your sys.path to see what all it >> knows about: >>>>> import sys >>>>> sys.path >> ... >> >> hth, Randy >> >> On Nov 3, 2009, at 10:07 PM, Dwight Bell wrote: >> >>> Thanks for the help, I was able to get through the make and setup >>> process without errors. >>> >>> When I tried to test with "python test_driver.py" I got this message: >>> >>> Fatal Python error: Interpreter not initialized (version mismatch?) >>> Abort trap >>> >>> and python crashed. >>> >>> Any ideas on how to determine what is causing this problem? I'm >>> running python 2.6.4 on MacOSX 10.6.1 >>> >>> Thanks, >>> ... Dwight >>> >>> On Nov 3, 2009, at 8:43 AM, Andreas Klöckner wrote: >>> >>>> Hey Dwight, >>>> >>>> I've written a whole Wiki page about this stuff, here: >>>> http://wiki.tiker.net/DistributeVsSetuptools >>>> >>>> I'll link it from the FAQ. >>>> >>>> HTH, >>>> Andreas >>>> >>>> On Montag 02 November 2009, Dwight Bell wrote: >>>>> I'm trying to install pycuda on Max OS X 10.6.1 and got the following >>>>> error: >>>>> >>>>> dbmacpro:make -j 4 >>>>> ctags -R src || true >>>>> ctags: illegal option -- R >>>>> usage: ctags [-BFadtuwvx] [-f tagsfile] file ... >>>>> /Library/Frameworks/Python.framework/Versions/2.6/Resources/ >>>>> Python.app/ >>>>> Contents/MacOS/Python setup.py build >>>>> /Users/dbelll/src/pycuda-0.93/ez_setup.py:93: UserWarning: Module >>>>> pkg_resources was already imported from /Users/dbelll/src/ >>>>> pycuda-0.93/ >>>>> pkg_resources.pyc, but /Library/Frameworks/Python.framework/Versions/ >>>>> 2.6/lib/python2.6/site-packages/distribute-0.6.8-py2.6.egg is being >>>>> added to sys.path >>>>> import pkg_resources >>>>> /Users/dbelll/src/pycuda-0.93/ez_setup.py:93: UserWarning: Module >>>>> site >>>>> was already imported from /Library/Frameworks/Python.framework/ >>>>> Versions/2.6/lib/python2.6/site.pyc, but /Library/Frameworks/ >>>>> Python.framework/Versions/2.6/lib/python2.6/site-packages/ >>>>> distribute-0.6.8-py2.6.egg is being added to sys.path >>>>> import pkg_resources >>>>> /Users/dbelll/local/include/boost-1_39 /boost/ python .hpp >>>>> /Users/dbelll/local/lib / lib boost_python-xgcc40-mt .so >>>>> /Users/dbelll/local/lib / lib boost_python-xgcc40-mt .dylib >>>>> /Users/dbelll/local/lib / lib boost_thread-xgcc40-mt .so >>>>> /Users/dbelll/local/lib / lib boost_thread-xgcc40-mt .dylib >>>>> /usr/local/cuda /bin/ nvcc >>>>> /usr/local/cuda/include / cuda .h >>>>> /usr/local/cuda/lib / lib cuda .so >>>>> /usr/local/cuda/lib / lib cuda .dylib >>>>> running build >>>>> running build_py >>>>> running build_ext >>>>> >>>>> -------------------------------------------------------------------------- >>>>> Sorry, your build failed. Try rerunning configure with different >>>>> options. >>>>> >>>>> -------------------------------------------------------------------------- >>>>> Traceback (most recent call last): >>>>> File "setup.py", line 325, in <module> >>>>> main() >>>>> File "setup.py", line 317, in main >>>>> ("include/cuda", glob.glob("src/cuda/*.hpp")) >>>>> File "/Users/dbelll/src/pycuda-0.93/aksetup_helper.py", line 12, in >>>>> setup >>>>> setup(*args, **kwargs) >>>>> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ >>>>> python2.6/distutils/core.py", line 152, in setup >>>>> dist.run_commands() >>>>> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ >>>>> python2.6/distutils/dist.py", line 975, in run_commands >>>>> self.run_command(cmd) >>>>> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ >>>>> python2.6/distutils/dist.py", line 995, in run_command >>>>> cmd_obj.run() >>>>> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ >>>>> python2.6/distutils/command/build.py", line 134, in run >>>>> self.run_command(cmd_name) >>>>> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ >>>>> python2.6/distutils/cmd.py", line 333, in run_command >>>>> self.distribution.run_command(command) >>>>> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ >>>>> python2.6/distutils/dist.py", line 995, in run_command >>>>> cmd_obj.run() >>>>> File "/Users/dbelll/src/pycuda-0.93/setuptools/command/ >>>>> build_ext.py", line 46, in run >>>>> _build_ext.run(self) >>>>> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ >>>>> python2.6/distutils/command/build_ext.py", line 340, in run >>>>> self.build_extensions() >>>>> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ >>>>> python2.6/distutils/command/build_ext.py", line 449, in >>>>> build_extensions >>>>> self.build_extension(ext) >>>>> File "/Users/dbelll/src/pycuda-0.93/setuptools/command/ >>>>> build_ext.py", line 175, in build_extension >>>>> _build_ext.build_extension(self,ext) >>>>> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ >>>>> python2.6/distutils/command/build_ext.py", line 460, in >>>>> build_extension >>>>> ext_path = self.get_ext_fullpath(ext.name) >>>>> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ >>>>> python2.6/distutils/command/build_ext.py", line 637, in >>>>> get_ext_fullpath >>>>> filename = self.get_ext_filename(ext_name) >>>>> File "/Users/dbelll/src/pycuda-0.93/setuptools/command/ >>>>> build_ext.py", line 85, in get_ext_filename >>>>> ext = self.ext_map[fullname] >>>>> KeyError: '_driver' >>>>> make: *** [all] Error 1 >>>>> dbmacpro: >>>>> >>>>> >>>>> My siteconf.py is: >>>>> >>>>> BOOST_INC_DIR = ['/Users/dbelll/local/include/boost-1_39'] >>>>> BOOST_LIB_DIR = ['/Users/dbelll/local/lib'] >>>>> BOOST_COMPILER = 'gcc43' >>>>> BOOST_PYTHON_LIBNAME = ['boost_python-xgcc40-mt'] >>>>> BOOST_THREAD_LIBNAME = ['boost_thread-xgcc40-mt'] >>>>> CUDA_TRACE = False >>>>> CUDA_ROOT = '/usr/local/cuda' >>>>> CUDA_ENABLE_GL = False >>>>> CUDADRV_LIB_DIR = [] >>>>> CUDADRV_LIBNAME = ['cuda'] >>>>> CXXFLAGS = [] >>>>> LDFLAGS = [] >>>>> >>>>> Has anyone run into this same problem? Any suggestions on what to >>>>> try >>>>> would be appreciated. >>>>> >>>>> ... Dwight Bell >>>>> >>>> >>>> _______________________________________________ >>>> 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 >> >> >> _______________________________________________ >> 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 > -- Nicolas Pinto Ph.D. Candidate, Brain & Computer Sciences Massachusetts Institute of Technology, USA http://web.mit.edu/pinto _______________________________________________ PyCUDA mailing list [email protected] http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net
