You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Get cpu info failed , log info "no such file or directory"
To Reproduce
cpuInfos, err:=cpu.Info()
iferr!=nil {
logrus.Errorf("get cpu info failed : %v", err)
//return
}
for_, ci:=rangecpuInfos {
logrus.Infof("CPU: %+v", ci)
}
Expected behavior
[A clear and concise description of what you expected to happen.]
Environment (please complete the following information):
Mac OS: Darwin GuangdeMacBook-Pro.local 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:43 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000 arm64
You mean, cpu.Info() returns no such file or directory on the err return value? However, it seems cpu.info()does not read any files. Could you tell us which version of gopsutil you are using?
Looks like I have the same issue "Error: no such file or directory" on version github.com/shirou/gopsutil v3.21.11+incompatible. This error returns for each call to unix.Sysctl in func InfoWithContext(ctx context.Context) ([]InfoStat, error)
I am testing on "M3 Max"
On github.com/shirou/gopsutil/v3 v3.24.1 this is info which I got CPU:0 VendorID:"" Family:"0" Model:"0" Stepping:0 PhysicalID:"" CoreID:"" Cores:16 ModelName:"Apple M3 Max" Mhz:4056 CacheSize:0 Flags:[]string len: 0, cap: 0, nil Microcode:""
Describe the bug
Get cpu info failed , log info "no such file or directory"
To Reproduce
Expected behavior
[A clear and concise description of what you expected to happen.]
Environment (please complete the following information):
Additional context
go env ░▒▓ ✔ base 12:12:25
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/guangyang/Library/Caches/go-build'
GOENV='/Users/guangyang/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/guangyang/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/guangyang/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/homebrew/Cellar/go/1.21.0/libexec'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/opt/homebrew/Cellar/go/1.21.0/libexec/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.21.0'
GCCGO='gccgo'
AR='ar'
CC='cc'
CXX='c++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/yb/vy0wdpkx0jx6fyb7rmh1y5ph0000gn/T/go-build1627533097=/tmp/go-build -gno-record-gcc-switches -fno-common'
The text was updated successfully, but these errors were encountered: