huntzhan / pytorch-fast-elmo

A Fast ELMo Implementation. (NOT MAINTAIN ANYMORE)
MIT License
38 stars 9 forks source link

ImportError: Symbol Not Found __ZN #12

Open imranq opened 5 years ago

imranq commented 5 years ago

Description

Unable to import the library, though I installed torch v1.0 and pytorch-fast-elmo

What I Did

File "/usr/local/lib/python3.7/site-packages/pytorch_fast_elmo/init.py", line 12, in from pytorch_stateful_lstm import StatefulUnidirectionalLstm File "/usr/local/lib/python3.7/site-packages/pytorch_stateful_lstm/init.py", line 11, in from _pytorch_stateful_lstm import ( ImportError: dlopen(/usr/local/lib/python3.7/site-packages/_pytorch_stateful_lstm.cpython-37m-darwin.so, 2): Symbol not found: __ZN3c1019UndefinedTensorImpl10_singletonE Referenced from: /usr/local/lib/python3.7/site-packages/_pytorch_stateful_lstm.cpython-37m-darwin.so Expected in: flat namespace in /usr/local/lib/python3.7/site-packages/_pytorch_stateful_lstm.cpython-37m-darwin.so

RGaonkar commented 5 years ago

I am facing the same issue. Does anyone know how to solve this?

ERnest666 commented 4 years ago

I also have the exact same issue. Anyone has figured this out?

munichong commented 4 years ago

Same here