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

TypeError: bytes or integer address expected instead of str instance #2

Open
euxuoh opened this issue Sep 21, 2018 · 0 comments
Open

Comments

@euxuoh
Copy link

euxuoh commented Sep 21, 2018

Windows10 + mingw-w64 重新编译DLL

Python3.6下运行example.py,报错
image

model.py文件的第40行
char_p = c_char_p("0"*25)
改为
char_p = c_char_p(str("0"*25).encode('utf-8'))

第92行
self.fmodel = path
改为
self.fmodel = path.encode('utf-8')

运行成功

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