Skip to content

hipify_python.py RecursionLimit when installing xformers  #39

@cornpo

Description

@cornpo

Steps to reproduce; with rocm 5.1 and up, pip install -e git+https://github.com/facebookresearch/xformers.git or the simpler pip install xformers fails with the following truncated snippet.

` File "/home/cornpop/conda/envs/shit/lib/python3.9/site-packages/torch/utils/hipify/hipify_python.py", line 750, in preprocessor
output_source = fin.read()
RecursionError: maximum recursion depth exceeded while calling a Python object
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
`

I've tried to change the limit with sys.setrecursionlimit() but it hasn't helped. Thanks in advance...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions