python-poetry / poetry

Python packaging and dependency management made easy
https://python-poetry.org
MIT License
31.76k stars 2.27k forks source link

TooManyRedirects error when adding ipython on a fresh poetry project #1702

Closed gusostow closed 4 years ago

gusostow commented 4 years ago

Issue

Unable to add or lock with any ipython related dependencies. This problem persists even on a completely fresh poetry project.

I get this after running poetry add ipython

[TooManyRedirects]
Exceeded 30 redirects.

My full log output is

Using virtualenv: /Users/augustusostow/Library/Caches/pypoetry/virtualenvs/example-py3.7
PyPI: No release information found for ipython-0.6.10, skipping
PyPI: No release information found for ipython-0.6.11, skipping
PyPI: No release information found for ipython-0.6.12, skipping
PyPI: No release information found for ipython-0.6.13, skipping
PyPI: No release information found for ipython-0.6.14, skipping
PyPI: No release information found for ipython-0.6.15, skipping
PyPI: No release information found for ipython-0.6.4, skipping
PyPI: No release information found for ipython-0.6.5, skipping
PyPI: No release information found for ipython-0.6.6, skipping
PyPI: No release information found for ipython-0.6.7, skipping
PyPI: No release information found for ipython-0.6.8, skipping
PyPI: No release information found for ipython-0.6.9, skipping
PyPI: No release information found for ipython-0.7.0, skipping
PyPI: No release information found for ipython-0.7.1, skipping
PyPI: No release information found for ipython-0.7.1.fix1, skipping
PyPI: No release information found for ipython-0.7.2, skipping
PyPI: No release information found for ipython-0.7.4.svn.r2010, skipping
PyPI: No release information found for ipython-0.8.0, skipping
PyPI: No release information found for ipython-0.8.1, skipping
PyPI: No release information found for ipython-0.8.2, skipping
PyPI: No release information found for ipython-0.8.3, skipping
PyPI: No release information found for ipython-0.8.4, skipping
PyPI: No release information found for ipython-0.9, skipping
PyPI: No release information found for ipython-0.9.1, skipping
PyPI: No release information found for ipython-4.0.0-b1, skipping
PyPI: 71 packages found for ipython *
Using version ^7.10 for ipython

Updating dependencies
Resolving dependencies...
   1: fact: example is 0.1.0
   1: derived: example
   1: fact: example depends on ipython (^7.10)
   1: fact: example depends on pytest (^3.0)
   1: selecting example (0.1.0)
   1: derived: pytest (^3.0)
   1: derived: ipython (^7.10)
   1: fact: pytest (3.10.1) depends on py (>=1.5.0)
   1: fact: pytest (3.10.1) depends on six (>=1.10.0)
   1: fact: pytest (3.10.1) depends on attrs (>=17.4.0)
   1: fact: pytest (3.10.1) depends on more-itertools (>=4.0.0)
   1: fact: pytest (3.10.1) depends on atomicwrites (>=1.0)
   1: fact: pytest (3.10.1) depends on pluggy (>=0.7)
   1: fact: pytest (3.10.1) depends on colorama (*)
   1: selecting pytest (3.10.1)
   1: derived: colorama (*)
   1: derived: pluggy (>=0.7)
   1: derived: atomicwrites (>=1.0)
   1: derived: more-itertools (>=4.0.0)
   1: derived: attrs (>=17.4.0)
   1: derived: six (>=1.10.0)
   1: derived: py (>=1.5.0)
