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

Cannot connect with tls_mode='on' #332

Open
DanielSank opened this issue Jun 20, 2017 · 1 comment
Open

Cannot connect with tls_mode='on' #332

DanielSank opened this issue Jun 20, 2017 · 1 comment
Labels

Comments

@DanielSank
Copy link
Member

In [4]: cxn = labrad.connect(host='computername.domain.edu', tls_mode='on')
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-4-4abc5b13e0a1> in <module>()
----> 1 cxn = labrad.connect(host='computername.domain.edu', tls_mode='on')

/usr/local/google/home/danielsank/.virtualenvs/labrad/local/lib/python2.7/site-packages/labrad/__init__.pyc in connect(host, port, name, **kw)
     22 def connect(host=constants.MANAGER_HOST, port=None, name=None, **kw):
     23     """Create a client connection to the labrad manager."""
---> 24     cxn = backend.connect(host=host, port=port, name=name, **kw)
     25     return client.Client(cxn)
     26 

/usr/local/google/home/danielsank/.virtualenvs/labrad/local/lib/python2.7/site-packages/labrad/backend.pyc in connect(host, port, name, timeout, **kw)
     84     thread.startReactor()
     85     future = concurrent.call_future(getConnection, host, port, name, **kw)
---> 86     cxn = future.result(timeout=timeout)
     87 
     88     return TwistedConnection(cxn)

/usr/local/google/home/danielsank/.virtualenvs/labrad/local/lib/python2.7/site-packages/concurrent/futures/_base.pyc in result(self, timeout)
    427                 raise CancelledError()
    428             elif self._state == FINISHED:
--> 429                 return self.__get_result()
    430             else:
    431                 raise TimeoutError()

/usr/local/google/home/danielsank/.virtualenvs/labrad/local/lib/python2.7/site-packages/concurrent/futures/_base.pyc in __get_result(self)
    379             else:
    380                 exception_type = type(self._exception)
--> 381             raise exception_type, self._exception, self._traceback
    382         else:
    383             return self._result

AttributeError: LabradProtocol instance has no attribute 'manager_features'
@DanielSank DanielSank added the bug label Jun 20, 2017
@DanielSank
Copy link
Member Author

I think this is happening because I'm connecting to a legacy manager. If so, the exception message should suggest this.

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

No branches or pull requests

1 participant