This error message appears when I try to import span_markers
from span_marker import SpanMarkerModel
Traceback (most recent call last):
File "/home/user/name_entity.py", line 9, in <module>
File "/home/user/miniconda3/envs/span_marker_env/lib/python3.9/site-packages/span_marker/__init__.py", line 8, in <module>
import torch
File "/home/user/.local/lib/python3.9/site-packages/torch/__init__.py", line 778, in <module>
_C._initExtension(manager_path())
File "/home/user/.local/lib/python3.9/site-packages/torch/cuda/__init__.py", line 170, in <module>
_lazy_call(_check_capability)
File "/home/user/.local/lib/python3.9/site-packages/torch/cuda/__init__.py", line 168, in _lazy_call
_queued_calls.append((callable, traceback.format_stack()))
File "/home/user/miniconda3/envs/span_marker_env/lib/python3.9/traceback.py", line 197, in format_stack
return format_list(extract_stack(f, limit=limit))
File "/home/user/miniconda3/envs/span_marker_env/lib/python3.9/traceback.py", line 211, in extract_stack
stack = StackSummary.extract(walk_stack(f), limit=limit)
File "/home/user/miniconda3/envs/span_marker_env/lib/python3.9/traceback.py", line 366, in extract
f.line
File "/home/user/miniconda3/envs/span_marker_env/lib/python3.9/traceback.py", line 288, in line
self._line = linecache.getline(self.filename, self.lineno).strip()
File "/home/user/miniconda3/envs/span_marker_env/lib/python3.9/linecache.py", line 30, in getline
lines = getlines(filename, module_globals)
File "/home/user/miniconda3/envs/span_marker_env/lib/python3.9/linecache.py", line 46, in getlines
return updatecache(filename, module_globals)
File "/home/user/miniconda3/envs/span_marker_env/lib/python3.9/linecache.py", line 137, in updatecache
lines = fp.readlines()
File "/home/user/miniconda3/envs/span_marker_env/lib/python3.9/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 346: invalid continuation byte
This seems to originate from import torch, which might mean that your torch installation is not working. You can try reinstalling it or looking for advice in the torch repository.
This error message appears when I try to import span_markers