Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/root/Bots/infobot/create_bot.py", line 62, in load_base
for row in spamreader:
File "/usr/lib/python3.8/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 0: invalid continuation byte
Запускаю на ubuntu сервере. Если буду запускать на своем пк то все хорошо
Часть кода
with open(f"{cwd}//base//{base_name[0]}.csv", 'r',encoding='utf8') as csvfile:
spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|')
for row in spamreader: