[Bug 1743886] Re: TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

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

** This bug has been marked a duplicate of bug 1586859
   urllib3/util/retry.py broke on passing invalid type

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

Title:
  TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

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

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

[Bug 1743886] Re: TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

2019-07-25 Thread 张士杰
4 floor ++

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

Title:
  TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

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

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

[Bug 1743886] Re: TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

2018-05-28 Thread Marius Gedminas
** Description changed:

  I'm trying to build a Debian package that uses dh-python, pybuild, and
  tox.
  
  debuild -i runs dpkg-buildpackage, which runs debian/rules build, which
  runs dh build --with python2,python3 --buildsystem=pybuild, which runs
  dh_auto_test -O--buildsystem=pybuild, which runs tox -c .../tox.ini -e
  py27, which runs /usr/bin/python3 -m virtualenv --python
- /usr/bin/python2.7 py27, which fails with a traceback in .../pthurllib3:
- 
+ /usr/bin/python2.7 py27, which fails with a traceback in .../urllib3:
  
  Installing setuptools, pkg_resources, pip, wheel...
-   Complete output from command /home/mg/src/pov-ser...x/py27/bin/python2.7 - 
setuptools pkg_resources pip wheel:
-   Collecting setuptools
+   Complete output from command /home/mg/src/pov-ser...x/py27/bin/python2.7 - 
setuptools pkg_resources pip wheel:
+   Collecting setuptools
  Exception:
  Traceback (most recent call last):
-   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/basecommand.py", 
line 215, in main
- status = self.run(options, args)
-   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/commands/install.py",
 line 353, in run
- wb.build(autobuilding=True)
-   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/wheel.py", line 
749, in build
- self.requirement_set.prepare_files(self.finder)
-   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/req/req_set.py", 
line 380, in prepare_files
- ignore_dependencies=self.ignore_dependencies))
-   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/req/req_set.py", 
line 554, in _prepare_file
- require_hashes
-   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/req/req_install.py",
 line 278, in populate_link
- self.link = finder.find_requirement(self, upgrade)
-   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/index.py", line 
465, in find_requirement
- all_candidates = self.find_all_candidates(req.name)
-   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/index.py", line 
423, in find_all_candidates
- for page in self._get_pages(url_locations, project_name):
-   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/index.py", line 
568, in _get_pages
- page = self._get_page(location)
-   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/index.py", line 
683, in _get_page
- return HTMLPage.get_page(link, session=self.session)
-   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/index.py", line 
792, in get_page
- "Cache-Control": "max-age=600",
-   File 
"/home/mg/src/pov-server-page/pkgbuild/pov-server-page/.tox/py27/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py",
 line 501, in get
- return self.request('GET', url, **kwargs)
-   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/download.py", line 
386, in request
- return super(PipSession, self).request(method, url, *args, **kwargs)
-   File 
"/home/mg/src/pov-server-page/pkgbuild/pov-server-page/.tox/py27/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py",
 line 488, in request
- resp = self.send(prep, **send_kwargs)
-   File 
"/home/mg/src/pov-server-page/pkgbuild/pov-server-page/.tox/py27/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py",
 line 609, in send
- r = adapter.send(request, **kwargs)
-   File 
"/home/mg/src/pov-server-page/pkgbuild/pov-server-page/.tox/py27/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py",
 line 47, in send
- resp = super(CacheControlAdapter, self).send(request, **kw)
-   File 
"/home/mg/src/pov-server-page/pkgbuild/pov-server-page/.tox/py27/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py",
 line 423, in send
- timeout=timeout
-   File 
"/home/mg/src/pov-server-page/pkgbuild/pov-server-page/.tox/py27/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py",
 line 643, in urlopen
- _stacktrace=sys.exc_info()[2])
-   File 
"/home/mg/src/pov-server-page/pkgbuild/pov-server-page/.tox/py27/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py",
 line 315, in increment
- total -= 1
+   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/basecommand.py", 
line 215, in main
+ status = self.run(options, args)
+   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/commands/install.py",
 line 353, in run
+ wb.build(autobuilding=True)
+   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/wheel.py", line 
749, in build
+ self.requirement_set.prepare_files(self.finder)
+   File 
"/usr/share/python-wheels/pip-9.0.1-py2.py3-none-any.whl/pip/req/req_set.py", 
line 380, in prepare_files
+ ignore_dependencies=self.ignore_dependencies))
+   File 

[Bug 1743886] Re: TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

2018-05-27 Thread confiq
This also effects ubuntu 16.04

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

Title:
  TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

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

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

[Bug 1743886] Re: TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

2018-05-23 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/1743886

Title:
  TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

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

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

[Bug 1743886] Re: TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

2018-01-17 Thread Marius Gedminas
To clarify: this is a bug in urllib3 as bundled in python-pip, that
shows up only when PyPI is unavailable.  Pybuild sets
https_proxy=https://127.0.0.1:9/ to forcefully make PyPI unavailable
during the package build.

(There's probably a sibling bug lurking around: why is
python3-virtualenv attempting to pip install stuff from PyPI instead of
using the bundled python-setuptools wheels?)

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

Title:
  TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

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

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