PyPI: No release information found for ipython-0.6.10, skipping
PyPI: No release information found for ipython-0.6.11, skipping
PyPI: No release information found for ipython-0.6.12, skipping
PyPI: No release information found for ipython-0.6.13, skipping
PyPI: No release information found for ipython-0.6.14, skipping
PyPI: No release information found for ipython-0.6.15, skipping
PyPI: No release information found for ipython-0.6.4, skipping
PyPI: No release information found for ipython-0.6.5, skipping
PyPI: No release information found for ipython-0.6.6, skipping
PyPI: No release information found for ipython-0.6.7, skipping
PyPI: No release information found for ipython-0.6.8, skipping
PyPI: No release information found for ipython-0.6.9, skipping
PyPI: No release information found for ipython-0.7.0, skipping
PyPI: No release information found for ipython-0.7.1, skipping
PyPI: No release information found for ipython-0.7.1.fix1, skipping
PyPI: No release information found for ipython-0.7.2, skipping
PyPI: No release information found for ipython-0.7.4.svn.r2010, skipping
PyPI: No release information found for ipython-0.8.0, skipping
PyPI: No release information found for ipython-0.8.1, skipping
PyPI: No release information found for ipython-0.8.2, skipping
PyPI: No release information found for ipython-0.8.3, skipping
PyPI: No release information found for ipython-0.8.4, skipping
PyPI: No release information found for ipython-0.9, skipping
PyPI: No release information found for ipython-0.9.1, skipping
PyPI: No release information found for ipython-4.0.0-b1, skipping
PyPI: 2 packages found for ipython >=7.10,<8.0
   1: fact: ipython (7.10.1) depends on jedi (>=0.10)
   1: fact: ipython (7.10.1) depends on decorator (*)
   1: fact: ipython (7.10.1) depends on pickleshare (*)
   1: fact: ipython (7.10.1) depends on traitlets (>=4.2)
   1: fact: ipython (7.10.1) depends on prompt-toolkit (>=2.0.0,<3.0.0 || >3.0.0,<3.0.1 || >3.0.1,<3.1.0)
   1: fact: ipython (7.10.1) depends on pygments (*)
   1: fact: ipython (7.10.1) depends on backcall (*)
   1: fact: ipython (7.10.1) depends on pexpect (*)
   1: fact: ipython (7.10.1) depends on appnope (*)
   1: fact: ipython (7.10.1) depends on colorama (*)
   1: selecting ipython (7.10.1)
   1: derived: appnope (*)
   1: derived: pexpect (*)
   1: derived: backcall (*)
   1: derived: pygments (*)
   1: derived: prompt-toolkit (>=2.0.0,<3.0.0 || >3.0.0,<3.0.1 || >3.0.1,<3.1.0)
   1: derived: traitlets (>=4.2)
   1: derived: pickleshare (*)
   1: derived: decorator (*)
   1: derived: jedi (>=0.10)
PyPI: 8 packages found for appnope *
PyPI: No release information found for pexpect-0.97, skipping
PyPI: No release information found for pexpect-2.01, skipping
PyPI: 16 packages found for pexpect *
PyPI: 1 packages found for backcall *
PyPI: 37 packages found for pygments *
   1: Version solving took 0.273 seconds.
   1: Tried 1 solutions.

[TooManyRedirects]  
Exceeded 30 redirects.           

