-
Notifications
You must be signed in to change notification settings - Fork 83
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
Test failures on Python 3.12 #133
Comments
I have the same issue while py-ecc Version7.0.1 Python Version3.12.0 Operating SystemmacOS Sonoma 14.5, Apple M1 Pro When switching to |
I've just passed all tests locally with |
@pacrob this is my code: from py_ecc.bn128 import G1, G2, pairing, multiply
pairing(G2, G1) Python version: 3.12.2 This is the whole error trace
|
@pacrob, same as @jimmychu0807: from py_ecc.bn128 import G1, G2, pairing
pairing(G2, G1) Please, refer to this comment for additional system information. |
I've tried it locally with py3.12.3, 3.12.2, and 3.12.1, and had a colleague check with 3.12.3 on a mac M3, everything working fine. In [1]: from py_ecc.bn128 import G1, G2, pairing
...:
...: pairing(G2, G1)
Out[1]: (18443897754565973717256850119554731228214108935025491924036055734000366132575, 10734401203193558706037776473742910696504851986739882094082017010340198538454, 5985796159921227033560968606339653189163760772067273492369082490994528765680, 4093294155816392700623820137842432921872230622290337094591654151434545306688, 642121370160833232766181493494955044074321385528883791668868426879070103434, 4527449849947601357037044178952942489926487071653896435602814872334098625391, 3758435817766288188804561253838670030762970764366672594784247447067868088068, 18059168546148152671857026372711724379319778306792011146784665080987064164612, 14656606573936501743457633041048024656612227301473084805627390748872617280984, 17918828665069491344039743589118342552553375221610735811112289083834142789347, 19455424343576886430889849773367397946457449073528455097210946839000147698372, 7484542354754424633621663080190936924481536615300815203692506276894207018007)
In [2]: import sys
In [3]: print(sys.getrecursionlimit())
100000 What's your recursion limit set to? I can actually replicate if I set my recursion limit to 2500, works again at 3000. Maybe the default was higher in your 3.10 install than in your 3.12? |
My default recursion limit is 1000. I changed it to very high numbers to rule out the possibility, but it still fails with the same error. |
@pacrob sigh, mystery of life 🤷🏻 ... This is what I get when running in Python 3.10 This is what I get when running in Python 3.12 |
* Store artifacts in docs CI * Force `pytest` import above all else
What happened?
When running
pytest
on Python 3.12 a bunch of tests fail withwhich seems to stem from
Code that produced the error
No response
Full error output
No response
Fill this section in if you know how this could or should be fixed
No response
py-ecc Version
7.0.0
Python Version
3.12.2
Operating System
Linux
Output from
pip freeze
No response
The text was updated successfully, but these errors were encountered: