{"action":"created","issue":{"url":"https://api.github.com/repos/maweigert/spimagine/issues/1","labels_url":"https://api.github.com/repos/maweigert/spimagine/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/maweigert/spimagine/issues/1/comments","events_url":"https://api.github.com/repos/maweigert/spimagine/issues/1/events","html_url":"https://github.com/maweigert/spimagine/issues/1","id":90624021,"number":1,"title":"Spimagine and CPU (Ubuntu 14.04)","user":{"login":"paulmueller","id":2853022,"avatar_url":"https://avatars.githubusercontent.com/u/2853022?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmueller","html_url":"https://github.com/paulmueller","followers_url":"https://api.github.com/users/paulmueller/followers","following_url":"https://api.github.com/users/paulmueller/following{/other_user}","gists_url":"https://api.github.com/users/paulmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmueller/subscriptions","organizations_url":"https://api.github.com/users/paulmueller/orgs","repos_url":"https://api.github.com/users/paulmueller/repos","events_url":"https://api.github.com/users/paulmueller/events{/privacy}","received_events_url":"https://api.github.com/users/paulmueller/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-24T09:32:24Z","updated_at":"2015-06-24T11:31:50Z","closed_at":"2015-06-24T11:31:50Z","body":"I am using spimaging to display numpy arrays. Everything works when a GPU is available.\r\n\r\nThis is the python code that I am using:\r\n```python\r\nfrom spimagine import volshow, volfig\r\nfilename = \"somenumpyfile.npy\"\r\n\r\ndata = np.load(filename).real\r\nfig=volfig(0) \r\nvolshow(data) \r\n```\r\n\r\nMy laptop does not support OpenCL, so spimagine attempts to use the CPU:\r\n\r\n```\r\ncould not open /home/paul/.spimagine\r\n/home/paul/repos/paulm/programming/3Dvis/env_spimagine/local/lib/python2.7/site-packages/spimagine-0.1.1-py2.7.egg/spimagine/lib/czifile.py:123: UserWarning: failed to import the optional _czifile C extension module.\r\nDecoding of JXR and JPG encoded images will be unavailable.\r\nCzifile.pyx can be obtained at http://www.lfd.uci.edu/~gohlke/\r\n  \"failed to import the optional _czifile C extension module.\\n\"\r\nNo module named libtiff\r\ncould not import imgtools\r\nclGetDeviceIDs failed: device not found\r\ncould not find GPU OpenCL device -  trying CPU...\r\nINFO:PyOCL.OCLProcessor | using device: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz\r\nStack dump:\r\n0.\tRunning pass 'Intel OpenCL Vectorizer' on module 'Program'.\r\n1.\tRunning pass 'Intel OpenCL VectorizerCore' on function '@__Vectorized_.iso_surface'\r\n2.\tRunning pass 'PacketizeFunction' on function '@__Vectorized_.iso_surface'\r\nSegmentation fault (core dumped)\r\n```\r\n\r\nAny hints?"},"comment":{"url":"https://api.github.com/repos/maweigert/spimagine/issues/comments/114837075","html_url":"https://github.com/maweigert/spimagine/issues/1#issuecomment-114837075","issue_url":"https://api.github.com/repos/maweigert/spimagine/issues/1","id":114837075,"user":{"login":"paulmueller","id":2853022,"avatar_url":"https://avatars.githubusercontent.com/u/2853022?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmueller","html_url":"https://github.com/paulmueller","followers_url":"https://api.github.com/users/paulmueller/followers","following_url":"https://api.github.com/users/paulmueller/following{/other_user}","gists_url":"https://api.github.com/users/paulmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmueller/subscriptions","organizations_url":"https://api.github.com/users/paulmueller/orgs","repos_url":"https://api.github.com/users/paulmueller/repos","events_url":"https://api.github.com/users/paulmueller/events{/privacy}","received_events_url":"https://api.github.com/users/paulmueller/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T11:31:50Z","updated_at":"2015-06-24T11:31:50Z","body":"The issue is solved by removing pylibtiff (responsible for the [segmentation fault](https://code.google.com/p/pylibtiff/issues/detail?id=11)) and uncommenting these lines in `__init__.py`:\r\n\r\n```python\r\nfrom rl_deconv import deconv_RL\r\nfrom tv_deconv import deconv_tv3_gpu\r\n```\r\n\r\nAre you developing spimagine mainly here on github? I would like to create a pull-request for setup.py so that an installation on linux is more straight forward.\r\n\r\nCheers!\r\n"}}