-
Notifications
You must be signed in to change notification settings - Fork 136
Description
🐛 Bug
After installing docker by way of the official website, creating a gcc environment reports an error
To Reproduce
Steps to reproduce the behavior:
- installed docker, run "docker run hello-world" is ok
- import compiler_gym
- env = compiler_gym.make("gcc-v0", gcc_bin="docker:gcc:11.2.0")
Expected behavior
Traceback (most recent call last):
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/envs/gcc/service/./compiler_gym-gcc-service", line 9, in
from compiler_gym.envs.gcc import DEFAULT_GCC
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/init.py", line 32, in
from compiler_gym.compiler_env_state import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/compiler_env_state.py", line 15, in
from compiler_gym.datasets.uri import BenchmarkUri
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/datasets/init.py", line 6, in
from compiler_gym.datasets.benchmark import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/datasets/benchmark.py", line 13, in
from compiler_gym.service.proto import Benchmark as BenchmarkProto
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/init.py", line 6, in
from compiler_gym.service.connection import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/connection.py", line 27, in
from compiler_gym.service.service_cache import ServiceCache
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/service_cache.py", line 12, in
from compiler_gym.util.filesystem import is_in_memory
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/util/filesystem.py", line 12, in
from compiler_gym.util import runfiles_path
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/util/runfiles_path.py", line 15, in
_PACKAGE_ROOT = Path(os.path.join(os.path.dirname(file), "../../")).resolve(
TypeError: resolve() got an unexpected keyword argument 'strict'
ServiceError Service terminated with returncode: 1 (SIGHUP) (attempt 1)
Traceback (most recent call last):
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/envs/gcc/service/./compiler_gym-gcc-service", line 9, in
from compiler_gym.envs.gcc import DEFAULT_GCC
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/init.py", line 32, in
from compiler_gym.compiler_env_state import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/compiler_env_state.py", line 15, in
from compiler_gym.datasets.uri import BenchmarkUri
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/datasets/init.py", line 6, in
from compiler_gym.datasets.benchmark import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/datasets/benchmark.py", line 13, in
from compiler_gym.service.proto import Benchmark as BenchmarkProto
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/init.py", line 6, in
from compiler_gym.service.connection import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/connection.py", line 27, in
from compiler_gym.service.service_cache import ServiceCache
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/service_cache.py", line 12, in
from compiler_gym.util.filesystem import is_in_memory
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/util/filesystem.py", line 12, in
from compiler_gym.util import runfiles_path
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/util/runfiles_path.py", line 15, in
_PACKAGE_ROOT = Path(os.path.join(os.path.dirname(file), "../../")).resolve(
TypeError: resolve() got an unexpected keyword argument 'strict'
ServiceError Service terminated with returncode: 1 (SIGHUP) (attempt 2)
Traceback (most recent call last):
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/envs/gcc/service/./compiler_gym-gcc-service", line 9, in
from compiler_gym.envs.gcc import DEFAULT_GCC
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/init.py", line 32, in
from compiler_gym.compiler_env_state import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/compiler_env_state.py", line 15, in
from compiler_gym.datasets.uri import BenchmarkUri
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/datasets/init.py", line 6, in
from compiler_gym.datasets.benchmark import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/datasets/benchmark.py", line 13, in
from compiler_gym.service.proto import Benchmark as BenchmarkProto
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/init.py", line 6, in
from compiler_gym.service.connection import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/connection.py", line 27, in
from compiler_gym.service.service_cache import ServiceCache
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/service_cache.py", line 12, in
from compiler_gym.util.filesystem import is_in_memory
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/util/filesystem.py", line 12, in
from compiler_gym.util import runfiles_path
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/util/runfiles_path.py", line 15, in
_PACKAGE_ROOT = Path(os.path.join(os.path.dirname(file), "../../")).resolve(
TypeError: resolve() got an unexpected keyword argument 'strict'
ServiceError Service terminated with returncode: 1 (SIGHUP) (attempt 3)
Traceback (most recent call last):
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/envs/gcc/service/./compiler_gym-gcc-service", line 9, in
from compiler_gym.envs.gcc import DEFAULT_GCC
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/init.py", line 32, in
from compiler_gym.compiler_env_state import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/compiler_env_state.py", line 15, in
from compiler_gym.datasets.uri import BenchmarkUri
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/datasets/init.py", line 6, in
from compiler_gym.datasets.benchmark import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/datasets/benchmark.py", line 13, in
from compiler_gym.service.proto import Benchmark as BenchmarkProto
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/init.py", line 6, in
from compiler_gym.service.connection import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/connection.py", line 27, in
from compiler_gym.service.service_cache import ServiceCache
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/service_cache.py", line 12, in
from compiler_gym.util.filesystem import is_in_memory
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/util/filesystem.py", line 12, in
from compiler_gym.util import runfiles_path
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/util/runfiles_path.py", line 15, in
_PACKAGE_ROOT = Path(os.path.join(os.path.dirname(file), "../../")).resolve(
TypeError: resolve() got an unexpected keyword argument 'strict'
ServiceError Service terminated with returncode: 1 (SIGHUP) (attempt 4)
Traceback (most recent call last):
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/envs/gcc/service/./compiler_gym-gcc-service", line 9, in
from compiler_gym.envs.gcc import DEFAULT_GCC
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/init.py", line 32, in
from compiler_gym.compiler_env_state import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/compiler_env_state.py", line 15, in
from compiler_gym.datasets.uri import BenchmarkUri
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/datasets/init.py", line 6, in
from compiler_gym.datasets.benchmark import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/datasets/benchmark.py", line 13, in
from compiler_gym.service.proto import Benchmark as BenchmarkProto
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/init.py", line 6, in
from compiler_gym.service.connection import (
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/connection.py", line 27, in
from compiler_gym.service.service_cache import ServiceCache
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/service_cache.py", line 12, in
from compiler_gym.util.filesystem import is_in_memory
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/util/filesystem.py", line 12, in
from compiler_gym.util import runfiles_path
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/util/runfiles_path.py", line 15, in
_PACKAGE_ROOT = Path(os.path.join(os.path.dirname(file), "../../")).resolve(
TypeError: resolve() got an unexpected keyword argument 'strict'
ServiceError Service terminated with returncode: 1 (SIGHUP) (attempt 5)
Traceback (most recent call last):
File "", line 1, in
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/util/registration.py", line 16, in make
return gym.make(id, **kwargs)
File "/home/xc/anaconda3/lib/python3.9/site-packages/gym/envs/registration.py", line 235, in make
return registry.make(id, **kwargs)
File "/home/xc/anaconda3/lib/python3.9/site-packages/gym/envs/registration.py", line 129, in make
env = spec.make(kwargs)
File "/home/xc/anaconda3/lib/python3.9/site-packages/gym/envs/registration.py", line 90, in make
env = cls(_kwargs)
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/envs/gcc/gcc_env.py", line 76, in init
super().init(
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/client_service_compiler_env.py", line 207, in init
self.service = service_connection or CompilerGymServiceConnection(
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/connection.py", line 646, in init
self._establish_connection()
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/connection.py", line 657, in _establish_connection
self.connection = self._create_connection(self.endpoint, self.opts)
File "/home/xc/anaconda3/lib/python3.9/site-packages/compiler_gym/service/connection.py", line 718, in _create_connection
raise exception_class(
compiler_gym.errors.service_errors.ServiceError: Failed to create connection to compiler_gym-gcc-service after 2.6 seconds (5 attempts made).
Last error (ServiceError): Service terminated with returncode: 1 (SIGHUP)
Environment
Please fill in this checklist:
- CompilerGym:
- How you installed CompilerGym (pip, source): pip install
- OS: WMware - Ubuntu
- Python version: 3.9
- Build command you used (if compiling from source): env = compiler_gym.make("gcc-v0", gcc_bin="docker:gcc:11.2.0")
- GCC/clang version (if compiling from source):
- Versions of any other relevant libraries:
You may use the
environment collection script
to generate most of this information. You can get the script and run it with:
wget https://raw.githubusercontent.com/facebookresearch/CompilerGym/stable/build_tools/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py