go-python / gopy

gopy generates a CPython extension module from a go package.
BSD 3-Clause "New" or "Revised" License
2.05k stars 113 forks source link

Error: Processing package: command-line-arguments #274

Closed geekgao closed 2 years ago

geekgao commented 2 years ago
➜  gowindow gopy build -output=out2 -vm=python3 sysinfo.go

--- Processing package: command-line-arguments ---

--- building package ---
gopy build -output=out2 -vm=python3 sysinfo.go
goimports -w sysinfo.go
go build -mod=mod -buildmode=c-shared -o sysinfo_go.so .
cmd had error: exit status 1  output:
sysinfo.go:55:2: package command-line-arguments is not in GOROOT (/usr/lib/go-1.16/src/command-line-arguments)

I don't know why this error happend.But sometimes it was successful. :-(

geekgao commented 2 years ago

After create a sub directory and redogo mod vendor . That works.