robherley / guesslang-go

Go port of guesslang to detect programming languages with deep learning
MIT License
18 stars 1 forks source link

Error running example #3

Open kcoderhtml opened 1 day ago

kcoderhtml commented 1 day ago

When I run the example, I get the following error:

# github.com/galeone/tensorflow/tensorflow/go/op
../../../go/pkg/mod/github.com/galeone/tensorflow/tensorflow/go@v0.0.0-20221023090153-6b7fa0680c3e/op/scope.go:36:26: undefined: tf.Graph
../../../go/pkg/mod/github.com/galeone/tensorflow/tensorflow/go@v0.0.0-20221023090153-6b7fa0680c3e/op/scope.go:39:28: undefined: tf.Operation
../../../go/pkg/mod/github.com/galeone/tensorflow/tensorflow/go@v0.0.0-20221023090153-6b7fa0680c3e/op/scope.go:55:30: undefined: tf.Graph
../../../go/pkg/mod/github.com/galeone/tensorflow/tensorflow/go@v0.0.0-20221023090153-6b7fa0680c3e/op/scope.go:62:33: undefined: tf.Graph
../../../go/pkg/mod/github.com/galeone/tensorflow/tensorflow/go@v0.0.0-20221023090153-6b7fa0680c3e/op/scope.go:75:38: undefined: tf.OpSpec
../../../go/pkg/mod/github.com/galeone/tensorflow/tensorflow/go@v0.0.0-20221023090153-6b7fa0680c3e/op/scope.go:75:50: undefined: tf.Operation
../../../go/pkg/mod/github.com/galeone/tensorflow/tensorflow/go@v0.0.0-20221023090153-6b7fa0680c3e/op/scope.go:115:52: undefined: tf.Operation
../../../go/pkg/mod/github.com/galeone/tensorflow/tensorflow/go@v0.0.0-20221023090153-6b7fa0680c3e/op/gradients.go:33:37: undefined: tf.Output
../../../go/pkg/mod/github.com/galeone/tensorflow/tensorflow/go@v0.0.0-20221023090153-6b7fa0680c3e/op/op.go:33:56: undefined: tf.Output
../../../go/pkg/mod/github.com/galeone/tensorflow/tensorflow/go@v0.0.0-20221023090153-6b7fa0680c3e/op/wrappers.go:15:28: undefined: tf.Operation
../../../go/pkg/mod/github.com/galeone/tensorflow/tensorflow/go@v0.0.0-20221023090153-6b7fa0680c3e/op/wrappers.go:15:28: too many errors

I'm on NixOS 24.05.20241106.dba4149 (Uakari) x86_64 if thats any help :)

kcoderhtml commented 1 day ago

@robherley pinging you because ik especially with my smaller projects I never notice issues till 8 months later unless someone pings me :)

robherley commented 15 hours ago

👋 @kcoderhtml

I'm not sure why you are having issues, maybe it's related to cgo? Can you run go env CGO_ENABLED GCCGO CC

For instance, the Graph struct is defined here in the library:

I'm not super familiar with nix, are you using nix-shell?

I found this issue that might be what you're seeing: