NVIDIA / MinkowskiEngine

Minkowski Engine is an auto-diff neural network library for high-dimensional sparse tensors
https://nvidia.github.io/MinkowskiEngine
Other
2.47k stars 367 forks source link

Can't install with python 3.11 #548

Open alexmelekhin opened 1 year ago

alexmelekhin commented 1 year ago

When I'm trying to install MinkowskiEngine in the nox session with python 3.11.4 it returns following error:

nox > Command python -m pip install git+https://github.com/NVIDIA/MinkowskiEngine --no-deps failed with exit code 2:                                                                                               
Collecting git+https://github.com/NVIDIA/MinkowskiEngine                                                                                                                                                           
  Cloning https://github.com/NVIDIA/MinkowskiEngine to /tmp/pip-req-build-nh6h84uy                                                                                                                                 
  Running command git clone --filter=blob:none --quiet https://github.com/NVIDIA/MinkowskiEngine /tmp/pip-req-build-nh6h84uy                                                                                       
  Resolved https://github.com/NVIDIA/MinkowskiEngine to commit 02fc608bea4c0549b0a7b00ca1bf15dee4a0b228                                                                                                            
  Preparing metadata (setup.py): started                                                                                                                                                                           
  Preparing metadata (setup.py): finished with status 'done'                                                                                                                                                       
ERROR: Exception:                                                                                                                                                                                                  
Traceback (most recent call last):                                                                                                                                                                                 
  File "/home/docker_opr/OpenPlaceRecognition/.nox/tests-python-3-11-pytorch-2-0-1/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 169, in exc_logging_wrapper                               
    status = run_func(*args)                                                                                                                                                                                       
             ^^^^^^^^^^^^^^^                                                                                                                                                                                       
  File "/home/docker_opr/OpenPlaceRecognition/.nox/tests-python-3-11-pytorch-2-0-1/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper                                            
    return func(self, options, args)                                                                                                                                                                               
           ^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                               
  File "/home/docker_opr/OpenPlaceRecognition/.nox/tests-python-3-11-pytorch-2-0-1/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 377, in run                                               
    requirement_set = resolver.resolve(                                                                                                                                                                            
                      ^^^^^^^^^^^^^^^^^                                                                                                                                                                            
  File "/home/docker_opr/OpenPlaceRecognition/.nox/tests-python-3-11-pytorch-2-0-1/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 118, in resolve                             
    elif installed_dist.version != candidate.version:                                                                                                                                                              
         ^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                    
  File "/home/docker_opr/OpenPlaceRecognition/.nox/tests-python-3-11-pytorch-2-0-1/lib/python3.11/site-packages/pip/_internal/metadata/importlib/_dists.py", line 178, in version                                  
    return parse_version(self._dist.version)                                                                                                                                                                       
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                       
  File "/home/docker_opr/OpenPlaceRecognition/.nox/tests-python-3-11-pytorch-2-0-1/lib/python3.11/site-packages/pip/_vendor/packaging/version.py", line 49, in parse                                               
    return Version(version)                                                                                                                                                                                        
           ^^^^^^^^^^^^^^^^                                                                                                                                                                                        
  File "/home/docker_opr/OpenPlaceRecognition/.nox/tests-python-3-11-pytorch-2-0-1/lib/python3.11/site-packages/pip/_vendor/packaging/version.py", line 264, in __init__                                           
    match = self._regex.search(version)                                                                                                                                                                            
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                            
TypeError: expected string or bytes-like object, got 'NoneType'

I install torch 2.0.1+cpu in the session right before MinkowskiEngine.

Similiar nox session with python 3.10.12 and the same torch 2.0.1+cpu works fine, so I think that it is not related to nox.