go-python / go-python/gopy

cannot use _Ctype_long(size) (value of type _Ctype_long) as _Ctype_longlong value in argument to (_Cfunc_PyBytes_FromStringAndSize)

Đang mở
#352 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
2.3k
Fork
136
Merge trung bình
14 phút
Pull request đã merge (30 ngày)
2

Mô tả

Error log:
```
PS E:\codes\edotcs\客户端-0.1.x-2设> gopy build -output=edotcs edotcs/src/edotcs
go build -v edotcs/src/edotcs

--- Processing package: edotcs/src/edotcs ---
no LibDir -- copy from IncDir: C:/Python312/libs
no LibPy -- set to: python312
no LibDir -- copy from IncDir: C:/Python312/libs
no LibPy -- set to: python312

--- building package ---
gopy.exe build -output=edotcs edotcs/src/edotcs
goimports -w edotcs.go
no LibDir -- copy from IncDir: C:/Python312/libs
no LibPy -- set to: python312
go build -mod=mod -buildmode=c-shared -o edotcs_go.pyd .
cmd had error: exit status 1 output:
# edotcs/edotcs
.\edotcs.go:278:53: cannot use _Ctype_long(size) (value of type _Ctype_long) as _Ctype_longlong value in argument to (_Cfunc_PyBytes_FromStringAndSize)

2024/04/30 11:57:34 error dispatching command: exit status 1
```

edotcs/src/edotcs.go
``` golang
// edotcs.go
package edotcs

// func New_client() *types.Client {
// client := &types.Client{}
// return client
// }

func Hello() string {
return "Hello, edotcs!"
}

```

System: Windows 11
Python Version: 3.12.3
Golang Version: 1.21.6

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.