{"action":"created","issue":{"url":"https://api.github.com/repos/arokem/python-matlab-bridge/issues/221","labels_url":"https://api.github.com/repos/arokem/python-matlab-bridge/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/arokem/python-matlab-bridge/issues/221/comments","events_url":"https://api.github.com/repos/arokem/python-matlab-bridge/issues/221/events","html_url":"https://github.com/arokem/python-matlab-bridge/issues/221","id":107464937,"number":221,"title":"Fail to start on RHEL (using the Canopy python distribution)","user":{"login":"yuvval","id":5911675,"avatar_url":"https://avatars.githubusercontent.com/u/5911675?v=3","gravatar_id":"","url":"https://api.github.com/users/yuvval","html_url":"https://github.com/yuvval","followers_url":"https://api.github.com/users/yuvval/followers","following_url":"https://api.github.com/users/yuvval/following{/other_user}","gists_url":"https://api.github.com/users/yuvval/gists{/gist_id}","starred_url":"https://api.github.com/users/yuvval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuvval/subscriptions","organizations_url":"https://api.github.com/users/yuvval/orgs","repos_url":"https://api.github.com/users/yuvval/repos","events_url":"https://api.github.com/users/yuvval/events{/privacy}","received_events_url":"https://api.github.com/users/yuvval/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-21T08:29:25Z","updated_at":"2015-09-21T16:06:46Z","closed_at":null,"body":"Hi,\r\n\r\nI've installed pymatbridge, while using the Canopy python distribution. I followed the instructions on how to install pip packages on canopy (from here: https://support.enthought.com/hc/en-us/articles/204469690-Installing-packages-into-Canopy-User-Python-from-the-OS-command-line).\r\n\r\nThen, running the following on the ipython notebook, fails to start:\r\n\r\n    from pymatbridge import Matlab\r\n    mlab = Matlab() # I also tried writing the explicit path/matlab \r\n\r\n    mlab.start()\r\n\r\nand results with:\r\n\r\n    Starting MATLAB on ZMQ socket ipc:///tmp/pymatbridge-65d47756-5dfc-4664-a666-233d18c23393\r\n    Send 'exit' command to kill the server\r\n    ............................................................MATLAB session timed out after 60 seconds\r\n    \r\n    ---------------------------------------------------------------------------\r\n    ValueError                                Traceback (most recent call last)\r\n    <ipython-input-2-da824633164b> in <module>()\r\n    ----> 1 mlab.start()\r\n          2 \r\n    \r\n    ~/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pymatbridge/pymatbridge.pyc in start(self)\r\n        223             return self\r\n        224         else:\r\n    --> 225             raise ValueError(\"%s failed to start\" % self._program_name())\r\n        226 \r\n        227     def _response(self, **kwargs):\r\n    \r\n    ValueError: MATLAB failed to start\r\n\r\n\r\nEDIT:\r\nLooking on the terminal console. Looks like ipython generates the following errors:\r\n\r\n    Invalid MEX-file\r\n    '~/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pymatbridge/matlab/messenger.mexa64':\r\n    /lib64/libc.so.6: version `GLIBC_2.17' not found (required by\r\n    ~/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pymatbridge/matlab/messenger.mexa64)\r\n\r\nThanks a lot for your assistance!\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/arokem/python-matlab-bridge/issues/comments/142028940","html_url":"https://github.com/arokem/python-matlab-bridge/issues/221#issuecomment-142028940","issue_url":"https://api.github.com/repos/arokem/python-matlab-bridge/issues/221","id":142028940,"user":{"login":"yuvval","id":5911675,"avatar_url":"https://avatars.githubusercontent.com/u/5911675?v=3","gravatar_id":"","url":"https://api.github.com/users/yuvval","html_url":"https://github.com/yuvval","followers_url":"https://api.github.com/users/yuvval/followers","following_url":"https://api.github.com/users/yuvval/following{/other_user}","gists_url":"https://api.github.com/users/yuvval/gists{/gist_id}","starred_url":"https://api.github.com/users/yuvval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuvval/subscriptions","organizations_url":"https://api.github.com/users/yuvval/orgs","repos_url":"https://api.github.com/users/yuvval/repos","events_url":"https://api.github.com/users/yuvval/events{/privacy}","received_events_url":"https://api.github.com/users/yuvval/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T16:06:46Z","updated_at":"2015-09-21T16:06:46Z","body":"I can't because I don't have root permissions :/\n\n\nOn Mon, Sep 21, 2015 at 6:33 PM, Ariel Rokem <notifications@github.com>\nwrote:\n\n> Oh boy! It looks like your compiler is not finding the zmq header anywhere.\n> Could you try to `yum install zeromq-devel` and run that again?\n>\n> On Mon, Sep 21, 2015 at 8:26 AM, yuvval <notifications@github.com> wrote:\n>\n> > Thanks.\n> >\n> > I've got errors while running make.py.\n> > Any Idea?\n> >\n> > Building messenger.mexa64...\n> > /private/uni/packages/matlab/R2014b/bin/mex -O -L. -I. -lzmq\n> ./src/messenger.c\n> >\n> ~/Downloads/arokem-python-matlab-bridge-641d5e7/pymatbridge/messenger/./src/messenger.c:5:17:\n> error: zmq.h: No such file or directory\n> >\n> ~/Downloads/arokem-python-matlab-bridge-641d5e7/pymatbridge/messenger/./src/messenger.c:\n> In function ‘initialize’:\n> >\n> ~/Downloads/arokem-python-matlab-bridge-641d5e7/pymatbridge/messenger/./src/messenger.c:18:\n> warning: assignment makes pointer from integer without a cast\n> >\n> ~/Downloads/arokem-python-matlab-bridge-641d5e7/pymatbridge/messenger/./src/messenger.c:19:\n> error: ‘ZMQ_REP’ undeclared (first use in this function)\n> >\n> ~/Downloads/arokem-python-matlab-bridge-641d5e7/pymatbridge/messenger/./src/messenger.c:19:\n> error: (Each undeclared identifier is reported only once\n> >\n> ~/Downloads/arokem-python-matlab-bridge-641d5e7/pymatbridge/messenger/./src/messenger.c:19:\n> error: for each function it appears in.)\n> >\n> ~/Downloads/arokem-python-matlab-bridge-641d5e7/pymatbridge/messenger/./src/messenger.c:\n> In function ‘mexFunction’:\n> >\n> ~/Downloads/arokem-python-matlab-bridge-641d5e7/pymatbridge/messenger/./src/messenger.c:102:\n> error: ‘zmq_pollitem_t’ undeclared (first use in this function)\n> >\n> ~/Downloads/arokem-python-matlab-bridge-641d5e7/pymatbridge/messenger/./src/messenger.c:102:\n> error: expected ‘;’ before ‘polls’\n> >\n> ~/Downloads/arokem-python-matlab-bridge-641d5e7/pymatbridge/messenger/./src/messenger.c:107:\n> error: ‘polls’ undeclared (first use in this function)\n> >\n> > Traceback (most recent call last):\n> > File \"make.py\", line 285, in <module>\n> > build_matlab(static=args.static)\n> > File \"make.py\", line 270, in build_matlab\n> > do_build(make_cmd, 'messenger.%s' % extension)\n> > File \"make.py\", line 178, in do_build\n> > subprocess.check_output(shlex.split(make_cmd), shell=use_shell)\n> > File\n> \"~/Canopy/appdata/canopy-1.5.5.3123.rh5-x86_64/lib/python2.7/subprocess.py\",\n> line 573, in check_output\n> > raise CalledProcessError(retcode, cmd, output=output)\n> > subprocess.CalledProcessError: Command '['\n> /private/uni/packages/matlab/R2014b/bin/mex', '-O', '-L.', '-I.', '-lzmq',\n> './src/messenger.c']' returned non-zero exit status 255\n> >\n> > —\n> > Reply to this email directly or view it on GitHub\n> > <\n> https://github.com/arokem/python-matlab-bridge/issues/221#issuecomment-142014933\n> >\n>\n> > .\n> >\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/arokem/python-matlab-bridge/issues/221#issuecomment-142016574>\n> .\n>\n"}}