You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This looks like a very useful library and I would very much like to take advantage of it. However, I am having a problem getting it working. I am logging into a unix server via ssh. The server has installed 64 bit python version 2.6.5 and 64 bit matlab version 8.0.0.783. I start python and run the following commands:
from pymatbridge import Matlab
MLAB = Matlab(matlab='path_to_matlab')
MLAB.start()
after which the console simply outputs ...still starting up... endlessly. path_to_matlab is the path to the matlab executable, obtained by running 'which matlab'. Any idea what could be going wrong?
Activity
gavin-s-smith commentedon Nov 12, 2012
I had the same problem. In my case it was the fact I had a proxy for my system defined. The issue is discussed on stackoverflow here: http://stackoverflow.com/questions/7012227/python-urllib-and-urllib2-not-opening-localhost-urls
The solution is to change the method _open_page in pymatbridge to:
def _open_page(self, page_name, arguments={}, timeout=10):
self.running = True
proxy_support = urllib2.ProxyHandler({})
opener = urllib2.build_opener(proxy_support)
page = opener.open('%s/%s' % (self.server, page_name), urllib.urlencode(arguments), timeout)
self.running = False
return json.loads(page.read())
Merge pull request arokem#2 from shabbychef/master