Skip to content

README doesn't specify requirement for Rust compiler for installation #14

Description

@AbhijeetKrishnan

Running pip install -e . produces the following error message

    ERROR: Command errored out with exit status 1:
     command: /home/user/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/user/gym-chess/setup.py'"'"'; __file__='"'"'/home/user/gym-chess/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
         cwd: /home/user/gym-chess/
    Complete output (12 lines):
    running develop
    running egg_info
    writing gym_chess.egg-info/PKG-INFO
    writing dependency_links to gym_chess.egg-info/dependency_links.txt
    writing requirements to gym_chess.egg-info/requires.txt
    writing top-level names to gym_chess.egg-info/top_level.txt
    reading manifest file 'gym_chess.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'gym_chess.egg-info/SOURCES.txt'
    running build_ext
    running build_rust
    error: Can not find Rust compiler
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/user/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/user/gym-chess/setup.py'"'"'; __file__='"'"'/home/user/gym-chess/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

The initial README instructions for setup do not mention that a Rust compiler is required. Users might want to only use the v1 version implemented in pure Python without installing a Rust compiler. Doing sudo apt install cargo fixes this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions