+1

Issue with AttributeError: _tunnel_host in Package Control Install method

Ivan Zenteno 12 jaar geleden 0

I was trying to install Package with Package Control and the console showing a error like the next trace:

------cut------

Exception in thread Thread-3:

Traceback (most recent call last):

  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 522, in __bootstrap_inner

    self.run()

  File "./package_control/commands/install_package_command.py", line 43, in run

  File "./package_control/package_installer.py", line 54, in make_package_list

  File "./package_control/package_manager.py", line 189, in list_available_packages

  File "./package_control/package_manager.py", line 145, in list_repositories

  File "./package_control/providers/channel_provider.py", line 140, in get_repositories

  File "./package_control/providers/channel_provider.py", line 72, in fetch

  File "./package_control/download_manager.py", line 179, in fetch

  File "./package_control/downloaders/urllib_downloader.py", line 110, in download

  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 383, in open

    response = self._open(req, data)

  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 401, in _open

    '_open', req)

  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 361, in _call_chain

    result = func(*args)

  File "./package_control/http/validating_https_handler.py", line 44, in https_open

  File "./package_control/http/persistent_handler.py", line 70, in do_open

  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 215, in __getattr__

    raise AttributeError, attr

AttributeError: _tunnel_host

-------cut-----


As you can see I'm using Python 2.6.1, so I saw the file package_control/http/persistent_handler.py line 70, and it's correct the req param doesn't have the attribute _tunnel_host.

Adding the next validation was corrected for this time.


I don't know if you have any other way to resolv this?

<code>

70:  if hasattr(self, "_tunnel_host") and self._tunnel_host and req._tunnel_host and not self.connection:

</code>



Regards