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

Could not parse arguments #13

Open
RetrO-hash opened this issue Nov 1, 2022 · 4 comments
Open

Could not parse arguments #13

RetrO-hash opened this issue Nov 1, 2022 · 4 comments

Comments

@RetrO-hash
Copy link

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
image

@Devil-fire
Copy link

I also encountered the same problem. My Python version is 3.10. I don't know whether it is because of version mismatch

@BrunoRodrigues1999
Copy link

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?

@Jemtaly
Copy link

Jemtaly commented Feb 26, 2024

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.

@parametersx
Copy link

Hello author, I still get the same error after using your modified version and using your test code
image

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

5 participants