-
Notifications
You must be signed in to change notification settings - Fork 139
could not determine kind of name for C.PyImport_GetModule #19
Comments
I use 'go get' and meet the same problem too. root@17c119383d9b:~# go get github.com/DataDog/go-python3
go: finding github.com/DataDog/go-python3 latest
# github.com/DataDog/go-python3
go/pkg/mod/github.com/!data!dog/go-python3@v0.0.0-20190130222855-0b25cc550560/import.go:125:14: could not determine kind of name for C.PyImport_GetModule |
go get github.com/DataDog/go-python3 |
get get succeeded without errors. this happened on build though:
|
the same,while use glide get the package,and run some test demo |
To me it looks like you have to update your Python version to v3.7 to get the support for both functions. |
Hi, You will need the dev package for Python3 install that provide the Python.h header which define this all Python function. make sure it's in your resolution path for the compiler too. Also @piccobit is right, this package is meant for python 3.7. |
I get lots of errors like:
I fixed it by adding: |
If I compile with Python 3.8 I get |
Hi @marcofiocco, the lib only support python 3.7 currently. We do not plan on updating this to work with both 3.7 and 3.8 but if you would like to open a PR for this I'll be happy to review it. I also updated the README to better explain that the python headers are needed to compile this package.
Closing this issue, but feel free to reopen it or open another issue if needed. |
Describe what happened:
when the package installed with go install :
go install github.com/DataDog/go-python3
"gowork/src/github.com/DataDog/go-python3/import.go:125:14: could not determine kind of name for C.PyImport_GetModule"
why it happens?
Did i miss anything?
The text was updated successfully, but these errors were encountered: