[Bug 1643164] Re: ProtocolError:

2020-08-30 Thread Kai Kasurinen
*** This bug is a duplicate of bug 1418592 ***
https://bugs.launchpad.net/bugs/1418592

** This bug has been marked a duplicate of bug 1418592
   Unpatched CVEs in 12.04

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1643164

Title:
  ProtocolError: 

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1643164/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1643164] Re: ProtocolError:

2018-01-22 Thread Eberhard Leba
The whole workaround as a sort of patch for the current 7.11 release:

--- /usr/lib/python3/dist-packages/pip/download.py.orig 2018-01-22 
11:02:16.055788573 +0100
+++ /usr/lib/python3/dist-packages/pip/download.py  2018-01-22 
11:58:11.571880912 +0100
@@ -22,7 +22,7 @@
'unpack_file_url', 'is_vcs_url', 'is_file_url', 'unpack_http_url']
 
 
-xmlrpclib_transport = xmlrpclib.Transport()
+xmlrpclib_transport = xmlrpclib.SafeTransport()

--- /usr/lib/python3/dist-packages/pip/commands/search.py.orig  2018-01-22 
11:00:45.283786471 +0100
+++ /usr/lib/python3/dist-packages/pip/commands/search.py   2018-01-22 
11:01:21.015784662 +0100
@@ -22,7 +22,7 @@
 '--index',
 dest='index',
 metavar='URL',
-default='http://pypi.python.org/pypi',
+default='https://pypi.python.org/pypi',
 help='Base URL of Python Package Index (default %default)')
 
 def run(self, options, args):

--- /usr/lib/python3/dist-packages/pip/commands/install.py.orig 2018-01-22 
12:06:42.479898296 +0100
+++ /usr/lib/python3/dist-packages/pip/commands/install.py  2018-01-22 
12:07:43.315900300 +0100
@@ -49,7 +49,7 @@
 '-i', '--index-url', '--pypi-url',
 dest='index_url',
 metavar='URL',
-default='http://pypi.python.org/simple/',
+default='https://pypi.python.org/simple/',
 help='Base URL of Python Package Index (default %default)')
 self.parser.add_option(
 '--extra-index-url',


The latter was missing in the previous comment and is required in case of an 
install.
Maybe secure transport may also be needed in other places too, but on my system 
installing worked after this patch.

As of today the fix of this problem is still required for the 7.X LTS
branch at least.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1643164

Title:
  ProtocolError: 

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1643164/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1643164] Re: ProtocolError:

2017-05-18 Thread Dom
Working on Debian 7.11 for RPI, I came across this bug with pip-3.2.
I tracked it down to the dowload.py module from pip that instantiate an HTTP 
transport by default.

Later on, this default transport will make it to the client, which will
inspect the URL to determine what type of transport to allocate, but
since one is already passed down, it will not reallocate it. So one
workaround here is to add "transport=None" just before the check to
force it to reallocate it.

Another work around could be to allocate a SafeTransport by default
(that's how I fix my system ).

In the first workaround, it's required to also update the default URL in

/usr/lib/python3/dist-packages/pip/commands/search.py

from "http://...; to "https://...;

===

/usr/lib/python3/dist-packages/pip/download.py

---> xmlrpclib_transport = xmlrpclib.SafeTransport()

/usr/lib/python3.2/xmlrpc/client.py

def __init__(self, uri, transport=None, encoding=None, verbose=False,
 allow_none=False, use_datetime=False):
# establish a "logical" server connection   




  

# get the url   




  
--->transport=None  




 
print("2>",uri)
import urllib.parse
type, uri = urllib.parse.splittype(uri)
print("1>",uri,type)
if type not in ("http", "https"):
raise IOError("unsupported XML-RPC protocol")
self.__host, self.__handler = urllib.parse.splithost(uri)
if not self.__handler:
self.__handler = "/RPC2"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1643164

Title:
  ProtocolError: 

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1643164/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1643164] Re: ProtocolError:

2016-12-27 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: python-pip (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1643164

Title:
  ProtocolError: 

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1643164/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs