2014-01-28 3 views
0

У меня есть Enthought Canopy (версия 1.2.0.1610), встроенный в мою систему. Я пытаюсь войти на сервер Enthought. Моя система Ubuntu 13.10 x64, и я за корпоративным прокси, использующим протокол проверки подлинности NTLM. Для доступа к Интернету я использую прокси-сервер cntlm в своей системе. В настройках прошивки Enthought я установил прокси-сервер. И он проходит тест. Но, когда я пытаюсь войти в систему, он не регистрируется без ошибок. Я запускаю Canopy из командной строки, чтобы увидеть, есть ли ошибка, и я получил следующие ошибки.Соединение за прокси

Traceback (most recent call last): 
    File "build/bdist.linux-x86_64/egg/canopy/package_manager/package_manager_service.py", line 667, in _locked 
    File "build/bdist.linux-x86_64/egg/canopy/package_manager/package_manager_service.py", line 383, in update_addon_index 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/site-packages/enstaller/enpkg.py", line 182, in reconnect 
    self._connect() 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/site-packages/enstaller/enpkg.py", line 187, in _connect 
    self.remote.connect(self.userpass) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/joined.py", line 11, in connect 
    repo.connect(auth) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 18, in connect 
    self._index = self.get_index() 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 100, in get_index 
    fp = self.get_data('index.json?pypi=true') 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 124, in get_data 
    return self.opener.open(request) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/urllib2.py", line 400, in open 
    response = self._open(req, data) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/urllib2.py", line 418, in _open 
    '_open', req) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/urllib2.py", line 378, in _call_chain 
    result = func(*args) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/urllib2.py", line 1215, in https_open 
    return self.do_open(httplib.HTTPSConnection, req) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/urllib2.py", line 1174, in do_open 
    h.request(req.get_method(), req.get_selector(), req.data, headers) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 958, in request 
    self._send_request(method, url, body, headers) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 992, in _send_request 
    self.endheaders(body) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 954, in endheaders 
    self._send_output(message_body) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 814, in _send_output 
    self.send(msg) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 776, in send 
    self.connect() 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 1160, in connect 
    self._tunnel() 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 741, in _tunnel 
    (version, code, message) = response._read_status() 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 371, in _read_status 
    raise BadStatusLine(line) 
BadStatusLine: '' 
'' 
Traceback (most recent call last): 
    File "build/bdist.linux-x86_64/egg/canopy/package_manager/package_manager_service.py", line 667, in _locked 
    File "build/bdist.linux-x86_64/egg/canopy/package_manager/package_manager_service.py", line 383, in update_addon_index 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/site-packages/enstaller/enpkg.py", line 182, in reconnect 
    self._connect() 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/site-packages/enstaller/enpkg.py", line 187, in _connect 
    self.remote.connect(self.userpass) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/joined.py", line 11, in connect 
    repo.connect(auth) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 18, in connect 
    self._index = self.get_index() 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 100, in get_index 
    fp = self.get_data('index.json?pypi=true') 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/site-packages/enstaller/store/indexed.py", line 124, in get_data 
    return self.opener.open(request) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/urllib2.py", line 400, in open 
    response = self._open(req, data) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/urllib2.py", line 418, in _open 
    '_open', req) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/urllib2.py", line 378, in _call_chain 
    result = func(*args) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/urllib2.py", line 1215, in https_open 
    return self.do_open(httplib.HTTPSConnection, req) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/urllib2.py", line 1174, in do_open 
    h.request(req.get_method(), req.get_selector(), req.data, headers) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 958, in request 
    self._send_request(method, url, body, headers) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 992, in _send_request 
    self.endheaders(body) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 954, in endheaders 
    self._send_output(message_body) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 814, in _send_output 
    self.send(msg) 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 776, in send 
    self.connect() 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 1160, in connect 
    self._tunnel() 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 741, in _tunnel 
    (version, code, message) = response._read_status() 
    File "/opt/Canopy/appdata/canopy-1.2.0.1610.rh5-x86_64/lib/python2.7/httplib.py", line 371, in _read_status 
    raise BadStatusLine(line) 
BadStatusLine: '' 

Я буду очень признателен за любую помощь. Спасибо ...

ответ

Смежные вопросы