Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

...still starting up... #2

Open
tnat1031 opened this issue Sep 24, 2012 · 1 comment
Open

...still starting up... #2

tnat1031 opened this issue Sep 24, 2012 · 1 comment

Comments

@tnat1031
Copy link

Hello,

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?

Thank you very much.

@gavin-s-smith
Copy link

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())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants