Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum recursion depth exceeded for py>=3.9 #717

Open
marcodigennaro opened this issue May 8, 2023 · 0 comments
Open

Maximum recursion depth exceeded for py>=3.9 #717

marcodigennaro opened this issue May 8, 2023 · 0 comments

Comments

@marcodigennaro
Copy link
Contributor

pip install --upgrade emmet-core
leads to the following error in python 3.9 or higher.

ERROR: Exception:
Traceback (most recent call last):
  File "/Users/marcodigennaro/miniconda3/envs/py3.9/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 169, in exc_logging_wrapper
    status = run_func(*args)
  File "/Users/marcodigennaro/miniconda3/envs/py3.9/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper
    return func(self, options, args)
  File "/Users/marcodigennaro/miniconda3/envs/py3.9/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 377, in run
    requirement_set = resolver.resolve(
  File "/Users/marcodigennaro/miniconda3/envs/py3.9/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
    result = self._result = resolver.resolve(
  File "/Users/marcodigennaro/miniconda3/envs/py3.9/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 547, in resolve
    return _build_result(state)
  File "/Users/marcodigennaro/miniconda3/envs/py3.9/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 492, in _build_result
    if not _has_route_to_root(state.criteria, key, all_keys, connected):
  File "/Users/marcodigennaro/miniconda3/envs/py3.9/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 473, in _has_route_to_root
    if _has_route_to_root(criteria, pkey, all_keys, connected):
  File "/Users/marcodigennaro/miniconda3/envs/py3.9/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 473, in _has_route_to_root
    if _has_route_to_root(criteria, pkey, all_keys, connected):
  File "/Users/marcodigennaro/miniconda3/envs/py3.9/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 473, in _has_route_to_root
    if _has_route_to_root(criteria, pkey, all_keys, connected):
  [Previous line repeated 986 more times]
  File "/Users/marcodigennaro/miniconda3/envs/py3.9/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 465, in _has_route_to_root
    for p in criteria[key].iter_parent():
RecursionError: maximum recursion depth exceeded

My system has recursion limit = 1000

import sys
print(sys.getrecursionlimit())

Beside, sys.setrecursionlimit(1500) (or higher),
I think this could help:
https://stackoverflow.com/questions/5061582/setting-stacksize-in-a-python-script/16248113#16248113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant