Skip to content

Getting Error: "could not determine kind of name for C.PyEval_ReInitThreads" #29

@Voben

Description

@Voben

I am trying to use the PyRun_SimpleString function for a print hello world however I am getting the error below:

../../go/pkg/mod/github.com/go-python/cpy3@v0.2.0/thread.go:53:2: could not determine kind of name for C.PyEval_ReInitThreads

This is the code that I am running.

package main

import "github.com/go-python/cpy3"

func main() {

defer python3.Py_Finalize()
python3.Py_Initialize()
python3.PyRun_SimpleString("print('hello world')")

}

I am using Python 3.7.15 and have a python3,pc file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions