Error on AWS/Ubuntu/GPU machine when importing `inpainter`
iuliaturc opened this issue · 0 comments
iuliaturc commented
Error on AWS VM (Ubuntu, with GPU) when attempting from detextify import inpainter
:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/detextify-venv/lib/python3.8/site-packages/detextify/inpainter.py", line 7, in <module>
import torch
File "/home/ubuntu/detextify-venv/lib/python3.8/site-packages/torch/__init__.py", line 805, in <module>
from .functional import * # noqa: F403
File "/home/ubuntu/detextify-venv/lib/python3.8/site-packages/torch/functional.py", line 8, in <module>
import torch.nn.functional as F
File "/home/ubuntu/detextify-venv/lib/python3.8/site-packages/torch/nn/__init__.py", line 1, in <module>
from .modules import * # noqa: F403
File "/home/ubuntu/detextify-venv/lib/python3.8/site-packages/torch/nn/modules/__init__.py", line 2, in <module>
from .linear import Identity, Linear, Bilinear, LazyLinear
File "/home/ubuntu/detextify-venv/lib/python3.8/site-packages/torch/nn/modules/linear.py", line 7, in <module>
from .. import functional as F
File "/home/ubuntu/detextify-venv/lib/python3.8/site-packages/torch/nn/functional.py", line 18, in <module>
from .._jit_internal import boolean_dispatch, _overload, BroadcastingList1, BroadcastingList2, BroadcastingList3
File "/home/ubuntu/detextify-venv/lib/python3.8/site-packages/torch/_jit_internal.py", line 39, in <module>
import torch.distributed.rpc
File "/home/ubuntu/detextify-venv/lib/python3.8/site-packages/torch/distributed/rpc/__init__.py", line 74, in <module>
from .server_process_global_profiler import (
File "/home/ubuntu/detextify-venv/lib/python3.8/site-packages/torch/distributed/rpc/server_process_global_profiler.py", line 6, in <module>
from torch.autograd.profiler_legacy import profile
File "/home/ubuntu/detextify-venv/lib/python3.8/site-packages/torch/autograd/__init__.py", line 17, in <module>
from .gradcheck import gradcheck, gradgradcheck
File "/home/ubuntu/detextify-venv/lib/python3.8/site-packages/torch/autograd/gradcheck.py", line 3, in <module>
import torch.testing
ModuleNotFoundError: No module named 'torch.testing'