{"action":"created","issue":{"url":"https://api.github.com/repos/OpenChemistry/tomviz-superbuild/issues/93","repository_url":"https://api.github.com/repos/OpenChemistry/tomviz-superbuild","labels_url":"https://api.github.com/repos/OpenChemistry/tomviz-superbuild/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/OpenChemistry/tomviz-superbuild/issues/93/comments","events_url":"https://api.github.com/repos/OpenChemistry/tomviz-superbuild/issues/93/events","html_url":"https://github.com/OpenChemistry/tomviz-superbuild/issues/93","id":134109371,"number":93,"title":"Error when calling scipy functions","user":{"login":"yijiang1","id":13088588,"avatar_url":"https://avatars.githubusercontent.com/u/13088588?v=3","gravatar_id":"","url":"https://api.github.com/users/yijiang1","html_url":"https://github.com/yijiang1","followers_url":"https://api.github.com/users/yijiang1/followers","following_url":"https://api.github.com/users/yijiang1/following{/other_user}","gists_url":"https://api.github.com/users/yijiang1/gists{/gist_id}","starred_url":"https://api.github.com/users/yijiang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yijiang1/subscriptions","organizations_url":"https://api.github.com/users/yijiang1/orgs","repos_url":"https://api.github.com/users/yijiang1/repos","events_url":"https://api.github.com/users/yijiang1/events{/privacy}","received_events_url":"https://api.github.com/users/yijiang1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-02-16T22:04:38Z","updated_at":"2016-02-17T18:18:02Z","closed_at":null,"body":"The current nightly binaries generates errors when calling scipy functions (on Mac).\r\n\r\nTo reproduce:\r\n1. Load a sample data\r\n2. Do a data transform that uses scipy function (say Downsample by 2)\r\nFailed to execute the script. (:0, )\r\nTraceback (most recent call last):\r\n  File \"Downsample x2\", line 6, in transform_scalars\r\n  File \"/Applications/tomviz.app/Contents/Python/scipy/ndimage/__init__.py\", line 172, in <module>\r\n    from .filters import *\r\n  File \"/Applications/tomviz.app/Contents/Python/scipy/ndimage/filters.py\", line 35, in <module>\r\n    from . import _ni_support\r\nImportError: cannot import name _ni_support\r\n"},"comment":{"url":"https://api.github.com/repos/OpenChemistry/tomviz-superbuild/issues/comments/185332358","html_url":"https://github.com/OpenChemistry/tomviz-superbuild/issues/93#issuecomment-185332358","issue_url":"https://api.github.com/repos/OpenChemistry/tomviz-superbuild/issues/93","id":185332358,"user":{"login":"mathturtle","id":553788,"avatar_url":"https://avatars.githubusercontent.com/u/553788?v=3","gravatar_id":"","url":"https://api.github.com/users/mathturtle","html_url":"https://github.com/mathturtle","followers_url":"https://api.github.com/users/mathturtle/followers","following_url":"https://api.github.com/users/mathturtle/following{/other_user}","gists_url":"https://api.github.com/users/mathturtle/gists{/gist_id}","starred_url":"https://api.github.com/users/mathturtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathturtle/subscriptions","organizations_url":"https://api.github.com/users/mathturtle/orgs","repos_url":"https://api.github.com/users/mathturtle/repos","events_url":"https://api.github.com/users/mathturtle/events{/privacy}","received_events_url":"https://api.github.com/users/mathturtle/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T18:18:01Z","updated_at":"2016-02-17T18:18:01Z","body":"Oh.  This again.  The problem is that _ufuncs.so (one of the scipy fortran python extensions) links to these:\r\n```\r\n/usr/local/opt/gcc/lib/gcc/5/libgfortran.3.dylib\r\n/usr/local/opt/gcc/lib/gcc/5/libquadmath.0.dylib\r\n```\r\nBut `/usr/local/opt/gcc/lib/gcc/5/libgfortran.3.dylib` links to libquadmath at this path:\r\n```\r\n/usr/local/Cellar/gcc/5.3.0/lib/gcc/5/libquadmath.0.dylib\r\n```\r\n\r\nThe packaging script doesn't realize that the two libquadmaths are the same library and then the one that doesn't exist on the system isn't found since only the other is fixed by the scripts.  @utkarshayachit helped me figure this out last time, but I don't remember what we ended up doing to fix it.  I think we just used `install_name_tool` to change path the libquadmath in libgfortran.3.dylib.  It must have been overwritten by a change in brew..."}}