Strange:

I renamed the pyd file into .so file so ldd coud act:

x@gx2 /usr/lib/python2.7/site-packages/pyopencl
$ ls
__init__.py   _cluda.pyo       algorithm.pyc  cache.pyc         cl            
clrandom.pyo     reduction.pyc  tools.pyc
__init__.pyc  _mymako.py       algorithm.pyo  cache.pyo         clmath.py     
compyte          reduction.pyo  tools.pyo
__init__.pyo  _mymako.pyc      array.py       capture_call.py   clmath.pyc    
elementwise.py   scan.py        version.py
_cl.pyd       _mymako.pyo      array.pyc      capture_call.pyc  clmath.pyo    
elementwise.pyc  scan.pyc       version.pyc
_cluda.py     _pvt_struct.pyd  array.pyo      capture_call.pyo  clrandom.py   
elementwise.pyo  scan.pyo       version.pyo
_cluda.pyc    algorithm.py     cache.py       characterize      clrandom.pyc  
reduction.py     tools.py

x@gx2 /usr/lib/python2.7/site-packages/pyopencl
$ mv _cl.pyd _cl.so

x@gx2 /usr/lib/python2.7/site-packages/pyopencl
$ ldd _cl.so 
        ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x77600000)
        KERNEL32.DLL => /cygdrive/c/Windows/SYSTEM32/KERNEL32.DLL (0x75870000)
        KERNELBASE.dll => /cygdrive/c/Windows/SYSTEM32/KERNELBASE.dll 
(0x76e10000)
        apphelp.dll => /cygdrive/c/Windows/system32/apphelp.dll (0x74970000)

x@gx2 /usr/lib/python2.7/site-packages/pyopencl
$ python
Python 2.7.3 (default, Dec 18 2012, 13:50:09) 
[GCC 4.5.3] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyopencl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/pyopencl/__init__.py", line 28, in 
<module>
    import pyopencl._cl as _cl
ImportError: No module named _cl
>>> 


_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to