go-python / gopy

gopy generates a CPython extension module from a go package.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't go get, error in cmd_build.go

captchanjack opened this issue · comments

Hello, I'm getting this error trying to go get
For reference I'm on an Apple m1 chip

go get github.com/go-python/gopy
# github.com/go-python/gopy
../go/src/github.com/go-python/gopy/cmd_build.go:34:9: cannot use *flag.NewFlagSet("gopy-build", flag.ExitOnError) (variable of type "github.com/gonuts/flag".FlagSet) as type "flag".FlagSet in struct literal
../go/src/github.com/go-python/gopy/cmd_build.go:60:51: cmdr.Flag.Lookup("output").Value.Get undefined (type "flag".Value has no field or method Get)
../go/src/github.com/go-python/gopy/cmd_build.go:61:44: cmdr.Flag.Lookup("name").Value.Get undefined (type "flag".Value has no field or method Get)
../go/src/github.com/go-python/gopy/cmd_build.go:62:44: cmdr.Flag.Lookup("main").Value.Get undefined (type "flag".Value has no field or method Get)
../go/src/github.com/go-python/gopy/cmd_build.go:63:40: cmdr.Flag.Lookup("vm").Value.Get undefined (type "flag".Value has no field or method Get)
../go/src/github.com/go-python/gopy/cmd_build.go:64:59: cmdr.Flag.Lookup("package-prefix").Value.Get undefined (type "flag".Value has no field or method Get)
../go/src/github.com/go-python/gopy/cmd_build.go:65:52: cmdr.Flag.Lookup("rename").Value.Get undefined (type "flag".Value has no field or method Get)
../go/src/github.com/go-python/gopy/cmd_build.go:66:50: cmdr.Flag.Lookup("symbols").Value.Get undefined (type "flag".Value has no field or method Get)
../go/src/github.com/go-python/gopy/cmd_build.go:67:49: cmdr.Flag.Lookup("no-warn").Value.Get undefined (type "flag".Value has no field or method Get)
../go/src/github.com/go-python/gopy/cmd_build.go:68:49: cmdr.Flag.Lookup("no-make").Value.Get undefined (type "flag".Value has no field or method Get)
../go/src/github.com/go-python/gopy/cmd_build.go:68:49: too many errors