Code Monkey home page Code Monkey logo

Comments (6)

Trinkle23897 avatar Trinkle23897 commented on June 13, 2024

could you repro the same issue inside docker container?

from envpool.

HyunyoungJung avatar HyunyoungJung commented on June 13, 2024

Unfortunately, I am not using docker and am not familiar with it.
Would there be another way that I can build the source code locally?

from envpool.

Trinkle23897 avatar Trinkle23897 commented on June 13, 2024

need to make sure envpool/mujoco/dmc/utils.cc has the correct permission. What does ls -lh envpool/mujoco/dmc/utils.cc give?

from envpool.

HyunyoungJung avatar HyunyoungJung commented on June 13, 2024

The permission of the file is -rw-rw-r--

from envpool.

Trinkle23897 avatar Trinkle23897 commented on June 13, 2024

could you try BAZELOPT=--verbose_failures make bazel-build? See Makefile for actual command.

from envpool.

HyunyoungJung avatar HyunyoungJung commented on June 13, 2024
SHELL          = /bin/bash
PROJECT_NAME   = envpool
PROJECT_FOLDER = $(PROJECT_NAME) third_party examples benchmark
PYTHON_FILES   = $(shell find . -type f -name "*.py")
CPP_FILES      = $(shell find $(PROJECT_NAME) -type f -name "*.h" -o -name "*.cc")
BAZEL_FILES    = $(shell find . -type f -name "*BUILD" -o -name "*.bzl")
COMMIT_HASH    = $(shell git log -1 --format=%h)
COPYRIGHT      = "Garena Online Private Limited"
BAZELOPT       =
DATE           = $(shell date "+%Y-%m-%d")
DOCKER_TAG     = $(DATE)-$(COMMIT_HASH)
DOCKER_USER    = trinkle23897
PATH           := $(HOME)/go/bin:$(PATH)

# installation

check_install = python3 -c "import $(1)" || (cd && pip3 install $(1) --upgrade && cd -)
check_install_extra = python3 -c "import $(1)" || (cd && pip3 install $(2) --upgrade && cd -)

flake8-install:
        $(call check_install, flake8)
        $(call check_install_extra, bugbear, flake8_bugbear)

py-format-install:
        $(call check_install, isort)
        $(call check_install, yapf)

mypy-install:
        $(call check_install, mypy)

cpplint-install:
        $(call check_install, cpplint)

clang-format-install:
        command -v clang-format || sudo apt-get install -y clang-format

clang-tidy-install:
        command -v clang-tidy || sudo apt-get install -y clang-tidy

go-install:
        # requires go >= 1.16
        command -v go || (sudo apt-get install -y golang-1.18 && sudo ln -sf /usr/lib/go-1.18/bin/go /usr/bin/go)

bazel-install: go-install
        command -v bazel || (go install github.com/bazelbuild/bazelisk@latest && ln -sf $(HOME)/go/bin/bazelisk $(HOME)/go/bin/bazel)

buildifier-install: go-install
        command -v buildifier || go install github.com/bazelbuild/buildtools/buildifier@latest

addlicense-install: go-install
        command -v addlicense || go install github.com/google/addlicense@latest

doc-install:
        $(call check_install, pydocstyle)
        $(call check_install_extra, doc8, "doc8<1")
        $(call check_install, sphinx)
        $(call check_install, sphinx_rtd_theme)
        $(call check_install_extra, sphinxcontrib.spelling, sphinxcontrib.spelling pyenchant)

auditwheel-install:
        $(call check_install_extra, auditwheel, auditwheel typed-ast patchelf)

from envpool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.