def _status(self, timeout=0.05):
"""Check the socket status, returns True if it is operable
"""
check = 'that you can connect to your localhost'
addr = '("localhost", {})'.format(self.interpreter.port)
if sublime.platform() != 'windows':
check = (
'that the Unix Domain Socket file {} exists and that you can '
'connect to it'
).format(self.interpreter.host)
addr = self.interpreter.host
self.tip = (
'check that there is Python process executing the anaconda '
'jsonserver.py script running in your system. If there is, check '
'{} writing the following script in your Sublime Text 3 console:'
'\n\nimport socket; socket.socket(socket.AF_INET, '
'socket.SOCK_STREAM).connect({})\n\nIf anaconda works just fine '
'after you received this error and the command above worked you '
'can make anaconda to do not show you this error anymore setting '
'the \'swallow_startup_errors\' to \'true\' in your '
'configuration file.'.format(check, addr)
)
return super(LocalWorker, self)._status(timeout)
评论列表
文章目录