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

OSError: image not found when installing from source #1663

Open
erip opened this issue Apr 1, 2021 · 1 comment
Open

OSError: image not found when installing from source #1663

erip opened this issue Apr 1, 2021 · 1 comment

Comments

@erip
Copy link

erip commented Apr 1, 2021

Steps to reproduce

  1. git clone https://github.com/facebookresearch/pytext
  2. cd pytext
  3. python -m pip install .
  4. pytext

Observed Results

WARNING:root:This caffe2 python run failed to load cuda module:No module named 'caffe2.python.caffe2_pybind11_state_gpu',and AMD hip module:No module named 'caffe2.python.caffe2_pybind11_state_hip'.Will run in CPU only mode.
Traceback (most recent call last):
  File "/Users/erippeth/miniconda3/envs/atis/bin/pytext", line 5, in <module>
    from pytext.main import main
  File "/Users/erippeth/miniconda3/envs/atis/lib/python3.7/site-packages/pytext/__init__.py", line 12, in <module>
    from pytext.data.sources.data_source import DataSource
  File "/Users/erippeth/miniconda3/envs/atis/lib/python3.7/site-packages/pytext/data/__init__.py", line 12, in <module>
    from .data import Batcher, Data, PoolingBatcher, generator_iterator
  File "/Users/erippeth/miniconda3/envs/atis/lib/python3.7/site-packages/pytext/data/data.py", line 20, in <module>
    from .tensorizers import MetricTensorizer, Tensorizer, initialize_tensorizers
  File "/Users/erippeth/miniconda3/envs/atis/lib/python3.7/site-packages/pytext/data/tensorizers.py", line 24, in <module>
    from pytext.data.tokenizers import Token, Tokenizer
  File "/Users/erippeth/miniconda3/envs/atis/lib/python3.7/site-packages/pytext/data/tokenizers/__init__.py", line 4, in <module>
    from .tokenizer import (
  File "/Users/erippeth/miniconda3/envs/atis/lib/python3.7/site-packages/pytext/data/tokenizers/tokenizer.py", line 13, in <module>
    from pytext.torchscript.tokenizer import ScriptDoNothingTokenizer, ScriptWordTokenizer
  File "/Users/erippeth/miniconda3/envs/atis/lib/python3.7/site-packages/pytext/torchscript/tokenizer/__init__.py", line 4, in <module>
    from .bpe import ScriptBPE
  File "/Users/erippeth/miniconda3/envs/atis/lib/python3.7/site-packages/pytext/torchscript/tokenizer/bpe.py", line 8, in <module>
    from pytext.torchscript.utils import utf8_chars
  File "/Users/erippeth/miniconda3/envs/atis/lib/python3.7/site-packages/pytext/torchscript/utils.py", line 10, in <module>
    torch.ops.load_library("//caffe2/torch/fb/nlp/operators:padded_sequences")
  File "/Users/erippeth/miniconda3/envs/atis/lib/python3.7/site-packages/torch/_ops.py", line 104, in load_library
    ctypes.CDLL(path)
  File "/Users/erippeth/miniconda3/envs/atis/lib/python3.7/ctypes/__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/caffe2/torch/fb/nlp/operators:padded_sequences, 6): image not found

Expected Results

This should not explode. 😄

@13293151871
Copy link

same here, any updates?

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

2 participants