-
Notifications
You must be signed in to change notification settings - Fork 704
Description
Hello,
I'm trying to install dynet on my local machine and I keep getting an error while importing dynet in python.
import dynet as dy
Traceback (most recent call last):
File "", line 1, in
File "dynet.py", line 17, in
from _dynet import *
ImportError: dlopen(./_dynet.so, 2): Library not loaded: @rpath/libdynet.dylib
Referenced from: /dynet-base/dynet/build/python/_dynet.so
Reason: image not found
I'm using:
- MBP w/ MacOS Sierra
- Eigen's default branch from bitbucket
- The latest dynet (w/ Today's commit that fixed TravisCI)
- boost 160
- python 2.7.10
- cmake 3.6.3
- make 3.81 (built for i386-apple-darwin11.3.0)
The make log also references that file
c++ -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F. build/temp.macosx-10.12-intel-2.7/dynet.o -L. -L/dynet-base/dynet/build/dynet/ -L/dynet-base/dynet/build/dynet/ -ldynet -o /dynet-base/dynet/build/python/_dynet.so ld: warning: ignoring file /dynet-base/dynet/build/dynet//libdynet.dylib, file was built for x86_64 which is not the architecture being linked (i386): /dynet-base/dynet/build/dynet//libdynet.dylib
Could you advise?
Thanks,
Florin.