Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Library error (padded_sequences) after installation #1701

Open
joshuajnoble opened this issue Jun 11, 2021 · 0 comments
Open

Library error (padded_sequences) after installation #1701

joshuajnoble opened this issue Jun 11, 2021 · 0 comments

Comments

@joshuajnoble
Copy link

Steps to reproduce

  1. Install pytext using instructions at https://pytext.readthedocs.io/en/master/installation.html and https://github.com/facebookresearch/pytext
  2. Run pytext

Observed Results

Error in pytorch:

(pytvenv) joshnoble@ip-10-1-0-242:~/pytext$ pytext
Traceback (most recent call last):
  File "/home/joshnoble/pytext/pytvenv/bin/pytext", line 33, in <module>
    sys.exit(load_entry_point('pytext-nlp==0.3.3', 'console_scripts', 'pytext')())
  File "/home/joshnoble/pytext/pytvenv/bin/pytext", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.8/importlib/metadata.py", line 75, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/joshnoble/pytext/pytvenv/lib/python3.8/site-packages/pytext_nlp-0.3.3-py3.8.egg/pytext/__init__.py", line 12, in <module>
    from pytext.data.sources.data_source import DataSource
  File "/home/joshnoble/pytext/pytvenv/lib/python3.8/site-packages/pytext_nlp-0.3.3-py3.8.egg/pytext/data/__init__.py", line 12, in <module>
    from .data import Batcher, Data, PoolingBatcher, generator_iterator
  File "/home/joshnoble/pytext/pytvenv/lib/python3.8/site-packages/pytext_nlp-0.3.3-py3.8.egg/pytext/data/data.py", line 20, in <module>
    from .tensorizers import MetricTensorizer, Tensorizer, initialize_tensorizers
  File "/home/joshnoble/pytext/pytvenv/lib/python3.8/site-packages/pytext_nlp-0.3.3-py3.8.egg/pytext/data/tensorizers.py", line 24, in <module>
    from pytext.data.tokenizers import Token, Tokenizer
  File "/home/joshnoble/pytext/pytvenv/lib/python3.8/site-packages/pytext_nlp-0.3.3-py3.8.egg/pytext/data/tokenizers/__init__.py", line 4, in <module>
    from .tokenizer import (
  File "/home/joshnoble/pytext/pytvenv/lib/python3.8/site-packages/pytext_nlp-0.3.3-py3.8.egg/pytext/data/tokenizers/tokenizer.py", line 15, in <module>
    from pytext.torchscript.tokenizer import ScriptDoNothingTokenizer, ScriptWordTokenizer
  File "/home/joshnoble/pytext/pytvenv/lib/python3.8/site-packages/pytext_nlp-0.3.3-py3.8.egg/pytext/torchscript/tokenizer/__init__.py", line 4, in <module>
    from .bpe import ScriptBPE
  File "/home/joshnoble/pytext/pytvenv/lib/python3.8/site-packages/pytext_nlp-0.3.3-py3.8.egg/pytext/torchscript/tokenizer/bpe.py", line 8, in <module>
    from pytext.torchscript.utils import utf8_chars
  File "/home/joshnoble/pytext/pytvenv/lib/python3.8/site-packages/pytext_nlp-0.3.3-py3.8.egg/pytext/torchscript/utils.py", line 10, in <module>
    torch.ops.load_library("//caffe2/torch/fb/nlp/operators:padded_sequences")
  File "/home/joshnoble/.local/lib/python3.8/site-packages/torch/_ops.py", line 104, in load_library
    ctypes.CDLL(path)
  File "/usr/lib/python3.8/ctypes/__init__.py", line 369, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /caffe2/torch/fb/nlp/operators:padded_sequences: cannot open shared object file: No such file or directory

Expected Results

  • That pytext would run?

Relevant Code

Calling on the command line

$pytext train < demo/configs/docnn.json
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant