JenniNiku / gllvm

Generalized Linear Latent Variable Models
https://jenniniku.github.io/gllvm/
48 stars 20 forks source link

Error when installing gllvm using go #72

Closed aeroned closed 3 months ago

aeroned commented 1 year ago

The command go get github.com/SRI-CSL/gllvm/shared generates error when trying to install:

opt/go/src/github.com/SRI-CSL/gllvm/shared/compiler.go:193:18: undefined: os.CreateTemp opt/go/src/github.com/SRI-CSL/gllvm/shared/extractor.go:469:21: undefined: os.MkdirTemp opt/go/src/github.com/SRI-CSL/gllvm/shared/extractor.go:609:21: undefined: os.MkdirTemp opt/go/src/github.com/SRI-CSL/gllvm/shared/extractor.go:621:18: undefined: os.CreateTemp opt/go/src/github.com/SRI-CSL/gllvm/shared/extractor.go:645:19: undefined: os.CreateTemp opt/go/src/github.com/SRI-CSL/gllvm/shared/extractor.go:780:13: undefined: os.WriteFile opt/go/src/github.com/SRI-CSL/gllvm/shared/extractor.go:786:13: undefined: os.WriteFile

I have been using gllvm before and have never encountered this problem. Any possible fix?

jarioksa commented 1 year ago

Looks very much like a go issue: doesn't find operation system components os.* to create temporary files and directories and write files.

JenniNiku commented 1 year ago

Hi, and thanks for commenting Jari. @aeroned, were you able to fix the problem? I'm not very familiar with the "go" so unfortunately I don't know how to help with that error if it is a go related issue, but otherwise I can try to check if I have made some changes to the package that could have caused problems, so do you remember when was the last time it did work?