google-deepmind / open_spiel

OpenSpiel is a collection of environments and algorithms for research in general reinforcement learning and search/planning in games.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug with nox

morLev opened this issue · comments

Hello,

When I run:
nox -s tests
I encounter the following error:
FileNotFoundError: [Errno 2] No such file or directory: 'build/temp.linux-x86_64-3.11'

I'm unsure whether this is a bug or if there's something missing with my installation.
However, I think I have a potential solution:
master...morLev:open_spiel:bug_fix_nox_get_distutils_tempdir

Please advise on how to proceed.

Oh we have not supported nox in over two years... since moving from Travis CI to Github Actions. At least it has not been maintained, though may have accidentally remained in the code. Did you find that in some documentation? If so, it is outdated and should be removed.

nox references:

installation guide:

using pip install to build and testing using nox.

Building and testing using PIP
python3 -m pip install .
python3 -m pip install nox
nox -s tests

build_and_run_tests.sh:

# Build / install everything and run tests (C++, Python, optionally Julia).
if [[ $ARG_build_with_pip == "true" ]]; then
  **# TODO(author2): We probably want to use `python3 -m pip install .` directly**
  # and skip the usage of nox.
  ${PYBIN} -m pip install nox

  if nox -s tests; then
    echo -e "\033[32mAll tests passed. Nicely done!\e[0m"
  else
    echo -e "\033[31mAt least one test failed.\e[0m"
    exit 1
  fi
else

Actions.yml:

TRAVIS_USE_NOX: 0

noxfile.py

Removal of nox started here: #1192

Thanks @morLev

Closing this for now.