-
Notifications
You must be signed in to change notification settings - Fork 25
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
Could not parse arguments #13
Comments
I also encountered the same problem. My Python version is 3.10. I don't know whether it is because of version mismatch |
Hi :), I'm also facing the same issue as you described. Did you manage to find a solution? |
I've also encountered this issue, and after checking the code I found that the issue is due to a python api change. I've made a pull request (#16) stating the exact issue. You can either use my modified version, or just add a line #define PY_SSIZE_T_CLEAN before #include <Python.h> in pypbc.h to fix this problem. |
stored_params = """type a
q 8780710799663312522437781984754049815806883199414208211028653399266475630880222957078625179422662221423155858769582317459277713367317481324925129998224791
h 12016012264891146079388821366740534204802954401251311822919615131047207289359704531102844802183906537786776
r 730750818665451621361119245571504901405976559617
exp2 159
exp1 107
sign1 1
sign0 1
"""
from pypbc import *
params=Parameters(param_string=stored_params)
pairing=Pairing(params)
And I only got

The text was updated successfully, but these errors were encountered: