DataDog / go-python3

Go bindings to the CPython-3 API
MIT License
376 stars 140 forks source link

could not determine kind of name for C.PyImport_GetModule #35

Open wtyj112 opened 3 years ago

wtyj112 commented 3 years ago

Describe what happened: i try to build code stop here: vendor/github.com/DataDog/go-pyhon3/import.go:125:14 could not determine kind of name for C.PyImport.GetModule

Describe what you expected:

i install python3-devel.x86_64

Steps to reproduce the issue:

christian-korneck commented 3 years ago

i install python3-devel.x86_64

you also need to have the pkg-config tool installed and point the PKG_CONFIG_PATH env var to a dir with a python3.pc file. The Python version needs to be exactly Python 3.7 (your Linux distro might ship a different version by default).

christian-korneck commented 3 years ago

also check: #19