Closed haima95 closed 2 months ago
does anyone know how to fix this problem?
2021-04-14 09:54:10 /go/pkg/mod/github.com/ttys3/gojieba@v1.1.3/deps/cppjieba/DictTrie.hpp:203 FATAL exp: [ifs.is_open()] false. open /go/pkg/mod/github.com/ttys3/gojieba@v1.1.3/dict/jieba.dict.utf8 failed.
run dockerfile to build application in linux has this problem , but go run in local (mac) is ok
i encountered the same error:
2021-04-17 20:32:37 /home/xxx/work/src/github.com/yanyiwu/gojieba/deps/cppjieba/DictTrie.hpp:203 FATAL exp: [ifs.is_open()] false. open /home/xxx/work/src/github.com/yanyiwu/gojieba/dict/jieba.dict.utf8 failed.
You should pay attention:
if you "go build" on Server A, and "run" on Server B, the file "jieba.dict.utf8" should exists in Server B on the path "/home/xxx/work/src/github.com/yanyiwu/gojieba/dict/jieba.dict.utf8"
so you can copy the file to Server B, and try again !
This issue has not been updated for over 1 year and will be marked as stale. If the issue still exists, please comment or update the issue, otherwise it will be closed after 7 days.
This issue has been automatically closed due to inactivity. If the issue still exists, please reopen it.
To be honest, this is a very bad solution~ because as a go executable program~ it is hoped that it is completely independent, rather than being forced to rely on a file in a fixed path
does anyone know how to fix this problem?
2021-04-14 09:54:10 /go/pkg/mod/github.com/ttys3/gojieba@v1.1.3/deps/cppjieba/DictTrie.hpp:203 FATAL exp: [ifs.is_open()] false. open /go/pkg/mod/github.com/ttys3/gojieba@v1.1.3/dict/jieba.dict.utf8 failed.
run dockerfile to build application in linux has this problem , but go run in local (mac) is ok