Openai , gym, 아타리 게임 install 오류요 ㅠㅠ


cmake 3.5버젼이고요 ...

오류로그인데 해결방법을 모르겠습니다. ㅠ

Obtaining file:///home/ssy1001/programming/ML/gym
Requirement already satisfied: numpy>=1.10.4 in /usr/local/lib/python2.7/dist-packages (from gym==0.5.7)
Requirement already satisfied: requests>=2.0 in /usr/local/lib/python2.7/dist-packages (from gym==0.5.7)
Requirement already satisfied: six in /usr/local/lib/python2.7/dist-packages (from gym==0.5.7)
Requirement already satisfied: pyglet>=1.2.0 in /usr/local/lib/python2.7/dist-packages (from gym==0.5.7)
Collecting atari_py>=0.0.17 (from gym==0.5.7)
  Using cached atari-py-0.0.18.tar.gz
Collecting Pillow (from gym==0.5.7)
  Using cached Pillow-3.4.2-cp27-cp27mu-manylinux1_x86_64.whl
Collecting PyOpenGL (from gym==0.5.7)
Building wheels for collected packages: atari-py
  Running setup.py bdist_wheel for atari-py ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jpJ7aK/atari-py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmptOPfiCpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  make: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface' 들어감
  mkdir -p build && cd build && cmake .. && make -j4
  -- The C compiler identification is GNU 5.4.0
  -- The CXX compiler identification is GNU 5.4.0
  -- Check for working C compiler: /usr/bin/cc
  -- Check for working C compiler: /usr/bin/cc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build
  make[1]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
  make[1]: 경고: 파생된 메이크에서 -jN이 강제되었습니다: 작업서버 모드를 끕니다.
  make[2]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
  make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
  make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
  make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
  Scanning dependencies of target ale-lib
  make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
  make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
  [  0%] Building CXX object CMakeFiles/ale-lib.dir/src/common/Constants.cpp.o
  [  1%] Building CXX object CMakeFiles/ale-lib.dir/src/ale_interface.cpp.o
  Scanning dependencies of target ale-c-lib
  make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
  Scanning dependencies of target ale-bin
  make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
  make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
  make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
  [  1%] Building CXX object CMakeFiles/ale-bin.dir/src/main.cpp.o
  [  1%] Building CXX object CMakeFiles/ale-c-lib.dir/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_c_wrapper.cpp.o
  In file included from /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_c_wrapper.cpp:2:0:
  /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_c_wrapper.h: In function ‘void getScreenRGB(ALEInterface*, int*)’:
  /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_c_wrapper.h:61:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int i = 0;i < w*h;i++){
                       ^
  /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_c_wrapper.h:58:12: warning: unused variable ‘screen_size’ [-Wunused-variable]
       size_t screen_size = w*h;
              ^
  [  1%] Building CXX object CMakeFiles/ale-lib.dir/src/common/display_screen.cpp.o
  [  1%] Building CXX object CMakeFiles/ale-bin.dir/src/ale_interface.cpp.o
  [  1%] Building CXX object CMakeFiles/ale-c-lib.dir/src/ale_interface.cpp.o
  [  1%] Building CXX object CMakeFiles/ale-lib.dir/src/common/SoundNull.cxx.o
  [  2%] Building CXX object CMakeFiles/ale-lib.dir/src/common/SoundExporter.cpp.o
  /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/src/common/SoundNull.cxx: In member function ‘virtual bool SoundNull::load(Deserializer&)’:
  /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/src/common/SoundNull.cxx:49:9: warning: variable ‘reg’ set but not used [-Wunused-but-set-variable]
     uInt8 reg;
           ^
  [  2%] Building CXX object CMakeFiles/ale-lib.dir/src/common/SoundSDL.cxx.o
  [  2%] Building CXX object CMakeFiles/ale-lib.dir/src/common/Log.cpp.o
  [  2%] Building CXX object CMakeFiles/ale-lib.dir/src/common/ScreenExporter.cpp.o
  /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/src/common/ScreenExporter.cpp:18:18: fatal error: zlib.h: 그런 파일이나 디렉터리가 없습니다
  compilation terminated.
  CMakeFiles/ale-lib.dir/build.make:230: 'CMakeFiles/ale-lib.dir/src/common/ScreenExporter.cpp.o' 타겟에 대한 명령이 실패했습니다
  make[3]: *** [CMakeFiles/ale-lib.dir/src/common/ScreenExporter.cpp.o] 오류 1
  make[3]: *** 끝나지 않은 작업을 기다리고 있습니다....
  [  2%] Building CXX object CMakeFiles/ale-bin.dir/src/common/Constants.cpp.o
  make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
  CMakeFiles/Makefile2:67: 'CMakeFiles/ale-lib.dir/all' 타겟에 대한 명령이 실패했습니다
  make[2]: *** [CMakeFiles/ale-lib.dir/all] 오류 2
  make[2]: *** 끝나지 않은 작업을 기다리고 있습니다....
  [  2%] Building CXX object CMakeFiles/ale-bin.dir/src/common/display_screen.cpp.o
  [  3%] Building CXX object CMakeFiles/ale-bin.dir/src/common/SoundNull.cxx.o
  [  4%] Building CXX object CMakeFiles/ale-c-lib.dir/src/common/Constants.cpp.o
  [  4%] Building CXX object CMakeFiles/ale-bin.dir/src/common/SoundExporter.cpp.o
  [  4%] Building CXX object CMakeFiles/ale-c-lib.dir/src/common/display_screen.cpp.o
  /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/src/common/SoundNull.cxx: In member function ‘virtual bool SoundNull::load(Deserializer&)’:
  /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/src/common/SoundNull.cxx:49:9: warning: variable ‘reg’ set but not used [-Wunused-but-set-variable]
     uInt8 reg;
           ^
  [  4%] Building CXX object CMakeFiles/ale-bin.dir/src/common/SoundSDL.cxx.o
  [  4%] Building CXX object CMakeFiles/ale-bin.dir/src/common/Log.cpp.o
  [  4%] Building CXX object CMakeFiles/ale-c-lib.dir/src/common/SoundNull.cxx.o
  [  5%] Building CXX object CMakeFiles/ale-bin.dir/src/common/ScreenExporter.cpp.o
  [  5%] Building CXX object CMakeFiles/ale-bin.dir/src/common/ColourPalette.cpp.o
  [  5%] Building CXX object CMakeFiles/ale-c-lib.dir/src/common/SoundExporter.cpp.o
  /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/src/common/ScreenExporter.cpp:18:18: fatal error: zlib.h: 그런 파일이나 디렉터리가 없습니다
  compilation terminated.
  CMakeFiles/ale-bin.dir/build.make:254: 'CMakeFiles/ale-bin.dir/src/common/ScreenExporter.cpp.o' 타겟에 대한 명령이 실패했습니다
  make[3]: *** [CMakeFiles/ale-bin.dir/src/common/ScreenExporter.cpp.o] 오류 1
  make[3]: *** 끝나지 않은 작업을 기다리고 있습니다....
  [  6%] Building CXX object CMakeFiles/ale-c-lib.dir/src/common/SoundSDL.cxx.o
  [  6%] Building CXX object CMakeFiles/ale-c-lib.dir/src/common/Log.cpp.o
  /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/src/common/SoundNull.cxx: In member function ‘virtual bool SoundNull::load(Deserializer&)’:
  /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/src/common/SoundNull.cxx:49:9: warning: variable ‘reg’ set but not used [-Wunused-but-set-variable]
     uInt8 reg;
           ^
  [  6%] Building CXX object CMakeFiles/ale-c-lib.dir/src/common/ColourPalette.cpp.o
  [  6%] Building CXX object CMakeFiles/ale-c-lib.dir/src/common/ScreenExporter.cpp.o
  make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
  CMakeFiles/Makefile2:141: 'CMakeFiles/ale-bin.dir/all' 타겟에 대한 명령이 실패했습니다
  make[2]: *** [CMakeFiles/ale-bin.dir/all] 오류 2
  [  7%] Building CXX object CMakeFiles/ale-c-lib.dir/src/common/Defaults.cpp.o
  [  7%] Building CXX object CMakeFiles/ale-c-lib.dir/src/controllers/rlglue_controller.cpp.o
  /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/src/common/ScreenExporter.cpp:18:18: fatal error: zlib.h: 그런 파일이나 디렉터리가 없습니다
  compilation terminated.
  CMakeFiles/ale-c-lib.dir/build.make:254: 'CMakeFiles/ale-c-lib.dir/src/common/ScreenExporter.cpp.o' 타겟에 대한 명령이 실패했습니다
  make[3]: *** [CMakeFiles/ale-c-lib.dir/src/common/ScreenExporter.cpp.o] 오류 1
  make[3]: *** 끝나지 않은 작업을 기다리고 있습니다....
  make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
  CMakeFiles/Makefile2:104: 'CMakeFiles/ale-c-lib.dir/all' 타겟에 대한 명령이 실패했습니다
  make[2]: *** [CMakeFiles/ale-c-lib.dir/all] 오류 2
  make[2]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
  Makefile:83: 'all' 타겟에 대한 명령이 실패했습니다
  make[1]: *** [all] 오류 2
  make[1]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
  Makefile:4: 'build' 타겟에 대한 명령이 실패했습니다
  make: *** [build] 오류 2
  make: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface' 나감
  Could not build atari-py: Command '['make', 'build', '-C', 'atari_py/ale_interface', '-j', '3']' returned non-zero exit status 2. (HINT: are you sure cmake is installed? You might also be missing a library. Atari-py requires: zlib [installable as 'apt-get install zlib1g-dev' on Ubuntu].)
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-jpJ7aK/atari-py/setup.py", line 36, in <module>
      tests_require=['nose2']
    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/usr/lib/python2.7/dist-packages/wheel/bdist_wheel.py", line 179, in run
      self.run_command('build')
    File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-jpJ7aK/atari-py/setup.py", line 16, in run
      subprocess.check_call(cmd)
    File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['make', 'build', '-C', 'atari_py/ale_interface', '-j', '3']' returned non-zero exit status 2

  ----------------------------------------
  Failed building wheel for atari-py
  Running setup.py clean for atari-py
Failed to build atari-py
Installing collected packages: atari-py, Pillow, PyOpenGL, gym
  Running setup.py install for atari-py ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jpJ7aK/atari-py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-S7uCeX-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    make: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface' 들어감
    mkdir -p build && cd build && cmake .. && make -j4
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build
    make[1]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
    make[1]: 경고: 파생된 메이크에서 -jN이 강제되었습니다: 작업서버 모드를 끕니다.
    make[2]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
    make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
    make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
    make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
    make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
    make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
    make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
    [  0%] Building CXX object CMakeFiles/ale-c-lib.dir/src/common/ScreenExporter.cpp.o
    [  0%] Building CXX object CMakeFiles/ale-c-lib.dir/src/controllers/ale_controller.cpp.o
    make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
    make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
    [  0%] Building CXX object CMakeFiles/ale-lib.dir/src/common/ScreenExporter.cpp.o
    make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 들어감
    [  1%] Building CXX object CMakeFiles/ale-bin.dir/src/common/ScreenExporter.cpp.o
    /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/src/common/ScreenExporter.cpp:18:18: fatal error: zlib.h: 그런 파일이나 디렉터리가 없습니다
    compilation terminated.
    CMakeFiles/ale-c-lib.dir/build.make:254: 'CMakeFiles/ale-c-lib.dir/src/common/ScreenExporter.cpp.o' 타겟에 대한 명령이 실패했습니다
    make[3]: *** [CMakeFiles/ale-c-lib.dir/src/common/ScreenExporter.cpp.o] 오류 1
    make[3]: *** 끝나지 않은 작업을 기다리고 있습니다....
    [  1%] Building CXX object CMakeFiles/ale-bin.dir/src/common/Defaults.cpp.o
    /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/src/common/ScreenExporter.cpp:18:18: fatal error: zlib.h: 그런 파일이나 디렉터리가 없습니다
    compilation terminated.
    CMakeFiles/ale-lib.dir/build.make:230: 'CMakeFiles/ale-lib.dir/src/common/ScreenExporter.cpp.o' 타겟에 대한 명령이 실패했습니다
    make[3]: *** [CMakeFiles/ale-lib.dir/src/common/ScreenExporter.cpp.o] 오류 1
    make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
    CMakeFiles/Makefile2:67: 'CMakeFiles/ale-lib.dir/all' 타겟에 대한 명령이 실패했습니다
    make[2]: *** [CMakeFiles/ale-lib.dir/all] 오류 2
    make[2]: *** 끝나지 않은 작업을 기다리고 있습니다....
    /tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/src/common/ScreenExporter.cpp:18:18: fatal error: zlib.h: 그런 파일이나 디렉터리가 없습니다
    compilation terminated.
    [  1%] Building CXX object CMakeFiles/ale-bin.dir/src/controllers/rlglue_controller.cpp.o
    CMakeFiles/ale-bin.dir/build.make:254: 'CMakeFiles/ale-bin.dir/src/common/ScreenExporter.cpp.o' 타겟에 대한 명령이 실패했습니다
    make[3]: *** [CMakeFiles/ale-bin.dir/src/common/ScreenExporter.cpp.o] 오류 1
    make[3]: *** 끝나지 않은 작업을 기다리고 있습니다....
    make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
    CMakeFiles/Makefile2:104: 'CMakeFiles/ale-c-lib.dir/all' 타겟에 대한 명령이 실패했습니다
    make[2]: *** [CMakeFiles/ale-c-lib.dir/all] 오류 2
    make[3]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
    CMakeFiles/Makefile2:141: 'CMakeFiles/ale-bin.dir/all' 타겟에 대한 명령이 실패했습니다
    make[2]: *** [CMakeFiles/ale-bin.dir/all] 오류 2
    make[2]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
    Makefile:83: 'all' 타겟에 대한 명령이 실패했습니다
    make[1]: *** [all] 오류 2
    make[1]: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface/build' 나감
    Makefile:4: 'build' 타겟에 대한 명령이 실패했습니다
    make: *** [build] 오류 2
    make: 디렉터리 '/tmp/pip-build-jpJ7aK/atari-py/atari_py/ale_interface' 나감
    Could not build atari-py: Command '['make', 'build', '-C', 'atari_py/ale_interface', '-j', '3']' returned non-zero exit status 2. (HINT: are you sure cmake is installed? You might also be missing a library. Atari-py requires: zlib [installable as 'apt-get install zlib1g-dev' on Ubuntu].)
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-jpJ7aK/atari-py/setup.py", line 36, in <module>
        tests_require=['nose2']
      File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
        self.run_command('build')
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/tmp/pip-build-jpJ7aK/atari-py/setup.py", line 16, in run
        subprocess.check_call(cmd)
      File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['make', 'build', '-C', 'atari_py/ale_interface', '-j', '3']' returned non-zero exit status 2

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jpJ7aK/atari-py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-S7uCeX-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-jpJ7aK/atari-py/

  • 2016년 12월 19일에 작성됨

  • zlib가 설치안되어있는 것 같습니다. 우분투라면 sudo apt-get install zlib1g-dev 해보세요    Carlos Yoo   2016.12.21 11:37     
조회수 261


Banner slack 2x iegsyt

로그인이 필요한 기능입니다.

Hashcode는 개발자들을 위한 무료 QnA사이트 입니다. 작성한 답변에 다른 개발자들이 댓글을 작성하거나 좋아요/싫어요를 할 수 있기 때문에 계정을 필요로 합니다.
► 로그인
► 계정만들기
Close