anhaidgroup/deepmatcher

OSError: python3.6/site-packages/torchtext/_torchtext.so: undefined symbol

Opened this issue · 0 comments

Simply importing deepmatcher import deepmatcher as dm and running the script gives the following error:

$ python deepm.py
Traceback (most recent call last):
    from .data import process as data_process
  File "/anaconda/envs/local_nmt/lib/python3.6/site-packages/deepmatcher/data/__init__.py", line 1, in <module>
    from .field import MatchingField, reset_vector_cache
  File "/anaconda/envs/local_nmt/lib/python3.6/site-packages/deepmatcher/data/field.py", line 11, in <module>
    from torchtext import data, vocab
  File "/anaconda/envs/local_nmt/lib/python3.6/site-packages/torchtext/__init__.py", line 42, in <module>
    _init_extension()
  File "/anaconda/envs/local_nmt/lib/python3.6/site-packages/torchtext/__init__.py", line 38, in _init_extension
    torch.ops.load_library(ext_specs.origin)
  File "/anaconda/envs/local_nmt/lib/python3.6/site-packages/torch/_ops.py", line 105, in load_library
    ctypes.CDLL(path)
  File "/anaconda/envs/local_nmt/lib/python3.6/ctypes/__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /anaconda/envs/local_nmt/lib/python3.6/site-packages/torchtext/_torchtext.so: undefined symbol: _ZN3c1023_fastEqualsForContainerERKNS_6IValueES2_

The following modules are installed:

Requirement already satisfied: torch in ./lib/python3.6/site-packages (1.5.1+cpu)
Requirement already satisfied: future in ./lib/python3.6/site-packages (from torch) (0.18.2)
Requirement already satisfied: numpy in ./lib/python3.6/site-packages (from torch) (1.16.4)

Any idea how to resolve this?