Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when installing using option 2 #30

Open
codgas opened this issue May 19, 2024 · 1 comment
Open

error when installing using option 2 #30

codgas opened this issue May 19, 2024 · 1 comment

Comments

@codgas
Copy link

codgas commented May 19, 2024

I installed following option 2 and verified that libuplinkc.so is copied to MYPATH/python3.9/site-packages/uplink_python
but when I try to run

from uplink_python.uplink import Uplink
uplink = Uplink()

I get the following error

Failed to load library: /usr/local/lib/python3.9/site-packages/uplink_python/libuplinkc.so: cannot open shared object file: No such file or directory

I am using docker (python:3.9-bullseye) for this and my pc is a mac M2

go version
go version go1.14.6 linux/amd64

go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build689664836=/tmp/go-build -gno-record-gcc-switches"
@kmozurkewich
Copy link
Member

That error is almost always related to a PATH issue. If you're still having the issue, make sure LD_LIBRARY_PATH includes the location of your so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants