Skip to content

[RecursionError] maximum recursion depth exceeded while calling a Python object with Spyder-kernels #2133

@danieltomasz

Description

@danieltomasz
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (`` option).
  • OS version and name: Mac Catalina darwin
  • Poetry version: 1.0.5
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

poetry add -D spyder-kernels
Using version ^1.8.1 for spyder-kernels

Updating dependencies
Resolving dependencies... (41.1s)

[RecursionError]
maximum recursion depth exceeded while calling a Python object

I was able to pinpoint problem to this

Duplicate dependencies for ipykernel
   0: Different requirements found for ipykernel (*) and ipykernel (>=5.1.3).
   1: Version solving took 0.029 seconds.
   1: Tried 1 solutions.
   0: Retrying dependency resolution for Python (>=3.8,<4.0).

which was caused by spyder-kernelsrequirements


REQUIREMENTS = [
  ...
    'ipykernel',
    'ipykernel>=5.1.3; python_version>"2"',
  ...
]

after removing first ipykernel I was able to install spyder-kernels from my fork

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/solverRelated to the dependency resolverkind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions