go-python3
go-python3 copied to clipboard
Go bindings to the CPython-3 API
**I wanted to pass a byte object to my python code but I have no idea with it:** **my code:** ```golang facedetect := ImportModule("./hello", "facedetect") getFaceStr := facedetect.GetAttrString("getFaceStr") // my...
### What does this PR do? It adds a wrapper function for `C.PyBytes_FromStringAndSize` that explicitly uses the Go string's length. This allows to correctly turn Go strings into Python `bytes`...
**Describe what happened:** When using `go get github.com/DataDog/go-python3` I get the response: ```bash # github.com/DataDog/go-python3 ../../go/pkg/mod/github.com/!data!dog/[email protected]/dict.go:141:13: could not determine kind of name for C.PyDict_ClearFreeList ``` But the package seems to...
**Describe what happened:** python3.7 ubuntu18.04 run main.go get error SyntaxError: invalid syntax (uuid.py, line 138) demo.py ``` y = 6 import time import uuid def testF(): global y y =...
**Describe what happened:** I try to use mingw64 to install go-python3 on windows, but failed: ```shell go get -u -v github.com/DataDog/go-python3 github.com/DataDog/go-python3 (download) github.com/DataDog/go-python3 # pkg-config --cflags -- python3 Package...
Hi I can run [sbinet](https://github.com/sbinet/go-python) 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...
**Describe what happened:** I got the following error when I compile the code I've installed python3.7.6 and `pkg-config --cflags -- python3` works fine  **Describe what you expected:** No error...
**Describe what happened:** the first line of py code `from xxx import play` **Describe what you expected:** the xxx is a so file. Run the py script in command line...
**Describe what happened:** PyEval_ReInitThreads() uses C.PyEval_ReInitThreads, but this symbol has been removed since python3.8. **Describe what you expected:** Please revise the code to check whether symbol C.PyEval_ReInitThreads exists. If not,...
**Describe what happened:** Environments: On MacOS (Catalina Version 10.15.4) Python3.7.6 Go1.13.8 I want to use go-python3 to invoke an algorithm written in Python3, but as described, an fatal error will...