eino icon indicating copy to clipboard operation
eino copied to clipboard

运行找不到.env

Open celanwang opened this issue 1 year ago • 4 comments

Describe the bug

go run main.go 2025/10/24 13:38:30 ❌ [ERROR] Error loading .env file: open .env: no such file or directory exit status 1

To Reproduce

Image

Expected behavior

https://www.cloudwego.io/zh/docs/eino/overview/bytedance_eino_practice/ 在 .env 文件中按照注释说明,获取并填写 ARK_EMBEDDING_MODEL 和 ARK_API_KEY 的值,按如下指令,运行 KnowledgeIndexing 指令。

按照步骤执行完毕之后,还是存在不能运行的现象。

Version: https://github.com/cloudwego/eino-examples

Environment: go env AR='ar' CC='clang' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_ENABLED='1' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' CXX='clang++' GCCGO='gccgo' GO111MODULE='' GOARCH='arm64' GOARM64='v8.0' GOAUTH='netrc' GOBIN='/usr/local/gopath/bin' GOCACHE='/Users/xxx/Library/Caches/go-build' GOCACHEPROG='' GODEBUG='' GOENV='/Users/xxx/Library/Application Support/go/env' GOEXE='' GOEXPERIMENT='' GOFIPS140='off' GOFLAGS='' GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/s2/tvg6pjgs6b101bwffjt3t99m0000gn/T/go-build3084424364=/tmp/go-build -gno-record-gcc-switches -fno-common' GOHOSTARCH='arm64' GOHOSTOS='darwin' GOINSECURE='' GOMOD='/Users/xxx/GolandProjects/eino-examples/quickstart/eino_assistant/go.mod' GOMODCACHE='/usr/local/gopath/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='darwin' GOPATH='/usr/local/gopath' GOPRIVATE='' GOPROXY='https://goproxy.cn,direct' GOROOT='/usr/local/gopath/pkg/mod/golang.org/[email protected]' GOSUMDB='sum.golang.org' GOTELEMETRY='local' GOTELEMETRYDIR='/Users/xxx/Library/Application Support/go/telemetry' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/usr/local/gopath/pkg/mod/golang.org/[email protected]/pkg/tool/darwin_arm64' GOVCS='' GOVERSION='go1.24.1' GOWORK='' PKG_CONFIG='pkg-config'

celanwang avatar Oct 24 '25 05:10 celanwang

@NuyoahCh 要通过 docker 启动。.env 文件和 main.go 不在一个目录下

mrh997 avatar Oct 25 '25 10:10 mrh997

docker已经启动,也完全配置完毕

celanwang avatar Oct 25 '25 16:10 celanwang

Since you haven't responded for a long time, we have closed this issue. If you still have questions, please reopen it or raise another issue.

mrh997 avatar Nov 06 '25 06:11 mrh997

Since you haven't responded for a long time, we have closed this issue. If you still have questions, please reopen it or raise another issue.

ok, thank you!

celanwang avatar Nov 06 '25 06:11 celanwang