go-python3 icon indicating copy to clipboard operation
go-python3 copied to clipboard

error when go get and when run example.go

Open hb1001 opened this issue 5 years ago • 7 comments

Hi I can run sbinet in my ubuntu18.0.4 with Python2. But now I want to use Python3. So I tried to go get this package. Then I got the following error: image I tried to run the example.go angway. Only to got the same error. Can anyone help me?

hb1001 avatar May 26 '20 11:05 hb1001

have you solved your problem? I have the same error.

leuitong avatar Jul 05 '20 06:07 leuitong

NO, I think I will choose sbinet.

hb1001 avatar Jul 10 '20 02:07 hb1001

Same problem here. Ubuntu 18.04.2 LTS 64 bit

Edit: Found this issue. Installing python3.7-dev through apt-get hasn't fixed it yet.

Will do some more digging later to see if I can figure out what's wrong.

DarthCoder117 avatar Sep 10 '20 11:09 DarthCoder117

Strangely enough, this fork installs properly: https://github.com/alexyz79/go-python3

DarthCoder117 avatar Sep 11 '20 14:09 DarthCoder117

I got the same issue on Ubuntu, python3-dev doesn't help. really strange.

JRzui avatar Aug 20 '21 19:08 JRzui

Maybe try to clean your cache: https://github.com/DataDog/go-python3/issues/38#issuecomment-764711687

And I’ve posted an Ubuntu 20.04 example here that works for me: https://github.com/DataDog/go-python3/issues/40#issuecomment-893623375

christian-korneck avatar Aug 20 '21 19:08 christian-korneck

Maybe try to clean your cache: #38 (comment)

And I’ve posted an Ubuntu 20.04 example here that works for me: #40 (comment)

Thanks, Christian! I just fixed the issue! After setting the PKG_CONFIG_PATH it works. My python3.pc is under the anaconda3/lib/pkgconfig folder, it seems the previous pkgconfig found another .pc file?

JRzui avatar Aug 20 '21 19:08 JRzui