You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "write_vecs2bin.py", line 18, in <module>
from bert_server.sentence_bert_server import SentenceBERT
File "/src/bert_server/sentence_bert_server.py", line 19, in <module>
faq_config.read(os.path.join(dir_name, "../config/befaq_conf.ini"))
File "/usr/local/lib/python3.6/configparser.py", line 697, in read
self._read(fp, filename)
File "/usr/local/lib/python3.6/configparser.py", line 1015, in _read
for lineno, line in enumerate(fp, start=1):
File "/usr/local/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 34: ordinal not in range(128)
读es.ini , 读sheetname.conf ,读excel文件,中文文件名都的报unicode错误,前两个我在读配置文件时候指定编码是utf-8解决了,excel这个指定编码都不行,最后是把文件改名了才解决
The text was updated successfully, but these errors were encountered: