{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/notebook/issues/1493","repository_url":"https://api.github.com/repos/jupyter/notebook","labels_url":"https://api.github.com/repos/jupyter/notebook/issues/1493/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/notebook/issues/1493/comments","events_url":"https://api.github.com/repos/jupyter/notebook/issues/1493/events","html_url":"https://github.com/jupyter/notebook/issues/1493","id":157051937,"number":1493,"title":"library problem with ImageMagick","user":{"login":"poldrack","id":871056,"avatar_url":"https://avatars.githubusercontent.com/u/871056?v=3","gravatar_id":"","url":"https://api.github.com/users/poldrack","html_url":"https://github.com/poldrack","followers_url":"https://api.github.com/users/poldrack/followers","following_url":"https://api.github.com/users/poldrack/following{/other_user}","gists_url":"https://api.github.com/users/poldrack/gists{/gist_id}","starred_url":"https://api.github.com/users/poldrack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poldrack/subscriptions","organizations_url":"https://api.github.com/users/poldrack/orgs","repos_url":"https://api.github.com/users/poldrack/repos","events_url":"https://api.github.com/users/poldrack/events{/privacy}","received_events_url":"https://api.github.com/users/poldrack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-26T18:47:07Z","updated_at":"2016-05-26T19:24:29Z","closed_at":null,"body":"I have a notebook that worked several months ago but is now failing, due to problems with the ImageMagick library being read by the wand package.  Same problems occur for both python 2.7 and 3.5 (using anaconda).  The following works fine in ipython console:\r\n\r\n(py3k)Russells-MBP:$ ipython\r\nPython 3.5.1 |Continuum Analytics, Inc.| (default, Dec  7 2015, 11:24:55)\r\nIPython 4.2.0 -- An enhanced Interactive Python.\r\n\r\nIn [1]: import wand.api\r\n(no errors reported)\r\n\r\nHowever, running the same import command under Jupyter (4.1.0) notebook I get the following error:\r\n\r\n---------------------------------------------------------------------------\r\nOSError                                   Traceback (most recent call last)\r\n/Users/poldrack/anaconda/envs/py3k/lib/python3.5/site-packages/wand/api.py in <module>()\r\n    178 try:\r\n--> 179     libraries = load_library()\r\n    180 except (OSError, IOError):\r\n\r\n/Users/poldrack/anaconda/envs/py3k/lib/python3.5/site-packages/wand/api.py in load_library()\r\n    133         return libwand, libmagick\r\n--> 134     raise IOError('cannot find library; tried paths: ' + repr(tried_paths))\r\n    135 \r\n\r\nOSError: cannot find library; tried paths: []\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nImportError                               Traceback (most recent call last)\r\n<ipython-input-2-a5cdecdc3dd8> in <module>()\r\n----> 1 import wand.api\r\n\r\n/Users/poldrack/anaconda/envs/py3k/lib/python3.5/site-packages/wand/api.py in <module>()\r\n    203     raise ImportError('MagickWand shared library not found.\\n'\r\n    204                       'You probably had not installed ImageMagick library.\\n'\r\n--> 205                       'Try to install:\\n  ' + msg)\r\n    206 \r\n    207 #: (:class:`ctypes.CDLL`) The MagickWand library.\r\n\r\nImportError: MagickWand shared library not found.\r\nYou probably had not installed ImageMagick library.\r\nTry to install:\r\n  brew install freetype imagemagick\r\n\r\nI have confirmed that both are running the same executable using sys.executable\r\n\r\nIt seems that the library is visible to the ipython console:\r\n\r\nIn [4]: ctypes.util.find_library('MagickWand-6.Q16')\r\nOut[4]: '/usr/local/lib/libMagickWand-6.Q16.dylib'\r\n\r\nbut not to jupyter (no output from same command).  \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jupyter/notebook/issues/comments/221969146","html_url":"https://github.com/jupyter/notebook/issues/1493#issuecomment-221969146","issue_url":"https://api.github.com/repos/jupyter/notebook/issues/1493","id":221969146,"user":{"login":"poldrack","id":871056,"avatar_url":"https://avatars.githubusercontent.com/u/871056?v=3","gravatar_id":"","url":"https://api.github.com/users/poldrack","html_url":"https://github.com/poldrack","followers_url":"https://api.github.com/users/poldrack/followers","following_url":"https://api.github.com/users/poldrack/following{/other_user}","gists_url":"https://api.github.com/users/poldrack/gists{/gist_id}","starred_url":"https://api.github.com/users/poldrack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poldrack/subscriptions","organizations_url":"https://api.github.com/users/poldrack/orgs","repos_url":"https://api.github.com/users/poldrack/repos","events_url":"https://api.github.com/users/poldrack/events{/privacy}","received_events_url":"https://api.github.com/users/poldrack/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T19:24:29Z","updated_at":"2016-05-26T19:24:29Z","body":"forgot mention OS - Mac OS X 10.11.5"}}
{"actor":{"display_login":"poldrack"}}