-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Describe the bug
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 10, in
ext_modules=cythonize("dp.pyx", compiler_directives=compiler_directives),
File "Cython/Build/Dependencies.py", line 1134, in cythonize
cythonize_one(*args)
File "Cython/Build/Dependencies.py", line 1280, in cythonize_one
result = compile_single(pyx_file, options, full_module_name=full_module_name)
File "Cython/Compiler/Main.py", line 615, in compile_single
return run_pipeline(source, options, full_module_name)
File "Cython/Compiler/Main.py", line 539, in run_pipeline
err, enddata = Pipeline.run_pipeline(pipeline, source)
File "Cython/Compiler/Pipeline.py", line 398, in run_pipeline
data = run(phase, data)
File "Cython/Compiler/Pipeline.py", line 375, in run
return phase(data)
File "Cython/Compiler/Visitor.py", line 294, in Cython.Compiler.Visitor.VisitorTransform.call
File "Cython/Compiler/Visitor.py", line 190, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 141, in Cython.Compiler.Visitor.TreeVisitor._raise_compiler_error
File "Cython/Compiler/Visitor.py", line 109, in Cython.Compiler.Visitor.TreeVisitor.dump_node
ValueError: Exceeds the limit (4300) for integer string conversion; use sys.set_int_max_str_digits() to increase the limit
Code to reproduce the behaviour:
# example code
cdef large_integer = 10**4301
print(large_integer)
Expected behaviour
should allow one to overide the python3 new security settings
or provide some work around
working with
Python 3.10.12
cython (latest from github)
gmpy2
OS
Linux
Python version
3.10.12
Cython version
cython --version Cython version 3.0.0
Additional context
same issue in a slightly older version of cython