Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jieba.dict.utf8 failed. #81

Open
haima95 opened this issue Apr 14, 2021 · 1 comment
Open

jieba.dict.utf8 failed. #81

haima95 opened this issue Apr 14, 2021 · 1 comment

Comments

@haima95
Copy link

haima95 commented Apr 14, 2021

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

@pcxpyou
Copy link

pcxpyou commented Apr 17, 2021

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 !

chenjunqian added a commit to Porkast/GSReader-Lite that referenced this issue May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants