maweigert / spimagine

GPU accelerated volume rendering / processing in Python
BSD 3-Clause "New" or "Revised" License
117 stars 17 forks source link

can we use Spimagine on Windows? #5

Closed buratono closed 8 years ago

buratono commented 9 years ago

Hi, I read the spimagine docs I see that it works on Mac and Linux. How is about Windows platform? Any hint? Thanks, Tom

maweigert commented 9 years ago

Should be running on windows likewise (it does here on a windows 7 workstation). Requirements are the same: 1) OpenCL 2) pyopencl / PyQt4 (I used the prebuilt binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/ )

Hope that helps, Martin

buratono commented 9 years ago

Hi Martin, Thank for your reply, I follow your instructions, at the final step, to install spimagine, I got the following problem (I use Anaconda python 2.7, Windows 7) spimagine_install_error

I try below suggestion, but it didn't help, https://github.com/maweigert/spimagine/issues/7

Can somebody help? Thanks, Tom

buratono commented 9 years ago

I fixed this bug: in file "setup.py", section "package_data": 'data/' should be corrected to 'data/*'

However, when I run samples I got another error:

Traceback (most recent call last): File "D:\Dropbox\Works\ectrack\spimagine\volume_renderer.py", line 40, in from gputools import init_device, get_device, OCLProgram, OCLArray, OCLImage File "C:\Anaconda\lib\site-packages\gputools-0.1.1-py2.7.egg\gputoolsinit.py", line 1, in from gputools.core.config import init_device, get_device File "C:\Anaconda\lib\site-packages\gputools-0.1.1-py2.7.egg\gputools\core\config.py", line 5, in import pyopencl File "C:\Anaconda\lib\site-packages\pyopenclinit.py", line 30, in import pyopencl._cl as _cl ImportError: DLL load failed: La procédure spécifiée est introuvable.

Can anyone help? Thanks Tom

maweigert commented 9 years ago

Hey Tom,

1) thanks for the hint within package_data, i fixed it and its now in the main repo.

2) the ImportError is related to pyopencl not being installed correctly (which is a requirement). Did you install it via http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyopencl ? If so, see if

$python -c "import pyopencl"

runs without error. If not, you might have to reinstall your nvidia sdk/opencl environment.

hope that helps, M

buratono commented 9 years ago

Hi Martin, Thank for your prompt reply, You're correct, I also guess my problem caused by driver/sdk. I installed pyopencl without any issue, but there was error when I import it, Now I'm reinstalling driver/sdk, Thanks for your help, Tom