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

ResolutionTooDeep(max_rounds) #12395

Closed
1 task done
aghaphd opened this issue Nov 9, 2023 · 10 comments
Closed
1 task done

ResolutionTooDeep(max_rounds) #12395

aghaphd opened this issue Nov 9, 2023 · 10 comments
Labels
type: support User Support

Comments

@aghaphd
Copy link

aghaphd commented Nov 9, 2023

Description

I'm using Python 3.7, Py torch 1.4.0 with Cuda 10.1, and during the installation of the POintnet++ I received the error below:

ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\666\anaconda3\envs\PVN3D-pytorch\lib\site-packages\pip_internal\cli\base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
File "C:\Users\666\anaconda3\envs\PVN3D-pytorch\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "C:\Users\666\anaconda3\envs\PVN3D-pytorch\lib\site-packages\pip_internal\commands\install.py", line 401, in run
reqs, check_supported_wheels=not options.target_dir
File "C:\Users\666\anaconda3\envs\PVN3D-pytorch\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 93, in resolve
collected.requirements, max_rounds=try_to_avoid_resolution_too_deep
File "C:\Users\666\anaconda3\envs\PVN3D-pytorch\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\666\anaconda3\envs\PVN3D-pytorch\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 392, in resolve
raise ResolutionTooDeep(max_rounds)
pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 2000000

I just run this command: pip install -r requirements.txt. I'm not really expertise in this, I wanted to install the PVN3D for my study.

Expected behavior

No response

pip version

22.3.1

Python version

3.7

OS

Win11

How to Reproduce

I have used pip install -r requirements.txt,
and the error message was: pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 2000000

Output

No response

Code of Conduct

@aghaphd aghaphd added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Nov 9, 2023
@notatallshaw
Copy link
Member

Need to know the exact contents of your requirements.txt to be able to assist.

@aghaphd
Copy link
Author

aghaphd commented Nov 11, 2023

the requirements.txt:
numpy
msgpack-numpy
lmdb
h5py

hydra-core==0.11.3
pytorch-lightning==0.7.1

./pointnet2_ops_lib/.

the problem start after installing the files I have inside the ./pointnet2_ops_lib/.

@notatallshaw
Copy link
Member

notatallshaw commented Nov 11, 2023

Based on this requirements file I assume you are trying to install https://github.com/erikwijmans/Pointnet2_PyTorch

This project unfortunately does not seem to be maintained and therefore does not provide an install guide which works with the latest versions of libraries.

However I was able to successfully install on Windows with Python 3.7 as so:

  1. Make sure Cuda Toolkit is installed: https://developer.nvidia.com/cuda-downloads
  2. Reopen a new terminal or command window as that will add important environmental variables
  3. Update pip to the latest version: python -m pip install pip --upgrade. There are important resolution optimizations that you need.
  4. Install the build dendencies: python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 and python -m pip install wheel
  5. Install with no build isolation: python -m pip install --no-build-isolation -r .\requirements.txt

Follow or adapt these instructions to your own needs, but importantly you must run on the latest version of Pip (23.3.1) to report issues that might be a Pip bug here. Let me know after following these instructions if you still have any issues.

@aghaphd
Copy link
Author

aghaphd commented Nov 12, 2023

First thank you so much for helping me, you are saving my life, I have run the commands above and all good but I have received this bug:
(PVN3D-pytorch) PS D:\PVN3D-pytorch-1.5\PVN3D-pytorch-1.5\Pointnet2_PyTorch> python -m pip install --no-build-isolation -r .\requirements.txt
Processing d:\pvn3d-pytorch-1.5\pvn3d-pytorch-1.5\pointnet2_pytorch\pointnet2_ops_lib
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "D:\PVN3D-pytorch-1.5\PVN3D-pytorch-1.5\Pointnet2_PyTorch\pointnet2_ops_lib\setup.py", line 6, in
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
File "C:\Users\666\anaconda3\envs\PVN3D-pytorch\lib\site-packages\torch_init_.py", line 779, in
from .serialization import save, load
File "C:\Users\666\anaconda3\envs\PVN3D-pytorch\lib\site-packages\torch\serialization.py", line 18, in
from typing_extensions import TypeAlias
ModuleNotFoundError: No module named 'typing_extensions'
[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.

@notatallshaw
Copy link
Member

Running this command: python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 should have installed typing_extensions, did you skip this step?

You can installed typing extensions manually python -m pip install typing-extensions.

This definetly isn't a Pip issue anymore though. If you have any further problems you would be best served by reaching out to peers or help forums, such as Python Discuss help category, /r/learnpython on reddit, Python Discord's #help-* channels, #python on Libera.chat (IRC), python-list or python-tutor mailing lists, or StackOverflow.

@aghaphd
Copy link
Author

aghaphd commented Nov 12, 2023

I have installed it and even checked the installed libraries inside the python. I will clean the environment, and reinstall it. Will let you know.

@aghaphd
Copy link
Author

aghaphd commented Nov 12, 2023

Successfully built pointnet2-ops
Installing collected packages: pointnet2-ops
Successfully installed pointnet2-ops-3.0.0

It's working!!!! I have no enough words to thank you. Thank you so much! may god bless you.

@aghaphd
Copy link
Author

aghaphd commented Nov 12, 2023

Sorry for bothering you, I have run this command python setup.py build_ext --inplace and received this bug:

Generating code
Finished generating code
copying build\lib.win-amd64-cpython-37\pointnet2_utils_ext.cp37-win_amd64.pyd -> pointnet2_utils
error: could not create 'pointnet2_utils_ext.cp37-win_amd64.pyd': No such file or directory

I see the targeted file where it's located, can I copy and paste it to the desired location? or it's not the correct way.

@notatallshaw
Copy link
Member

I can not assist you, check the project issues, documentation, or the links to online support channels I gave you above.

@aghaphd
Copy link
Author

aghaphd commented Nov 12, 2023

Thank you so much! much appreciated. ^_^

@aghaphd aghaphd closed this as completed Nov 12, 2023
@pradyunsg pradyunsg added type: support User Support and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Nov 12, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: support User Support
Projects
None yet
Development

No branches or pull requests

3 participants