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

undefined: gojieba.NewJieba #43

Closed
marv72 opened this issue Mar 7, 2020 · 4 comments
Closed

undefined: gojieba.NewJieba #43

marv72 opened this issue Mar 7, 2020 · 4 comments

Comments

@marv72
Copy link

marv72 commented Mar 7, 2020

Getting this error running the example code:

go: finding github.com/mozillazg/go-pinyin v0.16.0
go: downloading github.com/mozillazg/go-pinyin v0.16.0
go: extracting github.com/mozillazg/go-pinyin v0.16.0
go: downloading github.com/yanyiwu/gojieba v1.1.0
go: extracting github.com/yanyiwu/gojieba v1.1.0
go: finding github.com/yanyiwu/gojieba v1.1.0

github.com/mozillazg/go-pinyin

../gopath503249456/pkg/mod/github.com/mozillazg/go-pinyin@v0.16.0/phrase.go:10:10: undefined: gojieba.NewJieba

@mozillazg
Copy link
Owner

麻烦提供一下如下信息:

  • 测试使用的操作系统是啥?
  • 使用的 go 版本是多少?
  • 上面是否是所有的输出,看起来可能是 gojieba 这个包编译失败了,应该会有对应的报错

如果不需要 v0.16.0 新增的功能的话,可以改为使用 v0.15.0 这个版本。

@lunny
Copy link

lunny commented Mar 30, 2020

Change to v0.15.0 fixed my problem. It should be affected by gojieba. I suggest not import that library.

@hurun
Copy link

hurun commented Jun 13, 2020

env GOOS=linux go build -o dbDemo_local

github.com/obase

.\main.go:30:11: undefined: gojieba.NewJieba

遇到相同的问题
golang 1.14.2
widow10
goland 2019.3

麻烦大佬了

@mozillazg
Copy link
Owner

mozillazg commented Jun 14, 2020

@hurun 麻烦试一下升级为最新版 ( v0.18.0 ) ,最新版应该没这个问题了。

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

4 participants