openai / go-vncdriver

Fast VNC driver
MIT License
123 stars 60 forks source link

error installing universe #31

Closed obadahomsi closed 6 years ago

obadahomsi commented 6 years ago

everytime i " pip install -e ." in universe, i get the error below, i tried many things but it wont work. please check the whole command below:

Obadas-mac:universe obadahomsi$ pip install -e .
Obtaining file:///Users/obadahomsi/universe
Requirement already satisfied: autobahn>=0.16.0 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from universe==0.21.5)
Requirement already satisfied: docker-py==1.10.3 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from universe==0.21.5)
Requirement already satisfied: docker-pycreds==0.2.1 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from universe==0.21.5)
Requirement already satisfied: fastzbarlight>=0.0.13 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from universe==0.21.5)
Collecting go-vncdriver>=0.4.8 (from universe==0.21.5)
  Using cached go_vncdriver-0.4.19.tar.gz
Requirement already satisfied: gym>=0.8.1 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from universe==0.21.5)
Requirement already satisfied: Pillow>=3.3.0 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from universe==0.21.5)
Requirement already satisfied: PyYAML>=3.12 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from universe==0.21.5)
Requirement already satisfied: six>=1.10.0 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from universe==0.21.5)
Collecting twisted>=16.5.0 (from universe==0.21.5)
Collecting ujson>=1.35 (from universe==0.21.5)
Requirement already satisfied: txaio>=2.7.0 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from autobahn>=0.16.0->universe==0.21.5)
Requirement already satisfied: requests<2.11,>=2.5.2 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from docker-py==1.10.3->universe==0.21.5)
Requirement already satisfied: websocket-client>=0.32.0 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from docker-py==1.10.3->universe==0.21.5)
Requirement already satisfied: numpy in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from go-vncdriver>=0.4.8->universe==0.21.5)
Requirement already satisfied: pyglet>=1.2.0 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from gym>=0.8.1->universe==0.21.5)
Requirement already satisfied: olefile in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from Pillow>=3.3.0->universe==0.21.5)
Requirement already satisfied: zope.interface>=4.0.2 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from twisted>=16.5.0->universe==0.21.5)
Requirement already satisfied: incremental>=16.10.1 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from twisted>=16.5.0->universe==0.21.5)
Requirement already satisfied: constantly>=15.1 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from twisted>=16.5.0->universe==0.21.5)
Requirement already satisfied: Automat>=0.3.0 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from twisted>=16.5.0->universe==0.21.5)
Requirement already satisfied: hyperlink>=17.1.1 in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from twisted>=16.5.0->universe==0.21.5)
Requirement already satisfied: future in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from pyglet>=1.2.0->gym>=0.8.1->universe==0.21.5)
Requirement already satisfied: setuptools in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from zope.interface>=4.0.2->twisted>=16.5.0->universe==0.21.5)
Requirement already satisfied: attrs in /Users/obadahomsi/anaconda3/lib/python3.6/site-packages (from Automat>=0.3.0->twisted>=16.5.0->universe==0.21.5)
Building wheels for collected packages: go-vncdriver
  Running setup.py bdist_wheel for go-vncdriver ... error
  Complete output from command /Users/obadahomsi/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/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 /var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/tmpl9uesobapip-wheel- --python-tag cp36:
  running bdist_wheel
  running build
  Running new build
  Env info:

  export GOPATH='/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/.build'
  export GO15VENDOREXPERIMENT='1'
  export CGO_CFLAGS='-I/Users/obadahomsi/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/Users/obadahomsi/anaconda3/include/python3.6m'
  export CGO_LDFLAGS='/usr/local/opt/jpeg-turbo/lib/libjpeg.dylib -undefined dynamic_lookup'

  Running build with OpenGL rendering.
  Building with OpenGL: GOPATH=/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/.build go build -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver. (Set GO_VNCDRIVER_NOGL to build without OpenGL.)
  go: cannot find GOROOT directory: /usr/local/go

  Note: could not build with OpenGL rendering (cf https://github.com/openai/go-vncdriver). This is expected on most servers. Going to try building without OpenGL.
  Building without OpenGL: GOPATH=/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/.build go build -tags no_gl -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver
  go: cannot find GOROOT directory: /usr/local/go
  Could not build go_vncdriver:
  Build failed. HINT:

  - Ensure you have your Python development headers installed. (On Ubuntu,
    this is just 'sudo apt-get install python-dev'.

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/setup.py", line 75, in <module>
      install_requires=['numpy'],
    File "/Users/obadahomsi/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/Users/obadahomsi/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/Users/obadahomsi/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/Users/obadahomsi/anaconda3/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 179, in run
      self.run_command('build')
    File "/Users/obadahomsi/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/Users/obadahomsi/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/setup.py", line 23, in run
      self.build()
    File "/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/setup.py", line 61, in build
      build.build()
    File "/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/build.py", line 114, in build
      build_no_gl()
    File "/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/build.py", line 95, in build_no_gl
      ''')
  build.BuildException:
  Build failed. HINT:

  - Ensure you have your Python development headers installed. (On Ubuntu,
    this is just 'sudo apt-get install python-dev'.

  ----------------------------------------
  Failed building wheel for go-vncdriver
  Running setup.py clean for go-vncdriver
Failed to build go-vncdriver
Installing collected packages: go-vncdriver, twisted, ujson, universe
  Running setup.py install for go-vncdriver ... error
    Complete output from command /Users/obadahomsi/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-8aj9_vqm-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    Running new build
    Env info:

    export GOPATH='/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/.build'
    export GO15VENDOREXPERIMENT='1'
    export CGO_CFLAGS='-I/Users/obadahomsi/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/Users/obadahomsi/anaconda3/include/python3.6m'
    export CGO_LDFLAGS='/usr/local/opt/jpeg-turbo/lib/libjpeg.dylib -undefined dynamic_lookup'

    Running build with OpenGL rendering.
    Building with OpenGL: GOPATH=/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/.build go build -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver. (Set GO_VNCDRIVER_NOGL to build without OpenGL.)
    go: cannot find GOROOT directory: /usr/local/go

    Note: could not build with OpenGL rendering (cf https://github.com/openai/go-vncdriver). This is expected on most servers. Going to try building without OpenGL.
    Building without OpenGL: GOPATH=/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/.build go build -tags no_gl -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver
    go: cannot find GOROOT directory: /usr/local/go
    Could not build go_vncdriver:
    Build failed. HINT:

    - Ensure you have your Python development headers installed. (On Ubuntu,
      this is just 'sudo apt-get install python-dev'.

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/setup.py", line 75, in <module>
        install_requires=['numpy'],
      File "/Users/obadahomsi/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Users/obadahomsi/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/Users/obadahomsi/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/Users/obadahomsi/anaconda3/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/Users/obadahomsi/anaconda3/lib/python3.6/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/Users/obadahomsi/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Users/obadahomsi/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/setup.py", line 23, in run
        self.build()
      File "/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/setup.py", line 61, in build
        build.build()
      File "/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/build.py", line 114, in build
        build_no_gl()
      File "/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/build.py", line 95, in build_no_gl
        ''')
    build.BuildException:
    Build failed. HINT:

    - Ensure you have your Python development headers installed. (On Ubuntu,
      this is just 'sudo apt-get install python-dev'.

    ----------------------------------------
Command "/Users/obadahomsi/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-8aj9_vqm-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/h6/kppqjt492rg589_1dwq3x3pw0000gn/T/pip-build-6zwexuyw/go-vncdriver/
obadahomsi commented 6 years ago

fixed this by installing golang from the website rather from terminal

yuqli commented 6 years ago

@obadahomsi Thanks. For other Mac users who have this problem, I have similar error installing universe and fixed it by installing 'golang' and 'libjpeg-turbo' using brew and pip respectively.

micfan commented 5 years ago

How to fix this problem in Arch?

sudo pip install universe                                                                                                                                                   mark@mark-pc
Collecting universe
  Using cached https://files.pythonhosted.org/packages/5b/5e/26ee56c16cdc83a07a3251e3425856f2ade84928de55b3fa11590ce2b912/universe-0.21.3.tar.gz
Collecting autobahn>=0.16.0 (from universe)
  Using cached https://files.pythonhosted.org/packages/d5/5d/49152a3ce88ad8f985a4f82ff9633a29f3ef2da050ae8aba8075142f5a61/autobahn-19.2.1-py2.py3-none-any.whl
Collecting docker-py==1.10.3 (from universe)
  Using cached https://files.pythonhosted.org/packages/20/10/5234c4fa9710a04184586d877d028a51dc395a1867c3d4317438514dff77/docker_py-1.10.3-py2.py3-none-any.whl
Collecting docker-pycreds==0.2.1 (from universe)
  Using cached https://files.pythonhosted.org/packages/ff/ec/14e976222468249cc50df4a031e5922581747b52dc96a0b1d5d73fee8f0e/docker_pycreds-0.2.1-py2.py3-none-any.whl
Collecting fastzbarlight>=0.0.13 (from universe)
  Using cached https://files.pythonhosted.org/packages/2b/f6/b46fe453ab12ac08c6a15808d402963819f26d4bd9daa5a899f6a3bae22d/fastzbarlight-0.0.14.tar.gz
Collecting go-vncdriver>=0.4.8 (from universe)
  Using cached https://files.pythonhosted.org/packages/26/29/5a3036974ac2d86991a806d0136c1437b851ec61481694b8b6adeafde81b/go_vncdriver-0.4.19.tar.gz
Collecting gym<0.8,>=0.7 (from universe)
  Downloading https://files.pythonhosted.org/packages/f2/af/15bc80c507108cf6de27fd356bb5939ba64b437610412e48b186ee0dedfd/gym-0.7.4.tar.gz (152kB)
    100% |████████████████████████████████| 153kB 1.9MB/s 
Requirement already satisfied: Pillow>=3.3.0 in /usr/lib/python3.7/site-packages (from universe) (5.4.1)
Requirement already satisfied: PyYAML>=3.12 in /usr/lib/python3.7/site-packages (from universe) (3.13)
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3.7/site-packages (from universe) (1.12.0)
Collecting twisted>=16.5.0 (from universe)
  Downloading https://files.pythonhosted.org/packages/5d/0e/a72d85a55761c2c3ff1cb968143a2fd5f360220779ed90e0fadf4106d4f2/Twisted-18.9.0.tar.bz2 (3.1MB)
    100% |████████████████████████████████| 3.1MB 1.9MB/s 
Collecting ujson>=1.35 (from universe)
  Downloading https://files.pythonhosted.org/packages/16/c4/79f3409bc710559015464e5f49b9879430d8f87498ecdc335899732e5377/ujson-1.35.tar.gz (192kB)
    100% |████████████████████████████████| 194kB 1.7MB/s 
Collecting txaio>=18.8.1 (from autobahn>=0.16.0->universe)
  Downloading https://files.pythonhosted.org/packages/e9/6d/e1a6f7835cde86728e5bb1f577be9b2d7d273fdb33c286e70b087d418ded/txaio-18.8.1-py2.py3-none-any.whl
Collecting requests<2.11,>=2.5.2 (from docker-py==1.10.3->universe)
  Downloading https://files.pythonhosted.org/packages/99/b4/63d99ba8e189c47d906b43bae18af4396e336f2b1bfec86af31efe2d2cb8/requests-2.10.0-py2.py3-none-any.whl (506kB)
    100% |████████████████████████████████| 512kB 2.5MB/s 
Requirement already satisfied: websocket-client>=0.32.0 in /usr/lib/python3.7/site-packages (from docker-py==1.10.3->universe) (0.54.0)
Requirement already satisfied: numpy in /usr/lib/python3.7/site-packages (from go-vncdriver>=0.4.8->universe) (1.16.1)
Collecting pyglet>=1.2.0 (from gym<0.8,>=0.7->universe)
  Downloading https://files.pythonhosted.org/packages/1c/fc/dad5eaaab68f0c21e2f906a94ddb98175662cc5a654eee404d59554ce0fa/pyglet-1.3.2-py2.py3-none-any.whl (1.0MB)
    100% |████████████████████████████████| 1.0MB 2.5MB/s 
Collecting zope.interface>=4.4.2 (from twisted>=16.5.0->universe)
  Downloading https://files.pythonhosted.org/packages/3a/b5/5cbafbe09bbfc242503b0cd9bcf9dee32458b3ca166f6a63cb7b4f465b60/zope.interface-4.6.0-cp37-cp37m-manylinux1_x86_64.whl (167kB)
    100% |████████████████████████████████| 174kB 2.4MB/s 
Collecting constantly>=15.1 (from twisted>=16.5.0->universe)
  Downloading https://files.pythonhosted.org/packages/b9/65/48c1909d0c0aeae6c10213340ce682db01b48ea900a7d9fce7a7910ff318/constantly-15.1.0-py2.py3-none-any.whl
Collecting incremental>=16.10.1 (from twisted>=16.5.0->universe)
  Downloading https://files.pythonhosted.org/packages/f5/1d/c98a587dc06e107115cf4a58b49de20b19222c83d75335a192052af4c4b7/incremental-17.5.0-py2.py3-none-any.whl
Collecting Automat>=0.3.0 (from twisted>=16.5.0->universe)
  Downloading https://files.pythonhosted.org/packages/a3/86/14c16bb98a5a3542ed8fed5d74fb064a902de3bdd98d6584b34553353c45/Automat-0.7.0-py2.py3-none-any.whl
Collecting hyperlink>=17.1.1 (from twisted>=16.5.0->universe)
  Downloading https://files.pythonhosted.org/packages/a7/b6/84d0c863ff81e8e7de87cff3bd8fd8f1054c227ce09af1b679a8b17a9274/hyperlink-18.0.0-py2.py3-none-any.whl
Collecting PyHamcrest>=1.9.0 (from twisted>=16.5.0->universe)
  Downloading https://files.pythonhosted.org/packages/9a/d5/d37fd731b7d0e91afcc84577edeccf4638b4f9b82f5ffe2f8b62e2ddc609/PyHamcrest-1.9.0-py2.py3-none-any.whl (52kB)
    100% |████████████████████████████████| 61kB 3.6MB/s 
Collecting attrs>=17.4.0 (from twisted>=16.5.0->universe)
  Downloading https://files.pythonhosted.org/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl
Collecting future (from pyglet>=1.2.0->gym<0.8,>=0.7->universe)
  Downloading https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz (829kB)
    100% |████████████████████████████████| 829kB 2.7MB/s 
Requirement already satisfied: setuptools in /usr/lib/python3.7/site-packages (from zope.interface>=4.4.2->twisted>=16.5.0->universe) (40.8.0)
Requirement already satisfied: idna>=2.5 in /usr/lib/python3.7/site-packages (from hyperlink>=17.1.1->twisted>=16.5.0->universe) (2.8)
paddlepaddle 1.2.1 requires protobuf==3.1, which is not installed.
paddlepaddle 1.2.1 has requirement requests==2.9.2, but you'll have requests 2.10.0 which is incompatible.
docker 3.7.0 has requirement docker-pycreds>=0.4.0, but you'll have docker-pycreds 0.2.1 which is incompatible.
docker 3.7.0 has requirement requests!=2.18.0,>=2.14.2, but you'll have requests 2.10.0 which is incompatible.
Installing collected packages: txaio, autobahn, docker-pycreds, requests, docker-py, fastzbarlight, go-vncdriver, future, pyglet, gym, zope.interface, constantly, incremental, attrs, Automat, hyperlink, PyHamcrest, twisted, ujson, universe
  Found existing installation: docker-pycreds 0.4.0
    Uninstalling docker-pycreds-0.4.0:
      Successfully uninstalled docker-pycreds-0.4.0
  Found existing installation: requests 2.21.0
    Uninstalling requests-2.21.0:
      Successfully uninstalled requests-2.21.0
  Running setup.py install for fastzbarlight ... done
  Running setup.py install for go-vncdriver ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-hy10zfpg/go-vncdriver/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-record-cgm19nuq/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    Running new build
    Env info:

    export GOPATH='/tmp/pip-install-hy10zfpg/go-vncdriver/.build'
    export GO15VENDOREXPERIMENT='1'
    export CGO_CFLAGS='-I/usr/lib/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m'
    export CGO_LDFLAGS='ld -L/usr/lib -lpython3.7m'

    Running build with OpenGL rendering.
    Building with OpenGL: GOPATH=/tmp/pip-install-hy10zfpg/go-vncdriver/.build go build -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver. (Set GO_VNCDRIVER_NOGL to build without OpenGL.)
    # runtime/cgo
    gcc: error: ld: No such file or directory

    Note: could not build with OpenGL rendering (cf https://github.com/openai/go-vncdriver). This is expected on most servers. Going to try building without OpenGL.
    Building without OpenGL: GOPATH=/tmp/pip-install-hy10zfpg/go-vncdriver/.build go build -tags no_gl -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver
    # runtime/cgo
    gcc: error: ld: No such file or directory
    Could not build go_vncdriver:
    Build failed. HINT:

    - Ensure you have your Python development headers installed. (On Ubuntu,
      this is just 'sudo apt-get install python-dev'.

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-hy10zfpg/go-vncdriver/setup.py", line 75, in <module>
        install_requires=['numpy'],
      File "/usr/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib/python3.7/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/tmp/pip-install-hy10zfpg/go-vncdriver/setup.py", line 23, in run
        self.build()
      File "/tmp/pip-install-hy10zfpg/go-vncdriver/setup.py", line 61, in build
        build.build()
      File "/tmp/pip-install-hy10zfpg/go-vncdriver/build.py", line 114, in build
        build_no_gl()
      File "/tmp/pip-install-hy10zfpg/go-vncdriver/build.py", line 95, in build_no_gl
        ''')
    build.BuildException:
    Build failed. HINT:

    - Ensure you have your Python development headers installed. (On Ubuntu,
      this is just 'sudo apt-get install python-dev'.

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-hy10zfpg/go-vncdriver/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-record-cgm19nuq/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-hy10zfpg/go-vncdriver/
ogorodnikoff2012 commented 3 years ago

@micfan There is a bug in build.py file of this package, it cannot find libjpeg. You have to run export LIBJPG=/usr/lib/libjpeg.so before installation (see https://www.archlinux.org/packages/extra/x86_64/libjpeg-turbo/files/)

Ishaanjolly commented 2 years ago

Hi, I do not know if this thread is still active or not. Bu installation of Universe on MacOS is a pain. I'm getting this error despite installing turbo as highlighted. Please if someone could help me?

Building wheels for collected packages: go-vncdriver Building wheel for go-vncdriver (setup.py) ... error ERROR: Command errored out with exit status 1: command: /Users/ishaanjolly/opt/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-fd7mkp3c/go-vncdriver/setup.py'"'"'; file='"'"'/private/tmp/pip-install-fd7mkp3c/go-vncdriver/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 /private/tmp/pip-wheel-v3v71h2a cwd: /private/tmp/pip-install-fd7mkp3c/go-vncdriver/ Complete output (40 lines): running bdist_wheel running build Running new build Could not build go_vncdriver: Could not find libjpeg. HINT: try 'sudo apt-get install libjpeg-turbo8-dev' on Ubuntu or 'brew install libjpeg-turbo' on OSX Traceback (most recent call last): File "/private/tmp/pip-install-fd7mkp3c/go-vncdriver/build.py", line 54, in build output = subprocess.check_output(['ld', '-ljpeg', '--trace-symbol', 'jpeg_CreateDecompress', '-e', '0'], stderr=subprocess.STDOUT) File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/subprocess.py", line 411, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/subprocess.py", line 512, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ld', '-ljpeg', '--trace-symbol', 'jpeg_CreateDecompress', '-e', '0']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "/private/tmp/pip-install-fd7mkp3c/go-vncdriver/setup.py", line 67, in setup(name='go_vncdriver', File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/site-packages/setuptools/init.py", line 153, in setup return distutils.core.setup(**attrs) File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup dist.run_commands() File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 290, in run self.run_command('build') File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/private/tmp/pip-install-fd7mkp3c/go-vncdriver/setup.py", line 23, in run self.build() File "/private/tmp/pip-install-fd7mkp3c/go-vncdriver/setup.py", line 61, in build build.build() File "/private/tmp/pip-install-fd7mkp3c/go-vncdriver/build.py", line 57, in build raise BuildException("Could not find libjpeg. HINT: try 'sudo apt-get install libjpeg-turbo8-dev' on Ubuntu or 'brew install libjpeg-turbo' on OSX") build.BuildException: Could not find libjpeg. HINT: try 'sudo apt-get install libjpeg-turbo8-dev' on Ubuntu or 'brew install libjpeg-turbo' on OSX

ERROR: Failed building wheel for go-vncdriver Running setup.py clean for go-vncdriver Failed to build go-vncdriver Installing collected packages: go-vncdriver, gym, universe, requests Running setup.py install for go-vncdriver ... error ERROR: Command errored out with exit status 1: command: /Users/ishaanjolly/opt/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-fd7mkp3c/go-vncdriver/setup.py'"'"'; file='"'"'/private/tmp/pip-install-fd7mkp3c/go-vncdriver/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-m6iue46h/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ishaanjolly/opt/anaconda3/include/python3.8/go-vncdriver cwd: /private/tmp/pip-install-fd7mkp3c/go-vncdriver/ Complete output (42 lines): running install running build Running new build Could not build go_vncdriver: Could not find libjpeg. HINT: try 'sudo apt-get install libjpeg-turbo8-dev' on Ubuntu or 'brew install libjpeg-turbo' on OSX Traceback (most recent call last): File "/private/tmp/pip-install-fd7mkp3c/go-vncdriver/build.py", line 54, in build output = subprocess.check_output(['ld', '-ljpeg', '--trace-symbol', 'jpeg_CreateDecompress', '-e', '0'], stderr=subprocess.STDOUT) File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/subprocess.py", line 411, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/subprocess.py", line 512, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ld', '-ljpeg', '--trace-symbol', 'jpeg_CreateDecompress', '-e', '0']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/tmp/pip-install-fd7mkp3c/go-vncdriver/setup.py", line 67, in <module>
    setup(name='go_vncdriver',
  File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/distutils/command/install.py", line 545, in run
    self.run_command('build')
  File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/Users/ishaanjolly/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/private/tmp/pip-install-fd7mkp3c/go-vncdriver/setup.py", line 23, in run
    self.build()
  File "/private/tmp/pip-install-fd7mkp3c/go-vncdriver/setup.py", line 61, in build
    build.build()
  File "/private/tmp/pip-install-fd7mkp3c/go-vncdriver/build.py", line 57, in build
    raise BuildException("Could not find libjpeg. HINT: try 'sudo apt-get install libjpeg-turbo8-dev' on Ubuntu or 'brew install libjpeg-turbo' on OSX")
build.BuildException: Could not find libjpeg. HINT: try 'sudo apt-get install libjpeg-turbo8-dev' on Ubuntu or 'brew install libjpeg-turbo' on OSX
----------------------------------------

ERROR: Command errored out with exit status 1: /Users/ishaanjolly/opt/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-fd7mkp3c/go-vncdriver/setup.py'"'"'; file='"'"'/private/tmp/pip-install-fd7mkp3c/go-vncdriver/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-m6iue46h/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ishaanjolly/opt/anaconda3/include/python3.8/go-vncdriver Check the logs for full command output.

DenChenn commented 2 years ago

Having the sample problem on M1 chip... I have tried downloading golang from official website also downloading libjpeg-turbo via pip... NONE OF THEM WORK...

Keylessboi commented 1 year ago

I get this error on pop_os a branch of ubuntu. I tried all the examples above ``` Reading package lists... Done Building dependency tree... Done Reading state information... Done python-dev-is-python3 is already the newest version (3.9.2-2). python2 is already the newest version (2.7.18-3). Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: python2 : Conflicts: python2:i386 but 2.7.18-3 is to be installed python2:i386 : PreDepends: python2-minimal:i386 (= 2.7.18-3) but it is not installable Depends: python2.7:i386 (>= 2.7.18~) but it is not installable Conflicts: python2 but 2.7.18-3 is to be installed python2-dev : Conflicts: python2-dev:i386 but 2.7.18-3 is to be installed python2-dev:i386 : Depends: python2.7-dev:i386 (>= 2.7.18~) but it is not installable Conflicts: python2-dev but 2.7.18-3 is to be installed E: Unable to correct problems, you have held broken packages. (universe) root@pop-os:/home/universe# pip install -e . Obtaining file:///home/universe Requirement already satisfied: autobahn>=0.16.0 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from universe==0.21.5) (21.2.1) Requirement already satisfied: docker-py==1.10.3 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from universe==0.21.5) (1.10.3) Requirement already satisfied: docker-pycreds==0.2.1 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from universe==0.21.5) (0.2.1) Requirement already satisfied: fastzbarlight>=0.0.13 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from universe==0.21.5) (0.0.14) Collecting go-vncdriver>=0.4.8 Using cached go_vncdriver-0.4.19.tar.gz (638 kB) Processing /root/.cache/pip/wheels/35/54/f1/608768a57e3b4c6d0c8dd7bc32f039903b0370712909ba5f99/gym-0.26.2-py3-none-any.whl Requirement already satisfied: Pillow>=3.3.0 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from universe==0.21.5) (7.2.0) Requirement already satisfied: PyYAML>=3.12 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from universe==0.21.5) (5.3.1) Requirement already satisfied: six>=1.10.0 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from universe==0.21.5) (1.15.0) Requirement already satisfied: twisted>=16.5.0 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from universe==0.21.5) (22.4.0) Requirement already satisfied: ujson>=1.35 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from universe==0.21.5) (1.35) Requirement already satisfied: txaio>=20.4.1 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from autobahn>=0.16.0->universe==0.21.5) (22.2.1) Requirement already satisfied: cryptography>=2.9.2 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from autobahn>=0.16.0->universe==0.21.5) (2.9.2) Requirement already satisfied: hyperlink>=20.0.1 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from autobahn>=0.16.0->universe==0.21.5) (21.0.0) Requirement already satisfied: websocket-client>=0.32.0 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from docker-py==1.10.3->universe==0.21.5) (1.3.1) Requirement already satisfied: requests<2.11,>=2.5.2 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from docker-py==1.10.3->universe==0.21.5) (2.10.0) Requirement already satisfied: numpy in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from go-vncdriver>=0.4.8->universe==0.21.5) (1.18.5) Collecting dataclasses==0.8; python_version == "3.6" Using cached dataclasses-0.8-py3-none-any.whl (19 kB) Collecting gym-notices>=0.0.4 Using cached gym_notices-0.0.8-py3-none-any.whl (3.0 kB) Collecting importlib-metadata>=4.8.0; python_version < "3.10" Using cached importlib_metadata-4.8.3-py3-none-any.whl (17 kB) Requirement already satisfied: cloudpickle>=1.2.0 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from gym>=0.8.1->universe==0.21.5) (1.5.0) Requirement already satisfied: typing-extensions>=3.6.5 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from twisted>=16.5.0->universe==0.21.5) (3.7.4.2) Requirement already satisfied: attrs>=19.2.0 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from twisted>=16.5.0->universe==0.21.5) (19.3.0) Requirement already satisfied: constantly>=15.1 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from twisted>=16.5.0->universe==0.21.5) (15.1.0) Requirement already satisfied: Automat>=0.8.0 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from twisted>=16.5.0->universe==0.21.5) (22.10.0) Requirement already satisfied: incremental>=21.3.0 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from twisted>=16.5.0->universe==0.21.5) (22.10.0) Requirement already satisfied: zope.interface>=4.4.2 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from twisted>=16.5.0->universe==0.21.5) (4.7.1) Requirement already satisfied: cffi!=1.11.3,>=1.8 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from cryptography>=2.9.2->autobahn>=0.16.0->universe==0.21.5) (1.14.0) Requirement already satisfied: idna>=2.5 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from hyperlink>=20.0.1->autobahn>=0.16.0->universe==0.21.5) (2.10) Requirement already satisfied: zipp>=0.5 in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from importlib-metadata>=4.8.0; python_version < "3.10"->gym>=0.8.1->universe==0.21.5) (3.1.0) Requirement already satisfied: setuptools in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from zope.interface>=4.4.2->twisted>=16.5.0->universe==0.21.5) (49.2.0.post20200714) Requirement already satisfied: pycparser in /root/anaconda3/envs/universe/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.9.2->autobahn>=0.16.0->universe==0.21.5) (2.20) Building wheels for collected packages: go-vncdriver Building wheel for go-vncdriver (setup.py) ... error ERROR: Command errored out with exit status 1: command: /root/anaconda3/envs/universe/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-35x79kua/go-vncdriver/setup.py'"'"'; file='"'"'/tmp/pip-install-35x79kua/go-vncdriver/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/pip-wheel-bih01y95 cwd: /tmp/pip-install-35x79kua/go-vncdriver/ Complete output (55 lines): running bdist_wheel running build Running new build Env info:

export GOPATH='/tmp/pip-install-35x79kua/go-vncdriver/.build' export GO15VENDOREXPERIMENT='1' export CGO_CFLAGS='-I/root/anaconda3/envs/universe/lib/python3.6/site-packages/numpy/core/include -I/root/anaconda3/envs/universe/include/python3.6m' export CGO_LDFLAGS='/usr/lib/x86_64-linux-gnu/libjpeg.so -L/root/anaconda3/envs/universe/lib -lpython3.6m'

Running build with OpenGL rendering. Building with OpenGL: GOPATH=/tmp/pip-install-35x79kua/go-vncdriver/.build go build -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver. (Set GO_VNCDRIVER_NOGL to build without OpenGL.) no required module provides package github.com/openai/go-vncdriver: go.mod file not found in current directory or any parent directory; see 'go help modules'

Note: could not build with OpenGL rendering (cf https://github.com/openai/go-vncdriver). This is expected on most servers. Going to try building without OpenGL. Building without OpenGL: GOPATH=/tmp/pip-install-35x79kua/go-vncdriver/.build go build -tags no_gl -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver no required module provides package github.com/openai/go-vncdriver: go.mod file not found in current directory or any parent directory; see 'go help modules' Could not build go_vncdriver: Build failed. HINT:

sarvasvaKhare commented 1 year ago

for Mac, I solved this error by running this command go env -w GO111MODULE=off. Please check that you have both go and libjpeg-turbo installed already.

homilais commented 6 months ago

@sarvasvaKhare thanks for your help。 with error info

no required module provides package github.com/openai/go-vncdriver: go.mod file not found in current directory or any parent directory; see 'go help modules'
stevenlucas76 commented 1 month ago

I solved this problem by downloading go-vncdriver from https://github.com/openai/go-vncdriver. And compiled it.

notice: apt-get install -y python3-dev make golang libjpeg-turbo8-dev