Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: cannot use _Ctype_long(size) (value of type _Ctype_long) as _Ctype_longlong value in argument #1

Open
Priff13 opened this issue Sep 28, 2024 · 0 comments

Comments

@Priff13
Copy link

Priff13 commented Sep 28, 2024

I am building on Windows 11 amd64, using this blog post as a source.
Go version: go1.22.3 windows/amd64

When I run:
go build -v on my project that exclusively calls python code from Go, I get these errors:

PS> go build -v
github.com/tliron/py4go
# github.com/tliron/py4go
..\..\go\pkg\mod\github.com\tliron\[email protected]\primitive.go:196:28: cannot use _Ctype_long(size) (value of type _Ctype_long) as _Ctype_longlong value in argument to (_Cfunc_PyTuple_New)        
..\..\go\pkg\mod\github.com\tliron\[email protected]\primitive.go:209:66: cannot use _Ctype_long(index) (value of type _Ctype_long) as _Ctype_longlong value in variable declaration
..\..\go\pkg\mod\github.com\tliron\[email protected]\primitive.go:240:26: cannot use _Ctype_long(size) (value of type _Ctype_long) as _Ctype_longlong value in argument to (_Cfunc_PyList_New)
..\..\go\pkg\mod\github.com\tliron\[email protected]\primitive.go:253:65: cannot use _Ctype_long(index) (value of type _Ctype_long) as _Ctype_longlong value in variable declaration
..\..\go\pkg\mod\github.com\tliron\[email protected]\primitive.go:334:61: cannot use _Ctype_long(size) (value of type _Ctype_long) as _Ctype_longlong value in argument to (_Cfunc_PyBytes_FromStringAndSize)
..\..\go\pkg\mod\github.com\tliron\[email protected]\primitive.go:374:69: cannot use _Ctype_long(size) (value of type _Ctype_long) as _Ctype_longlong value in argument to (_Cfunc_PyByteArray_FromStringAndSize)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant