Comments (8)
What happens if you compile with clang instead of gcc?
from coinrun.
What compiler is being used to build this and what version of the compiler? Also could you create a fresh checkout of the repo and re-run the build, then paste the entire log here, along with the traceback when you run pytest coinrun
from the repo directory?
from coinrun.
Going to assume this is a one-time issue and close it until the original poster responds.
from coinrun.
Yeah, sorry you can close this for now. I haven't had a chance to build it on MacOS again.
from coinrun.
I tried this again and unfortunately the issue remains. Env details: Conda distributed Python 3.6.8, Mac OSX Mojave. I am pasting the relevant logs here:
➜ python -m coinrun.interactive
Logging to /var/folders/_h/k0yjvw6s0yz9xcgzql601lzm0000gn/T/openai-2019-02-07-19-47-57-496737
Mac, assumed python3, homebrew branch
mkdir -p .generated
mkdir -p .build-release
mkdir -p .build-debug
/usr/local/opt/qt5/bin/moc -o .generated/coinrun.moc coinrun.cpp
gcc -std=c++11 -Wall -Wno-unused-variable -Wno-unused-function -Wno-deprecated-register -fPIC -g -O3 -march=native `pkg-config --cflags Qt5Widgets` -c coinrun.cpp -o.build-release/coinrun.o -MMD -MF .build-release/coinrun.o.dep
A bunch of complier warnings follow and the error is:
gcc -shared -o .build-debug/coinrun_cpp_d.dylib .build-debug/coinrun.o -lstdc++ `pkg-config --libs Qt5Widgets`
Traceback (most recent call last):
File "/Users/ankesh/miniconda3/envs/dimrl/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/Users/ankesh/miniconda3/envs/dimrl/lib/python3.6/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/Users/ankesh/warehouse/coinrun/coinrun/__init__.py", line 1, in <module>
from .coinrunenv import init_args_and_threads
File "/Users/ankesh/warehouse/coinrun/coinrun/coinrunenv.py", line 58, in <module>
lib = npct.load_library(lib_path, os.path.dirname(__file__))
File "/Users/ankesh/miniconda3/envs/dimrl/lib/python3.6/site-packages/numpy/ctypeslib.py", line 150, in load_library
return ctypes.cdll[libpath]
File "/Users/ankesh/miniconda3/envs/dimrl/lib/python3.6/ctypes/__init__.py", line 423, in __getitem__
return getattr(self, name)
File "/Users/ankesh/miniconda3/envs/dimrl/lib/python3.6/ctypes/__init__.py", line 418, in __getattr__
dll = self._dlltype(name)
File "/Users/ankesh/miniconda3/envs/dimrl/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/ankesh/warehouse/coinrun/coinrun/.build-release/coinrun_cpp.dylib, 6): Symbol not found: __ZNSt12bad_weak_ptrD1Ev
Referenced from: /Users/ankesh/warehouse/coinrun/coinrun/.build-release/coinrun_cpp.dylib
Expected in: /usr/lib/libstdc++.6.dylib
in /Users/ankesh/warehouse/coinrun/coinrun/.build-release/coinrun_cpp.dylib
And looks like the compiler is: GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
from coinrun.
What's the output of gcc --version
?
from coinrun.
gcc (GCC) 4.8.5
from coinrun.
Compiling with clang made it work, thanks! :)
from coinrun.
Related Issues (20)
- Why is calling `init_args_and_threads` multiple times from the same process not recommended? HOT 6
- Library missing HOT 1
- How To Use HOT 14
- Easy Way to Control the Procedural Generation HOT 1
- env can not set seed to produce the same env or bug?
- trouble with fetching the logs HOT 2
- How to check Done/Termination condition in the Scalarised version of Coinrun HOT 1
- why the next_state never changes? HOT 4
- Results HOT 2
- Tensorboard HOT 1
- AttributeError: 'CoinRunVecEnv' object has no attribute 'spec' HOT 4
- Environment Make Error 1 HOT 3
- How to reset the environment? HOT 1
- Not working on Windows 10 HOT 3
- Simulating deterministic resets for a single environment HOT 2
- High variance in mean_score during test HOT 1
- batch norm always has is_training = True HOT 2
- How many distinguished environments do you use in evaluation? HOT 1
- Test level generation HOT 1
- Does not compile on the new Apple Silicon - M1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coinrun.