Exception trace:
 /Users/augustusostow/.poetry/lib/poetry/_vendor/py3.7/cleo/application.py in run() at line 94
   status_code = self.do_run(input_, output_)
 /Users/augustusostow/.poetry/lib/poetry/console/application.py in do_run() at line 88
   return super(Application, self).do_run(i, o)
 /Users/augustusostow/.poetry/lib/poetry/_vendor/py3.7/cleo/application.py in do_run() at line 197
   status_code = command.run(input_, output_)
 /Users/augustusostow/.poetry/lib/poetry/console/commands/command.py in run() at line 77
   return super(BaseCommand, self).run(i, o)
 /Users/augustusostow/.poetry/lib/poetry/_vendor/py3.7/cleo/commands/base_command.py in run() at line 146
   status_code = self.execute(input_, output_)
 /Users/augustusostow/.poetry/lib/poetry/_vendor/py3.7/cleo/commands/command.py in execute() at line 107
   return self.handle()
 /Users/augustusostow/.poetry/lib/poetry/console/commands/add.py in handle() at line 139
   status = installer.run()
 /Users/augustusostow/.poetry/lib/poetry/installation/installer.py in run() at line 73
   self._do_install(local_repo)
 /Users/augustusostow/.poetry/lib/poetry/installation/installer.py in _do_install() at line 165
   ops = solver.solve(use_latest=self._whitelist)
 /Users/augustusostow/.poetry/lib/poetry/puzzle/solver.py in solve() at line 38
   packages, depths = self._solve(use_latest=use_latest)
 /Users/augustusostow/.poetry/lib/poetry/puzzle/solver.py in _solve() at line 171
   self._package, self._provider, locked=locked, use_latest=use_latest
 /Users/augustusostow/.poetry/lib/poetry/mixology/__init__.py in resolve_version() at line 7
   return solver.solve()
 /Users/augustusostow/.poetry/lib/poetry/mixology/version_solver.py in solve() at line 79
   next = self._choose_package_version()
 /Users/augustusostow/.poetry/lib/poetry/mixology/version_solver.py in _choose_package_version() at line 349
   dependency = min(*unsatisfied, key=_get_min)
 /Users/augustusostow/.poetry/lib/poetry/mixology/version_solver.py in _get_min() at line 342
   return len(self._provider.search_for(dependency))
 /Users/augustusostow/.poetry/lib/poetry/puzzle/provider.py in search_for() at line 145
   allow_prereleases=dependency.allows_prereleases(),
 /Users/augustusostow/.poetry/lib/poetry/repositories/pool.py in find_packages() at line 65
   name, constraint, extras=extras, allow_prereleases=allow_prereleases
 /Users/augustusostow/.poetry/lib/poetry/repositories/pypi_repository.py in find_packages() at line 108
   info = self.get_package_info(name)
 /Users/augustusostow/.poetry/lib/poetry/repositories/pypi_repository.py in get_package_info() at line 241
   name, lambda: self._get_package_info(name)
 /Users/augustusostow/.poetry/lib/poetry/_vendor/py3.7/cachy/repository.py in remember_forever() at line 174
   val = value(callback)
 /Users/augustusostow/.poetry/lib/poetry/_vendor/py3.7/cachy/helpers.py in value() at line 6
   return val()
 /Users/augustusostow/.poetry/lib/poetry/repositories/pypi_repository.py in <lambda>() at line 241
   name, lambda: self._get_package_info(name)
 /Users/augustusostow/.poetry/lib/poetry/repositories/pypi_repository.py in _get_package_info() at line 245
   data = self._get("pypi/{}/json".format(name))
 /Users/augustusostow/.poetry/lib/poetry/repositories/pypi_repository.py in _get() at line 334
   json_response = self._session.get(self._url + endpoint)
 /Users/augustusostow/.poetry/lib/poetry/_vendor/py3.7/requests/sessions.py in get() at line 546
   return self.request('GET', url, **kwargs)
 /Users/augustusostow/.poetry/lib/poetry/_vendor/py3.7/requests/sessions.py in request() at line 533
   resp = self.send(prep, **send_kwargs)
 /Users/augustusostow/.poetry/lib/poetry/_vendor/py3.7/requests/sessions.py in send() at line 668
   history = [resp for resp in gen] if allow_redirects else []
 /Users/augustusostow/.poetry/lib/poetry/_vendor/py3.7/requests/sessions.py in <listcomp>() at line 668
   history = [resp for resp in gen] if allow_redirects else []
 /Users/augustusostow/.poetry/lib/poetry/_vendor/py3.7/requests/sessions.py in resolve_redirects() at line 165
   raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp)

add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...
515hikaru commented 4 years ago

Have you tried the following command already?

poetry cache:clear pypi --all
gusostow commented 4 years ago

that worked, thanks. Should we close this issue?

github-actions[bot] commented 8 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.