-
Notifications
You must be signed in to change notification settings - Fork 956
Can't run my first agent due to go-vncdriver #167
Comments
Hi, @agarbuno, I see "no suitable image found" in the error message, so I just guess, maybe it's caused by docker? |
Hi @tarvos21 ! I have never used docker before. So I would not be able to tell if that is the main reason. I know I have it running in my computer. However, following the README.md it doesn't say anything about docker or any way I should be using it for the first agent example. Any help would be really appreciated! |
This isn't related to docker images. This:
could be due to building go_vncdriver for 64-bit, while your Python is 32-bit (or vice-versa). You didn't mention what OS you're running on. Please include the result of |
Hi @tlbtlbtlb , sorry it slipped. Here are the details.
My Python is 64-bit and the go_vncdriver should also be 64-bit since I build it with
with my conda environment activated |
Another update, I tried the same with an environment from virtualenv. The output is:
I google the message The information for that environment is very similar to the first one:
|
I'm running into the same issue as well. I have a hunch its this issue: golang/go#19734 |
Just did a quick test. This is being fixed in upstream Go, but for now I'm submitting a PR as a workaround. |
@gerred Perfect! I confirm that this works on OS Sierra with Xcode 8.3. So basically build go-vncdriver following the steps in here. After cloning the repo modify the line (if you're using OpenGL)
so it reads
and the pip-install it! |
Patch applied to go-vncdriver master: openai/go-vncdriver@d92bf96. Thanks @agarbuno, @gerred, and everyone else who helped track this down. |
It was remarkably hard tracking down the problem. I found the solution here: openai/universe#167 Without this fix, I was getting an error that looked like this: ``` > python python_to_go.py Traceback (most recent call last): File "python_to_go.py", line 12, in <module> lib = cdll.LoadLibrary('go_adder/libadder.' + lib_extension()) File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 440, in LoadLibrary return self._dlltype(name) File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 362, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen(go_adder/libadder.dylib, 6): no suitable image found. Did find: go_adder/libadder.dylib: malformed mach-o image: segment __DWARF vm overlaps segment __LINKEDIT /Users/steventroxler/kode/scratch/go-interlang/dyn_langs_to_go/go_adder/libadder.dylib: malformed mach-o image: segment __DWARF vm overlaps segment __LINKEDIT ```
Expected behavior
I start python in conda environment after installing gym and universe. I have installed golang and go-vncdriver but I still can't import the universe module. Is there something I am missing?
Actual behavior
Versions
Please include the result of running
The text was updated successfully, but these errors were encountered: