Coder Social home page Coder Social logo

go-vncdriver's Introduction

Status: Archive (code is provided as-is, no updates expected)

go-vncdriver

A fast VNC driver.

Installation on Ubuntu:

If you have Ubuntu 14, get the latest Go compiler:

# Needed for Ubuntu 14, not Ubuntu 16
$ sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable  # for newer golang
$ sudo apt-get update

Then

$ sudo apt-get install -y python-dev make golang libjpeg-turbo8-dev

And if you want OpenGL rendering support (you probably do, unless you're running on a headless server):

$ sudo apt-get install libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev \
  libxxf86vm-dev libgl1-mesa-dev mesa-common-dev

NOTE: If you're using a Python named something other than python, such as python3, replace both python and pip below with the commands for the corresponding Python

$ git clone https://github.com/openai/go-vncdriver.git
$ cd go-vncdriver
$ python build.py
$ pip install -e .

Installation on OSX:

$ brew install libjpeg-turbo golang

(On OSX newer than El Capitan, you may need to install golang from their site, and then just install brew install libjpeg-turbo.)

Then

$ git clone https://github.com/openai/go-vncdriver.git
$ cd go-vncdriver
$ python build.py
$ pip install -e .

OpenGL viewer

The OpenGL renderer is optional. If you get an error of the form:

go_vncdriver was installed without OpenGL support. See https://github.com/openai/go-vncdriver for details on how debug.

That means that your go-vncdriver was built without OpenGL support. (The installer will first try to install with OpenGL, but will fall back to installing without it.)

Do the installation steps above, including the extra dependencies to add OpenGL rendering.

If you get errors like below, the dependencies aren't installed properly:

fatal error: X11/Xcursor/Xcursor.h: No such file or directory
fatal error: X11/extensions/Xrandr.h: No such file or directory
fatal error: X11/extensions/XInput.h: No such file or directory
fatal error: GL/gl.h: No such file or directory

Python versions

go_vncdriver has been tested on Python 2.7 and 3.5.

go-vncdriver's People

Contributors

baoblackcoal avatar ben-harack avatar catherio avatar christopherhesse avatar ematvey avatar gdb avatar gerred avatar html5cat avatar jeremyschlatter avatar jonathathan avatar nottombrown avatar tlbtlbtlb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-vncdriver's Issues

Remove go-vncdriver

I am trying to set up Universe with OpenAI but am having trouble with go-vncdriver. When I run the given test program, named trial.py in this case, I'm given this error:
Traceback (most recent call last): File "trial.py", line 11, in <module> env.render() File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 192, in render return self._render(mode=mode, close=close) File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 342, in _render return self.env.render(mode, close) File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 192, in render return self._render(mode=mode, close=close) File "/home/nathaniel/Documents/machinelearning/universe/universe/wrappers/render.py", line 49, in _render return self.env.render(mode=mode, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 192, in render return self._render(mode=mode, close=close) File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 342, in _render return self.env.render(mode, close) File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 192, in render return self._render(mode=mode, close=close) File "/home/nathaniel/Documents/machinelearning/universe/universe/envs/vnc_env.py", line 533, in _render self.vnc_session.render(self.connection_names[0]) go_vncdriver.Error: /tmp/pip-build-y6uWFh/go-vncdriver/.build/src/github.com/openai/go-vncdriver/main.go:387: go_vncdriver was installed without OpenGL support. See https://github.com/openai/go-vncdriver for details on how debug.

I have now installed the correct dependencies and gotten it to build with OpenGL, but the program is still running without it. Is there a way to remove go-vcndriver and do a clean install?

go_vncdriver was installed without OpenGL support

Hi,
I ran into this problem even after installing all the depedencies.
build.sh gives me:

./build.sh: 60: ./build.sh: [[: not found
Env info:
export CGO_LDFLAGS='/usr/lib/x86_64-linux-gnu/libjpeg.so -L/home/ubuntu/miniconda3/envs/myUniverse/lib -lpython3.5m'
export CGO_CFLAGS='-I/home/ubuntu/miniconda3/envs/myUniverse/lib/python3.5/site-packages/numpy/core/include -I/home/ubuntu/miniconda3/envs/myUniverse/include/python3.5m'
Running build with OpenGL rendering.
Building with OpenGL: go build -buildmode=c-shared -o go_vncdriver.so. (Set GO_VNCDRIVER_NOGL to build without OpenGL.)

Then install go-vncdriver again.
And when i run the exact example from the universe readme, i got the error mentionned above.

I have no ideas where this could come from

Maybe ditch libjpeg

We added libjpeg because my first implementation of tight decoding was really slow at decompressing jpeg. In particular, it spent a lot of time in image.At, and I have since found out that the Go authors recommend not using that function, and using the underlying Image implementation (image.RGBA or whatever else it happens to be in our case) instead, because the underlying implementation will be much faster.

Using the recommended Go implementation might be fast enough, and it will simplify installation of this package.

Cannot build with OpenGL: "/usr/bin/ld: cannot find -lGL"

Hello,

I followed the troubleshooting steps and installed all dependencies as required in the README. However, upon re-running ./build.py after everything, I receive the following errors:

/build.py Env info: export GOPATH='/home/tyler/Documents/universe/go-vncdriver/.build' export CGO_CFLAGS='-I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7' export CGO_LDFLAGS='/usr/lib/x86_64-linux-gnu/libjpeg.so -L/usr/lib -lpython2.7' export GO15VENDOREXPERIMENT='1' Running build with OpenGL rendering. Building with OpenGL: GOPATH=/home/tyler/Documents/universe/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.) # github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit status # github.com/openai/go-vncdriver/vendor/github.com/go-gl/gl/v2.1/gl /usr/bin/ld: cannot find -lGL /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit status 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.

I have all of the Dependencies from the dependency section installed, the files are there, but for some reason it seems to not be linking the -lGL libraries.

OS is Ubuntu 14.04, Nvidia 357 drivers & GTX 1070.

Any help would be appreciated.

Thanks,

python build.py error on Mac mojave python3.5

Env info:

export CGO_LDFLAGS='/usr/local/opt/jpeg-turbo/lib/libjpeg.dylib -undefined dynamic_lookup -s'
export GO15VENDOREXPERIMENT='1'
export CGO_CFLAGS='-I/Users/valarian/python/miniconda3/envs/python35/lib/python3.5/site-packages/numpy-1.16.3-py3.5-macosx-10.7-x86_64.egg/numpy/core/include -I/Users/valarian/python/miniconda3/envs/python35/include/python3.5m'
export GOPATH='/Users/valarian/python/miniconda3/envs/python35/go-vncdriver/.build'

Running build with OpenGL rendering.
Building with OpenGL: GOPATH=/Users/valarian/python/miniconda3/envs/python35/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

In file included from _cgo_export.c:3:
/Users/valarian/python/miniconda3/envs/python35/include/python3.5m/stdlib.h:88:10: fatal error: '__config' file not found

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=/Users/valarian/python/miniconda3/envs/python35/go-vncdriver/.build go build -tags no_gl -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver

runtime/cgo

In file included from _cgo_export.c:3:
/Users/valarian/python/miniconda3/envs/python35/include/python3.5m/stdlib.h:88:10: fatal error: '__config' file not found

Build failed. HINT:

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

Error building on Manjaro

Hey, i'm trying to install go-vncdriver for universe and when i run sudo python setup.py build i get this output:

`running build
Running new build
Env info:

export GOPATH='/home/arvid/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=/home/arvid/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=/home/arvid/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 "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 "setup.py", line 23, in run
    self.build()
  File "setup.py", line 61, in build
    build.build()
  File "/home/arvid/go-vncdriver/build.py", line 114, in build
    build_no_gl()
  File "/home/arvid/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'.
`

Im running Manjaro linux v 18.1.2

Ensure you have your Python development headers installed.

I am trying to install Universe from OpenAI and go-vncdriver is giving me problems.

I get a message I should make sure I have python development headers installed (which I do) but I also tried under Anaconda (which is recommended by Universe and does not have a python-dev package, but it is said to already include headers) and I get same error.

The full output is:

read |0: interrupted system call

Build failed. HINT:

  • Ensure you have your Python development headers installed. (On Ubuntu,

    this is just 'sudo apt-get install python-dev'.

make: *** [build] Error 1

Could not build go_vncdriver: Command '['make', 'build']' returned non-zero exit status 2

Traceback (most recent call last):

File "", line 1, in

File "/tmp/pip_build_root/go-vncdriver/setup.py", line 79, in

setup_requires=['numpy'],

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 53, in run

return _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_root/go-vncdriver/setup.py", line 25, in run

self.build()

File "/tmp/pip_build_root/go-vncdriver/setup.py", line 64, in build

subprocess.check_call(cmd, cwd=here())

Build errors on macOS Sierra

Getting a bunch of these trying to build on macOS Sierra.
Am I missing any dependencies?

# github.com/openai/go-vncdriver/vendor/github.com/pixiv/go-libjpeg/jpeg
couldn't understand kern.osversion `16.1.0'
ld: warning: object file 
(/var/folders/tf/y27g06dd1lvd0zwyqlc577980000gn/T/go-build280452270/github.com/openai/go-vncdriver/vendor/github.com/pixiv/go-libjpeg/jpeg/_obj/_cgo_main.o) 
was built for newer OSX version (10.12) than being linked (10.4)

Installing rendering dependencies doesn't fix "go_vncdriver was installed without OpenGL support" error.

I was trying to run a file called demo.py:

import gym
import universe  # register the universe environments

env = gym.make('flashgames.DuskDrive-v0')
env.configure(remotes=1)  # automatically creates a local docker container
observation_n = env.reset()

while True:
  action_n = [[('KeyEvent', 'ArrowUp', True)] for ob in observation_n]  # your agent here
  observation_n, reward_n, done_n, info = env.step(action_n)
  env.render()

But I got the error message:
go_vncdriver was installed without OpenGL support. See https://github.com/openai/go-vncdriver for details on how debug.

I then ran the code under the installation heading of this repository and reinstalled go-vncdriver, but the bug persists.

Anyone know why this might be?

Some things that might help:

  • When I try and search for libx... files on my Ubuntu hard drive I can't find them.
    -This is the error report:
universe-OXQ5bY-0 | [2017-01-01 00:43:01,575] [INFO:universe.rewarder.remote] WebSocket connection established
Traceback (most recent call last):
  File "demo.py", line 11, in <module>
    env.render()
  File "/home/tomsil/miniconda3/envs/universe/lib/python3.6/site-packages/gym/core.py", line 175, in render
    return self._render(mode=mode, close=close)
  File "/home/tomsil/miniconda3/envs/universe/lib/python3.6/site-packages/gym/core.py", line 344, in _render
    return self.env.render(mode, close)
  File "/home/tomsil/miniconda3/envs/universe/lib/python3.6/site-packages/gym/core.py", line 175, in render
    return self._render(mode=mode, close=close)
  File "/home/tomsil/universe/universe/wrappers/render.py", line 49, in _render
    return self.env.render(mode=mode, *args, **kwargs)
  File "/home/tomsil/miniconda3/envs/universe/lib/python3.6/site-packages/gym/core.py", line 175, in render
    return self._render(mode=mode, close=close)
  File "/home/tomsil/miniconda3/envs/universe/lib/python3.6/site-packages/gym/core.py", line 344, in _render
    return self.env.render(mode, close)
  File "/home/tomsil/miniconda3/envs/universe/lib/python3.6/site-packages/gym/core.py", line 175, in render
    return self._render(mode=mode, close=close)
  File "/home/tomsil/universe/universe/envs/vnc_env.py", line 537, in _render
    self.vnc_session.render(self.connection_names[0])
go_vncdriver.Error: /home/tomsil/universe/go-vncdriver/.build/src/github.com/openai/go-vncdriver/main.go:387: go_vncdriver was installed without OpenGL support. See https://github.com/openai/go-vncdriver for details on how debug.
[2017-01-01 00:43:01,765] Killing and removing container: id=7af960f9ff7adf7cf1f06426f0f352488e9572a6c9699f535e9579bf76c22e5b. (If this command errors, you can always kill all automanaged environments on this Docker daemon via: docker rm -f $(docker ps -q -a -f 'label=com.openai.automanaged=true')
  • When I try to run the demo.py file line by line in the linux terminal, the line env.configure(remotes=1)
    causes the terminal to endlessly spew out various commands preceded by universe-OXQ5bY-0 |

Thanks for any help

  • Tom

Building wheel for go-vncdriver (setup.py) ... error +. Setup: MacOS Mojave + Python 3.5

I have this message when I try to install Universe or vncdriver.
ยฟSomeone can help me plz?

Building wheel for go-vncdriver (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/dennis/virtualenvs/relearning/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/setup.py'"'"'; file='"'"'/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/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/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-wheel-tga4kfq9
cwd: /private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/
Complete output (55 lines):
running bdist_wheel
running build
Running new build
Env info:

export GO15VENDOREXPERIMENT='1'
export CGO_CFLAGS='-I/Users/dennis/virtualenvs/relearning/lib/python3.5/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m'
export CGO_LDFLAGS='/usr/local/opt/jpeg-turbo/lib/libjpeg.dylib -undefined dynamic_lookup'
export GOPATH='/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/.build'

Running build with OpenGL rendering.
Building with OpenGL: GOPATH=/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/.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: working directory is not part of a module

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/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/.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: working directory is not part of a module
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 "", line 1, in
File "/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/setup.py", line 75, in
install_requires=['numpy'],
File "/Users/dennis/virtualenvs/relearning/lib/python3.5/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/dennis/virtualenvs/relearning/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/setup.py", line 23, in run
self.build()
File "/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/setup.py", line 61, in build
build.build()
File "/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/build.py", line 114, in build
build_no_gl()
File "/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/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'.

ERROR: Failed building wheel for go-vncdriver
Running setup.py clean for go-vncdriver
Building wheel for gym (setup.py) ... done
Created wheel for gym: filename=gym-0.7.4-py3-none-any.whl size=204692 sha256=cae48942ac7de8ed26c1fae04761ee51e0c08534dfb302d310340232ea13f79a
Stored in directory: /Users/dennis/Library/Caches/pip/wheels/c5/26/38/1e640c85a7db5871613e0d569c4297fff415d595a144671944
Successfully built gym
Failed to build go-vncdriver
Installing collected packages: gym, go-vncdriver, fastzbarlight, docker-py, autobahn, universe
Attempting uninstall: gym
Found existing installation: gym 0.17.3
Uninstalling gym-0.17.3:
Successfully uninstalled gym-0.17.3
Running setup.py install for go-vncdriver ... error
ERROR: Command errored out with exit status 1:
command: /Users/dennis/virtualenvs/relearning/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/setup.py'"'"'; file='"'"'/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/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/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-record-eu0nyupl/install-record.txt --single-version-externally-managed --compile --install-headers /Users/dennis/virtualenvs/relearning/include/site/python3.5/go-vncdriver
cwd: /private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/
Complete output (57 lines):
running install
running build
Running new build
Env info:

export GOPATH='/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/.build'
export CGO_LDFLAGS='/usr/local/opt/jpeg-turbo/lib/libjpeg.dylib -undefined dynamic_lookup'
export CGO_CFLAGS='-I/Users/dennis/virtualenvs/relearning/lib/python3.5/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m'
export GO15VENDOREXPERIMENT='1'

Running build with OpenGL rendering.
Building with OpenGL: GOPATH=/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/.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: working directory is not part of a module

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/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/.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: working directory is not part of a module
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/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/setup.py", line 75, in <module>
    install_requires=['numpy'],
  File "/Users/dennis/virtualenvs/relearning/lib/python3.5/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Users/dennis/virtualenvs/relearning/lib/python3.5/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/command/install.py", line 539, in run
    self.run_command('build')
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/setup.py", line 23, in run
    self.build()
  File "/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/setup.py", line 61, in build
    build.build()
  File "/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/build.py", line 114, in build
    build_no_gl()
  File "/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/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'.

----------------------------------------

ERROR: Command errored out with exit status 1: /Users/dennis/virtualenvs/relearning/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/setup.py'"'"'; file='"'"'/private/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-install-dks8lxlo/go-vncdriver_2d414f74052047c998a5e5a51a457ed5/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/var/folders/cw/264vdnpj2qv5jvm2clnnx7dm0000gn/T/pip-record-eu0nyupl/install-record.txt --single-version-externally-managed --compile --install-headers /Users/dennis/virtualenvs/relearning/include/site/python3.5/go-vncdriver Check the logs for full command output.

error installing universe

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/

The error "go_vncdriver was installed without OpenGL support" is still existed

ubantu 14.04, python 2.7
I am trying to install universe, The error occurs: go_vncdriver was installed without OpenGL support.

The output of ./build.sh is

"zqc@zqc-P453UJ:~/go-vncdriver$ ./build.sh
Env info:

export GOPATH='/home/zqc/go-vncdriver/.build'
export CGO_CFLAGS='-I/home/zqc/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/home/zqc/anaconda2/include/python2.7'
export CGO_LDFLAGS='/usr/lib/x86_64-linux-gnu/libjpeg.so -L/home/zqc/anaconda2/lib -lpython2.7'
export GO15VENDOREXPERIMENT='1'

Running build with OpenGL rendering.
Building with OpenGL: GOPATH=/home/zqc/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.)

github.com/openai/go-vncdriver

In file included from /home/zqc/anaconda2/include/python2.7/Python.h:8:0,
from .build/src/github.com/openai/go-vncdriver/main.go:5,
from $WORK/github.com/openai/go-vncdriver/_obj/_cgo_export.c:3:
/home/zqc/anaconda2/include/python2.7/pyconfig.h:1193:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
#define _POSIX_C_SOURCE 200112L
^
In file included from /usr/include/stdlib.h:24:0,
from $WORK/github.com/openai/go-vncdriver/_obj/_cgo_export.c:2:
/usr/include/features.h:230:0: note: this is the location of the previous definition

define _POSIX_C_SOURCE 200809L"

^
The output of pip install -e ./ is:

"zqc@zqc-P453UJ:~/go-vncdriver$ pip install -e ./
Obtaining file:///home/zqc/go-vncdriver
Requirement already satisfied: numpy in /home/zqc/anaconda2/lib/python2.7/site-packages (from go-vncdriver==0.4.17)
Installing collected packages: go-vncdriver
Found existing installation: go-vncdriver 0.4.17
Uninstalling go-vncdriver-0.4.17:
Successfully uninstalled go-vncdriver-0.4.17
Running setup.py develop for go-vncdriver
Successfully installed go-vncdriver"

When I run the example of universe again in Pycharm with the interperter: /usr/bin/python2.7, the error " go_vncdriver was installed without OpenGL support." is still existed.

$which python
/home/zqc/anaconda2/bin/python

$ /usr/bin/env python -c 'import sys; print(sys.executable)'
/home/zqc/anaconda2/bin/python

Can't find -lGL while building go-vncserver, symlink issue?

Hi everyone

I'm trying to install Universe on a GTX1080 Ubuntu 14.04 Desktop. I'd like to have OpenGL rendering. However I was getting the "VNC server not built using OpenGL error", so I'm reinstalling go-vncserver.

However, I'm getting the following error:

(universe) exx@ubuntu:~/go-vncdriver$ python3 build.py 
Env info:

export GOPATH='/home/exx/go-vncdriver/.build'
export GO15VENDOREXPERIMENT='1'
export CGO_CFLAGS='-I/home/exx/anaconda2/envs/universe/lib/python3.6/site-packages/numpy/core/include -I/home/exx/anaconda2/envs/universe/include/python3.6m'
export CGO_LDFLAGS='/usr/lib/x86_64-linux-gnu/libjpeg.so -L/home/exx/anaconda2/envs/universe/lib -lpython3.6m'

Running build with OpenGL rendering.
Building with OpenGL: GOPATH=/home/exx/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.)
# github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
# github.com/openai/go-vncdriver/vendor/github.com/go-gl/gl/v2.1/gl
/usr/bin/ld: cannot find -lGL
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status

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=/home/exx/go-vncdriver/.build go build -tags no_gl -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver

I'm relatively new to Linux. But from what I understand, I think there should be some sort of a shortcut/symbolic link perhaps that could resolve this. Becuase I do have openGL installed.


(universe) exx@ubuntu:~/go-vncdriver$ glxinfo | grep versionserver glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 4.3.0 NVIDIA 375.26
OpenGL core profile shading language version string: 4.30 NVIDIA via Cg compiler
OpenGL version string: 4.5.0 NVIDIA 375.26
OpenGL shading language version string: 4.50 NVIDIA

Also in the /usr/bin/ folder, I have an ld shortcut that links to ld.bfd

Please help. Thanks

OpenGL error does not go away

When I try to run the universe starting agent I get the error go_vncdriver was installed without OpenGL support. So I looked on the github of the vncdriver and did everything it said there. But the error remains.
What do I do now?

build error in mac os

I encountered the following build error in mac os 10.12.5:
Any ideas?
thanks

# github.com/openai/go-vncdriver/vendor/github.com/pixiv/go-libjpeg/jpeg
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver/vendor/github.com/pixiv/go-libjpeg/jpeg
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:69:
/usr/include/dispatch/object.h:51:22: error: a parameter list without types is only allowed in a function definition
OS_OBJECT_DECL_CLASS(dispatch_object);
                     ^
/usr/include/dispatch/object.h:60:27: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_time_t'?
_dispatch_object_validate(dispatch_object_t object) {
                          ^
/usr/include/dispatch/time.h:67:18: note: 'dispatch_time_t' declared here
typedef uint64_t dispatch_time_t;
                 ^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:69:
/usr/include/dispatch/object.h:208:17: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_retain(dispatch_object_t object);
                ^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
               ^
/usr/include/dispatch/object.h:236:18: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_release(dispatch_object_t object);
                 ^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
               ^
/usr/include/dispatch/object.h:260:22: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_get_context(dispatch_object_t object);
                     ^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
               ^
/usr/include/dispatch/object.h:278:22: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_set_context(dispatch_object_t object, void *_Nullable context);
                     ^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
               ^
/usr/include/dispatch/object.h:304:26: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_set_finalizer_f(dispatch_object_t object,
                         ^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
               ^
/usr/include/dispatch/object.h:333:19: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_activate(dispatch_object_t object);
                  ^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
               ^
/usr/include/dispatch/object.h:356:18: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_suspend(dispatch_object_t object);
                 ^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
               ^
/usr/include/dispatch/object.h:385:17: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_resume(dispatch_object_t object);
                ^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
               ^
/usr/include/dispatch/object.h:451:31: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_notify(void *object, dispatch_object_t queue,
                              ^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
               ^
/usr/include/dispatch/object.h:548:16: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_debug(dispatch_object_t object, const char *message, ...);
               ^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
               ^
/usr/include/dispatch/object.h:554:17: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_debugv(dispatch_object_t object, const char *message, va_list ap);
                ^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
               ^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:70:
/usr/include/dispatch/queue.h:73:1: error: cannot find protocol declaration for 'OS_dispatch_object'
DISPATCH_DECL(dispatch_queue);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
                            ^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
                OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
                                           ^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
                              ^
<scratch space>:40:1: note: expanded from here
OS_dispatch_object
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:70:
/usr/include/dispatch/queue.h:429:1: error: cannot find protocol declaration for 'OS_dispatch_object'; did you mean 'OS_dispatch_queue'?
DISPATCH_DECL(dispatch_queue_attr);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
                            ^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
                OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
                                           ^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
                              ^
<scratch space>:41:1: note: expanded from here
OS_dispatch_object
^
/usr/include/dispatch/queue.h:73:1: note: 'OS_dispatch_queue' declared here
DISPATCH_DECL(dispatch_queue);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
                            ^
/usr/local/include/os/object.h:88:3: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
                OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
                ^
/usr/local/include/os/object.h:82:13: note: expanded from macro 'OS_OBJECT_DECL_IMPL'
                @protocol OS_OBJECT_CLASS(name) __VA_ARGS__ \
                          ^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
                              ^
<scratch space>:41:1: note: expanded from here
OS_dispatch_queue
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:70:
/usr/include/dispatch/queue.h:928:27: error: unknown type name 'dispatch_object_t'; did you mean 'dispatch_block_t'?
dispatch_set_target_queue(dispatch_object_t object,
                          ^
/usr/include/dispatch/object.h:185:16: note: 'dispatch_block_t' declared here
typedef void (^dispatch_block_t)(void);
               ^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:72:
/usr/include/dispatch/source.h:57:1: error: cannot find protocol declaration for 'OS_dispatch_object'; did you mean 'OS_dispatch_queue'?
DISPATCH_SOURCE_DECL(dispatch_source);
^
/usr/include/dispatch/object.h:128:3: note: expanded from macro 'DISPATCH_SOURCE_DECL'
                DISPATCH_DECL(name);
                ^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
                            ^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
                OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
                                           ^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
                              ^
<scratch space>:41:1: note: expanded from here
OS_dispatch_object
^
/usr/include/dispatch/queue.h:73:1: note: 'OS_dispatch_queue' declared here
DISPATCH_DECL(dispatch_queue);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
                            ^
/usr/local/include/os/object.h:88:3: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
                OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
                ^
/usr/local/include/os/object.h:82:13: note: expanded from macro 'OS_OBJECT_DECL_IMPL'
                @protocol OS_OBJECT_CLASS(name) __VA_ARGS__ \
                          ^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
                              ^
<scratch space>:41:1: note: expanded from here
OS_dispatch_queue
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:73:
/usr/include/dispatch/group.h:36:1: error: cannot find protocol declaration for 'OS_dispatch_object'
DISPATCH_DECL(dispatch_group);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
                            ^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
                OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
                                           ^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
                              ^
<scratch space>:17:1: note: expanded from here
OS_dispatch_object
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:74:
/usr/include/dispatch/semaphore.h:37:1: error: cannot find protocol declaration for 'OS_dispatch_object'
DISPATCH_DECL(dispatch_semaphore);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
                            ^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
                OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
                                           ^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
                              ^
<scratch space>:18:1: note: expanded from here
OS_dispatch_object
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:76:
/usr/include/dispatch/data.h:44:1: error: cannot find protocol declaration for 'OS_dispatch_object'
DISPATCH_DATA_DECL(dispatch_data);
^
/usr/include/dispatch/object.h:130:34: note: expanded from macro 'DISPATCH_DATA_DECL'
#define DISPATCH_DATA_DECL(name) DISPATCH_DECL(name)
                                 ^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
                            ^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
                OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
                                           ^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
                              ^
<scratch space>:18:1: note: expanded from here
OS_dispatch_object
^
In file included from .build/src/github.com/openai/go-vncdriver/vendor/github.com/go-gl/glfw/v3.2/glfw/native_darwin.go:7:
In file included from ./glfw/include/GLFW/glfw3native.h:90:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15:
In file included from /usr/include/dispatch/dispatch.h:77:
/usr/include/dispatch/io.h:163:1: error: cannot find protocol declaration for 'OS_dispatch_object'
DISPATCH_DECL(dispatch_io);
^
/usr/include/dispatch/object.h:56:29: note: expanded from macro 'DISPATCH_DECL'
#define DISPATCH_DECL(name) OS_OBJECT_DECL_SUBCLASS(name, dispatch_object)
                            ^
/usr/local/include/os/object.h:88:30: note: expanded from macro 'OS_OBJECT_DECL_SUBCLASS'
                OS_OBJECT_DECL_IMPL(name, <OS_OBJECT_CLASS(super)>)
                                           ^
/usr/local/include/os/object.h:80:31: note: expanded from macro 'OS_OBJECT_CLASS'
#define OS_OBJECT_CLASS(name) OS_##name
                              ^
<scratch space>:18:1: note: expanded from here
OS_dispatch_object
^
21 errors generated.
# github.com/openai/go-vncdriver/vendor/github.com/go-gl/gl/v2.1/gl
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver/vendor/github.com/go-gl/gl/v2.1/gl
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver/vendor/github.com/pixiv/go-libjpeg/jpeg
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver/vendor/github.com/pixiv/go-libjpeg/jpeg
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver
ld: warning: option -s is obsolete and being ignored
# github.com/openai/go-vncdriver
ld: warning: option -s is obsolete and being ignored
Env info:

export GO15VENDOREXPERIMENT='1'
export GOPATH='/Users/chi/Developer/gym/go-vncdriver/.build'
export CGO_CFLAGS='-I/Users/chi/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/core/include -I/Users/chi/.pyenv/versions/3.5.0/include/python3.5m'
export CGO_LDFLAGS='/usr/local/opt/jpeg-turbo/lib/libjpeg.dylib -undefined dynamic_lookup -s'

Running build with OpenGL rendering.
Building with OpenGL: GOPATH=/Users/chi/Developer/gym/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.)

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=/Users/chi/Developer/gym/go-vncdriver/.build go build -tags no_gl -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver

pip install fails when pulling from PyPI (OSX 10.11.6)

When installing via pip install go-vncdriver I ran into some arcane issues for which i cannot paste the exact console output, because I cannot reproduce them after my successful install.. but the gist of it looked something like: dsymutil invalid abbreviation code

I'm not sure what the difference is between the PyPI repo, but when I installed from source via the instructions in the README.md, I had no issue installing go-vncdriver.

I suspect that the PyPI installer script may have some differences, but I do not know the details on how these things are supposed to work.

inconsistent naming

i notice that the package is called both go-vncdriver and go_vncdriver . i think this might be causing issue with the go.exe file with the '-' being read as an option

Undefined references everywhere.

I cloned the repo, cd, and ./build.py.

user@user-kubuntu | ~/Work/go-vncdriver | master |: ./build.py

Env info:

export CGO_LDFLAGS='/usr/lib/x86_64-linux-gnu/libjpeg.so -L/home/user/.pyenv/versions/3.5.2/lib -lpython3.5m'
export CGO_CFLAGS='-I/home/user/.pyenv/versions/ai/lib/python3.5/site-packages/numpy/core/include -I/home/user/.pyenv/versions/3.5.2/include/python3.5m'
export GOPATH='/home/user/Work/go-vncdriver/.build'
export GO15VENDOREXPERIMENT='1'

Running build with OpenGL rendering.
Building with OpenGL: GOPATH=/home/user/Work/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.)
# github.com/openai/go-vncdriver
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_is_integer':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:812: undefined reference to `floor'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_divmod':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:604: undefined reference to `fmod'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:627: undefined reference to `floor'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_rem':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:575: undefined reference to `fmod'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_divmod':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:604: undefined reference to `fmod'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:627: undefined reference to `floor'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_as_integer_ratio':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:1483: undefined reference to `floor'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_round':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:1007: undefined reference to `round'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:1010: undefined reference to `round'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_pow':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:703: undefined reference to `fmod'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:713: undefined reference to `fmod'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:763: undefined reference to `pow'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:728: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:739: undefined reference to `fmod'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(longobject.o): In function `PyLong_FromString':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/longobject.c:2168: undefined reference to `log'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(pytime.o): In function `_PyTime_ObjectToTime_t':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:121: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:119: undefined reference to `ceil'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(pytime.o): In function `_PyTime_ObjectToDenominator':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:89: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:82: undefined reference to `ceil'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:89: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:82: undefined reference to `ceil'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(pytime.o): In function `_PyTime_FromObject':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:238: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:236: undefined reference to `ceil'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:238: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:236: undefined reference to `ceil'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(dynload_shlib.o): In function `_PyImport_FindSharedFuncptr':
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Python/dynload_shlib.c:82: undefined reference to `dlsym'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Python/dynload_shlib.c:95: undefined reference to `dlopen'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Python/dynload_shlib.c:126: undefined reference to `dlsym'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Python/dynload_shlib.c:95: undefined reference to `dlopen'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Python/dynload_shlib.c:101: undefined reference to `dlerror'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(_threadmodule.o): In function `PyInit__thread':
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/_threadmodule.c:1376: undefined reference to `floor'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(signalmodule.o): In function `timeval_from_double':
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/signalmodule.c:140: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/signalmodule.c:141: undefined reference to `fmod'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/signalmodule.c:140: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/signalmodule.c:141: undefined reference to `fmod'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(posixmodule.o): In function `os_forkpty_impl':
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/posixmodule.c:5972: undefined reference to `forkpty'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(posixmodule.o): In function `os_openpty_impl':
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/posixmodule.c:5878: undefined reference to `openpty'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(complexobject.o): In function `_Py_c_abs':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:196: undefined reference to `hypot'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(complexobject.o): In function `_Py_c_pow':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:125: undefined reference to `hypot'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:126: undefined reference to `pow'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:127: undefined reference to `atan2'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:129: undefined reference to `sincos'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:130: undefined reference to `exp'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:131: undefined reference to `log'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:125: undefined reference to `hypot'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:126: undefined reference to `pow'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:127: undefined reference to `atan2'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:128: undefined reference to `sincos'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(complexobject.o): In function `_Py_c_abs':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:196: undefined reference to `hypot'
collect2: error: ld returned 1 exit status

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=/home/user/Work/go-vncdriver/.build go build -tags no_gl -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver
# github.com/openai/go-vncdriver
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_is_integer':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:812: undefined reference to `floor'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_divmod':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:604: undefined reference to `fmod'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:627: undefined reference to `floor'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_rem':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:575: undefined reference to `fmod'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_divmod':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:604: undefined reference to `fmod'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:627: undefined reference to `floor'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_as_integer_ratio':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:1483: undefined reference to `floor'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_round':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:1007: undefined reference to `round'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:1010: undefined reference to `round'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(floatobject.o): In function `float_pow':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:703: undefined reference to `fmod'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:713: undefined reference to `fmod'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:763: undefined reference to `pow'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:728: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/floatobject.c:739: undefined reference to `fmod'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(longobject.o): In function `PyLong_FromString':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/longobject.c:2168: undefined reference to `log'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(pytime.o): In function `_PyTime_ObjectToTime_t':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:121: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:119: undefined reference to `ceil'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(pytime.o): In function `_PyTime_ObjectToDenominator':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:89: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:82: undefined reference to `ceil'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:89: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:82: undefined reference to `ceil'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(pytime.o): In function `_PyTime_FromObject':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:238: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:236: undefined reference to `ceil'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:238: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Python/pytime.c:236: undefined reference to `ceil'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(dynload_shlib.o): In function `_PyImport_FindSharedFuncptr':
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Python/dynload_shlib.c:82: undefined reference to `dlsym'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Python/dynload_shlib.c:95: undefined reference to `dlopen'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Python/dynload_shlib.c:126: undefined reference to `dlsym'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Python/dynload_shlib.c:95: undefined reference to `dlopen'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Python/dynload_shlib.c:101: undefined reference to `dlerror'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(_threadmodule.o): In function `PyInit__thread':
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/_threadmodule.c:1376: undefined reference to `floor'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(signalmodule.o): In function `timeval_from_double':
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/signalmodule.c:140: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/signalmodule.c:141: undefined reference to `fmod'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/signalmodule.c:140: undefined reference to `floor'
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/signalmodule.c:141: undefined reference to `fmod'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(posixmodule.o): In function `os_forkpty_impl':
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/posixmodule.c:5972: undefined reference to `forkpty'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(posixmodule.o): In function `os_openpty_impl':
/tmp/python-build.20161207101855.17159/Python-3.5.2/./Modules/posixmodule.c:5878: undefined reference to `openpty'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(complexobject.o): In function `_Py_c_abs':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:196: undefined reference to `hypot'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(complexobject.o): In function `_Py_c_pow':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:125: undefined reference to `hypot'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:126: undefined reference to `pow'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:127: undefined reference to `atan2'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:129: undefined reference to `sincos'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:130: undefined reference to `exp'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:131: undefined reference to `log'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:125: undefined reference to `hypot'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:126: undefined reference to `pow'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:127: undefined reference to `atan2'
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:128: undefined reference to `sincos'
/home/user/.pyenv/versions/3.5.2/lib/libpython3.5m.a(complexobject.o): In function `_Py_c_abs':
/tmp/python-build.20161207101855.17159/Python-3.5.2/Objects/complexobject.c:196: undefined reference to `hypot'
collect2: error: ld returned 1 exit status

Build failed. HINT:

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

python-dev and python3-dev are installed.
I'm using Kubuntu, and pyenv for managing python envs.
Since it's a new issue, perhaps the latest commit a768e8b introduced it? especially since it has to do with python headers.

Can anyone try to reproduce it?

libjpeg-turbo dependency with MacPorts

The build instructions use brew for dependencies. I can't build using MacPorts dependencies however:

MBP:~/go-vncdriver% sudo port install libjpeg-turbo
--->  Fetching archive for libjpeg-turbo
--->  Attempting to fetch libjpeg-turbo-1.5.0_0.darwin_16.x86_64.tbz2 from https://packages.macports.org/libjpeg-turbo
--->  Attempting to fetch libjpeg-turbo-1.5.0_0.darwin_16.x86_64.tbz2.rmd160 from https://packages.macports.org/libjpeg-turbo
--->  Installing libjpeg-turbo @1.5.0_0
--->  Activating libjpeg-turbo @1.5.0_0
--->  Cleaning libjpeg-turbo
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.

MBP:~/go-vncdriver% python build.py
Could not find libjpeg. HINT: try 'sudo apt-get install libjpeg-turbo8-dev' on Ubuntu or 'brew install libjpeg-turbo' on OSX

python traceback error-plz help me solve this problem

root@kali2025:~# python
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 563, in
main()
File "/usr/lib/python2.7/site.py", line 545, in main
known_paths = addusersitepackages(known_paths)
File "/usr/lib/python2.7/site.py", line 278, in addusersitepackages
user_site = getusersitepackages()
File "/usr/lib/python2.7/site.py", line 253, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/lib/python2.7/site.py", line 243, in getuserbase
USER_BASE = get_config_var('userbase')
File "/usr/lib/python2.7/sysconfig.py", line 521, in get_config_var
return get_config_vars().get(name)
File "/usr/lib/python2.7/sysconfig.py", line 420, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/usr/lib/python2.7/sysconfig.py", line 288, in _init_posix
raise IOError(msg)
IOError: invalid Python installation: unable to open /usr/lib/python2.7/config/Makefile (No such file or directory)

Adding a Dockerfile

How about adding a Dockerfile to the repository for local user testing and implementation in containerised environment?

You can assign me for this task, if needed.

Tasks

No tasks being tracked yet.

[Errno 2] No such file or directory

Trying to install universe on a raspberry pi 3 model b, but it wouldn't install. So I try compiling from source. It gave the same error, so here it is. I installed golang's official armV6 binary from the golang site for linux. I'm running Raspbian (Based on Debian) Pixel from November 2016, if that helps. I've tried debugging the error, but obviously no progress was made, since I'm posting this.

EDIT: Forgot to add that I couldn't install libjpeg-turbo8-dev from my repos, but I could install libjpeg8-dev. Really not sure how that could affect anything, but it didn't change the error message whatsoever.

Env info:

export GOPATH='/home/pi/go-vncdriver/.build'
export CGO_CFLAGS='-I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7'
export CGO_LDFLAGS='//usr/lib/arm-linux-gnueabihf/libjpeg.so -L/usr/lib -lpython2.7'
export GO15VENDOREXPERIMENT='1'

Running build with OpenGL rendering.
Building with OpenGL: GOPATH=/home/pi/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.)
Traceback (most recent call last):
  File "build.py", line 121, in <module>
    main()
  File "build.py", line 20, in main
    build()
  File "build.py", line 112, in build
    if not build_gl():
  File "build.py", line 100, in build_gl
    return not subprocess.call(cmd.split())
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

The example is outdated

The example provided in /example/usage.py is not compatible with the current version.

Tried out a couple different environments (python2/3, OS X/Ubuntu) and kept getting the following error:

Traceback (most recent call last): File "usage.py", line 12, in <module> go_vncdriver.setup() AttributeError: 'module' object has no attribute 'setup'

Unable to install on ubuntu 16 all requirements met

python build.py
Env info:

export GOPATH='/home/rjn/go-vncdriver/.build'
export GO15VENDOREXPERIMENT='1'
export CGO_CFLAGS='-I/home/rjn/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/home/rjn/anaconda3/include/python3.7m'
export CGO_LDFLAGS='/usr/lib/x86_64-linux-gnu/libjpeg.so -L/home/rjn/anaconda3/lib -lpython3.7m'

Running build with OpenGL rendering.
Building with OpenGL: GOPATH=/home/rjn/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
/home/rjn/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/libjpeg.so: undefined reference to `memcpy@GLIBC_2.14'
collect2: error: ld returned 1 exit status

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=/home/rjn/go-vncdriver/.build go build -tags no_gl -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver
# runtime/cgo
/home/rjn/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/libjpeg.so: undefined reference to `memcpy@GLIBC_2.14'
collect2: error: ld returned 1 exit status

Build failed. HINT:

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

(base) rjn@rjn-Oryx-Pro:~/go-vncdriver$ sudo apt-get install python-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-dev is already the newest version (2.7.12-1~16.04).
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.

I can compile this under python 2.7 without conda....but if I use my conda with python 3.7 if fails as above.

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.