Skip to content

pip install fails due to pep 517 #33

@StephenOman

Description

@StephenOman

This is a migration copy of the issue here: facebookresearch#359

Hi, I had trouble running pip3 install nle on Ubuntu 22.04.

below, notice it says pyproject.toml, not setup.py. My guess is, this is due to those new-ish build isolations.

What did help (workaround 👍 ) is pip3 install --no-use-pep517 nle

Building wheels for collected packages: nle, gym                                    
  Building wheel for nle (pyproject.toml) ... error                                 
  error: subprocess-exited-with-error                                               
                                                                                    
  × Building wheel for nle (pyproject.toml) did not run successfully.               
  │ exit code: 1                                                                    
  ╰─> [53 lines of output]                                                          
[...]      
copying nle/tests/test_system.py -> build/lib.linux-x86_64-cpython-310/nle/tests            
running build_ext                                                                           
Traceback (most recent call last):                                                          
  File "/usr/local/bin/cmake", line 5, in <module>                                          
    from cmake import cmake                                                                 
ModuleNotFoundError: No module named 'cmake'                                                
[end of output]                                                                             
[...]

Environment

$ python -m nle.scripts.collect_env
Collecting environment information...
NLE version: 0.9.0
PyTorch version: 2.0.1+cu117
Is debug build: No
CUDA used to build PyTorch: 11.7

OS: Ubuntu 22.04.2 LTS
GCC version: (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
CMake version: version 3.26.0

Python version: 3.10
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA

Versions of relevant libraries:
[pip3] numpy==1.22.1
[pip3] numpy-stl==2.17.1
[pip3] numpydoc==1.4.0
[pip3] numpyro==0.12.1
[pip3] numpysane==0.39
[pip3] torch==2.0.1
[pip3] torchaudio==2.0.1+cpu
[pip3] torchvision==0.15.2
[conda] Could not collect

pip and wheel:

$ pip3 --version
pip 23.1.2 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)
$ pip list | grep wheel
wheel                             0.40.0

Additional context

Maybe you have to look into https://github.com/tttapa/py-build-cmake/ ?

Metadata

Metadata

Assignees

No one assigned

    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