* Serving Flask app 'test_flask.sage' * Debug mode: off WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on http://127.0.0.1:5000 Press CTRL+C to quit Exception in thread Thread-1 (process_request_thread): Traceback (most recent call last): File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/lib/python3.11/threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "/usr/lib/python3.11/socketserver.py", line 691, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request Exception in thread Thread-2 (process_request_thread): Traceback (most recent call last): File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.11/socketserver.py", line 755, in __init__ self.run() File "/usr/lib/python3.11/threading.py", line 975, in run self.handle() File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 363, in handle Exception in thread Thread-3 (process_request_thread): Traceback (most recent call last): File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self._target(*self._args, **self._kwargs) File "/usr/lib/python3.11/socketserver.py", line 691, in process_request_thread self.run() super().handle() File "/usr/lib/python3.11/threading.py", line 975, in run File "/usr/lib/python3.11/http/server.py", line 432, in handle self.finish_request(request, client_address) File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request Exception in thread Thread-4 (process_request_thread): Traceback (most recent call last): self.handle_one_request() self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request Exception in thread Thread-5 (process_request_thread): Traceback (most recent call last): File "/usr/lib/python3.11/socketserver.py", line 755, in __init__ self._target(*self._args, **self._kwargs) self.run() method() File "/usr/lib/python3.11/socketserver.py", line 691, in process_request_thread File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner Exception in thread Thread-6 (process_request_thread): File "/usr/lib/python3.11/threading.py", line 975, in run File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 335, in run_wsgi Traceback (most recent call last): self.handle() File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner execute(self.server.app) self.run() File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 363, in handle Exception in thread Thread-7 (process_request_thread): self.finish_request(request, client_address) File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 322, in execute self._target(*self._args, **self._kwargs) File "/usr/lib/python3.11/threading.py", line 975, in run self.run() super().handle() File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request application_iter = app(environ, start_response) Traceback (most recent call last): File "/usr/lib/python3.11/socketserver.py", line 691, in process_request_thread Exception in thread Thread-8 (process_request_thread): Traceback (most recent call last): File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner File "/usr/lib/python3.11/threading.py", line 975, in run File "/usr/lib/python3.11/http/server.py", line 432, in handle self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner Exception in thread Thread-9 (process_request_thread): Traceback (most recent call last): File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self._target(*self._args, **self._kwargs) self.handle_one_request() self.finish_request(request, client_address) File "/usr/lib/python3.11/socketserver.py", line 755, in __init__ File "/usr/lib/python3.11/socketserver.py", line 691, in process_request_thread File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request self.run() File "/usr/lib/python3.11/threading.py", line 975, in run ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Exception in thread Thread-10 (process_request_thread): self.run() self._target(*self._args, **self._kwargs) File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request method() Traceback (most recent call last): self.run() File "/usr/lib/python3.11/threading.py", line 975, in run self.handle() File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 363, in handle self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.11/threading.py", line 975, in run File "/usr/lib/python3.11/socketserver.py", line 691, in process_request_thread self.finish_request(request, client_address) self._target(*self._args, **self._kwargs) File "/usr/lib/python3.11/socketserver.py", line 755, in __init__ File "/usr/lib/python3.11/site-packages/flask/app.py", line 2548, in __call__ self._target(*self._args, **self._kwargs) File "/usr/lib/python3.11/socketserver.py", line 691, in process_request_thread super().handle() self._target(*self._args, **self._kwargs) self.handle() File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner File "/usr/lib/python3.11/socketserver.py", line 691, in process_request_thread return self.wsgi_app(environ, start_response) File "/usr/lib/python3.11/socketserver.py", line 691, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 335, in run_wsgi self.finish_request(request, client_address) self.run() File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request self.finish_request(request, client_address) self.RequestHandlerClass(request, client_address, self) self.finish_request(request, client_address) execute(self.server.app) File "/usr/lib/python3.11/http/server.py", line 432, in handle File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 363, in handle File "/usr/lib/python3.11/threading.py", line 975, in run ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/socketserver.py", line 755, in __init__ self.RequestHandlerClass(request, client_address, self) self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 322, in execute super().handle() self.handle_one_request() File "/usr/lib/python3.11/socketserver.py", line 755, in __init__ self.RequestHandlerClass(request, client_address, self) self._target(*self._args, **self._kwargs) File "/usr/lib/python3.11/http/server.py", line 432, in handle File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request File "/usr/lib/python3.11/socketserver.py", line 755, in __init__ File "/usr/lib/python3.11/socketserver.py", line 755, in __init__ self.handle() application_iter = app(environ, start_response) File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.11/socketserver.py", line 691, in process_request_thread self.handle() self.handle_one_request() File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request self.handle() File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 363, in handle self.finish_request(request, client_address) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method() File "/usr/lib/python3.11/socketserver.py", line 755, in __init__ self.handle() super().handle() File "/usr/lib/python3.11/site-packages/flask/app.py", line 2525, in wsgi_app File "/usr/lib/python3.11/site-packages/flask/app.py", line 2548, in __call__ File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 363, in handle File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 363, in handle File "/usr/lib/python3.11/http/server.py", line 432, in handle method() File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 335, in run_wsgi File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request super().handle() response = self.full_dispatch_request() File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 335, in run_wsgi self.handle_one_request() return self.wsgi_app(environ, start_response) execute(self.server.app) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ self.RequestHandlerClass(request, client_address, self) execute(self.server.app) File "/usr/lib/python3.11/http/server.py", line 432, in handle super().handle() File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 363, in handle self.handle() File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/http/server.py", line 432, in handle self.handle_one_request() File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 363, in handle File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 322, in execute File "/usr/lib/python3.11/site-packages/flask/app.py", line 2525, in wsgi_app method() File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request self.handle_one_request() File "/usr/lib/python3.11/site-packages/flask/app.py", line 1820, in full_dispatch_request application_iter = app(environ, start_response) File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 335, in run_wsgi method() response = self.full_dispatch_request() super().handle() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 2548, in __call__ File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 335, in run_wsgi ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 1820, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request return self.wsgi_app(environ, start_response) File "/usr/lib/python3.11/socketserver.py", line 755, in __init__ File "/usr/lib/python3.11/http/server.py", line 432, in handle ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 1796, in dispatch_request ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 322, in execute super().handle() execute(self.server.app) execute(self.server.app) method() self.handle() application_iter = app(environ, start_response) File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 322, in execute return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) rv = self.dispatch_request() File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 363, in handle ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 322, in execute File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 335, in run_wsgi File "/usr/lib/python3.11/http/server.py", line 432, in handle self.handle_one_request() File "/usr/lib/python3.11/site-packages/flask/app.py", line 2548, in __call__ ^^^^^^^^^^^^^^^^^^^^^^^ application_iter = app(environ, start_response) File "/usr/lib/python3.11/site-packages/flask/app.py", line 2525, in wsgi_app self.handle_one_request() File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request execute(self.server.app) application_iter = app(environ, start_response) File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ super().handle() File "/usr/lib/python3.11/site-packages/flask/app.py", line 1796, in dispatch_request ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return self.wsgi_app(environ, start_response) File "/home/eloi/test_flask.sage.py", line 17, in index File "/usr/lib/python3.11/http/server.py", line 432, in handle method() File "/usr/lib/python3.11/site-packages/flask/app.py", line 2548, in __call__ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print(I) # This gives an error self.handle_one_request() File "/usr/lib/python3.11/site-packages/flask/app.py", line 2525, in wsgi_app ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 2548, in __call__ return self.wsgi_app(environ, start_response) return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 322, in execute File "/usr/lib/python3.11/site-packages/flask/app.py", line 1820, in full_dispatch_request ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ response = self.full_dispatch_request() ^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 2525, in wsgi_app application_iter = app(environ, start_response) rv = self.dispatch_request() File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 335, in run_wsgi File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request method() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ execute(self.server.app) response = self.full_dispatch_request() File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 335, in run_wsgi ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 1796, in dispatch_request File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 1822, in __repr__ return self.wsgi_app(environ, start_response) File "/usr/lib/python3.11/site-packages/flask/app.py", line 2548, in __call__ method() File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 322, in execute ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 1820, in full_dispatch_request return "Fractional ideal %s" % self._repr_short() execute(self.server.app) File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 322, in execute ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/eloi/test_flask.sage.py", line 17, in index ^^^^^^^^^^^^^^^^^^ application_iter = app(environ, start_response) return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/usr/lib/python3.11/site-packages/flask/app.py", line 2525, in wsgi_app application_iter = app(environ, start_response) print(I) # This gives an error ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 2548, in __call__ File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 335, in run_wsgi File "/usr/lib/python3.11/site-packages/flask/app.py", line 1820, in full_dispatch_request File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 488, in _repr_short ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return self.wsgi_app(environ, start_response) return '(%s)' % (', '.join(map(str, self._gens_repr()))) File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 1822, in __repr__ return self.wsgi_app(environ, start_response) rv = self.dispatch_request() execute(self.server.app) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/eloi/test_flask.sage.py", line 17, in index ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return "Fractional ideal %s" % self._repr_short() response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 512, in _gens_repr File "/usr/lib/python3.11/site-packages/flask/app.py", line 2525, in wsgi_app ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 488, in _repr_short File "/usr/lib/python3.11/site-packages/flask/app.py", line 2525, in wsgi_app rv = self.dispatch_request() if abs(self.number_field().defining_polynomial().discriminant().norm()) <= SMALL_DISC: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ response = self.full_dispatch_request() print(I) # This gives an error File "/usr/lib/python3.11/site-packages/werkzeug/serving.py", line 322, in execute return '(%s)' % (', '.join(map(str, self._gens_repr()))) ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 1820, in full_dispatch_request ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 1820, in full_dispatch_request ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ application_iter = app(environ, start_response) ^^^^^^^^^^^^^^^^^^^^^^^ rv = self.dispatch_request() File "/usr/lib/python3.11/site-packages/flask/app.py", line 2548, in __call__ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 1822, in __repr__ File "/usr/lib/python3.11/site-packages/flask/app.py", line 1796, in dispatch_request File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 512, in _gens_repr File "/usr/lib/python3.11/site-packages/flask/app.py", line 1820, in full_dispatch_request File "sage/rings/polynomial/polynomial_rational_flint.pyx", line 2508, in sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.discriminant (build/cythonized/sage/rings/polynomial/polynomial_rational_flint.cpp:21682) return "Fractional ideal %s" % self._repr_short() File "/usr/lib/python3.11/site-packages/flask/app.py", line 1796, in dispatch_request return self.wsgi_app(environ, start_response) rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "sage/rings/polynomial/polynomial_element.pyx", line 6489, in sage.rings.polynomial.polynomial_element.Polynomial._pari_with_name (build/cythonized/sage/rings/polynomial/polynomial_element.c:53693) if abs(self.number_field().defining_polynomial().discriminant().norm()) <= SMALL_DISC: return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 2548, in __call__ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 1796, in dispatch_request ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 2525, in wsgi_app File "sage/rings/polynomial/polynomial_rational_flint.pyx", line 2508, in sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.discriminant (build/cythonized/sage/rings/polynomial/polynomial_rational_flint.cpp:21682) File "/home/eloi/test_flask.sage.py", line 17, in index File "/usr/lib/python3.11/site-packages/flask/app.py", line 1796, in dispatch_request File "sage/rings/rational.pyx", line 3788, in sage.rings.rational.Rational.__pari__ (build/cythonized/sage/rings/rational.cpp:30586) return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 488, in _repr_short File "sage/rings/polynomial/polynomial_element.pyx", line 6489, in sage.rings.polynomial.polynomial_element.Polynomial._pari_with_name (build/cythonized/sage/rings/polynomial/polynomial_element.c:53693) rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return self.wsgi_app(environ, start_response) print(I) # This gives an error return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/eloi/test_flask.sage.py", line 17, in index File "sage/libs/pari/convert_sage.pyx", line 409, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5881) ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 1796, in dispatch_request response = self.full_dispatch_request() File "sage/rings/rational.pyx", line 3788, in sage.rings.rational.Rational.__pari__ (build/cythonized/sage/rings/rational.cpp:30586) File "sage/libs/pari/convert_sage.pyx", line 418, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5825) File "/home/eloi/test_flask.sage.py", line 17, in index print(I) # This gives an error ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) return '(%s)' % (', '.join(map(str, self._gens_repr()))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "sage/libs/pari/convert_gmp.pyx", line 104, in sage.libs.pari.convert_gmp.new_gen_from_mpq_t (build/cythonized/sage/libs/pari/convert_gmp.c:1601) File "sage/libs/pari/convert_sage.pyx", line 409, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5881) File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 1822, in __repr__ print(I) # This gives an error ^^^^^^^^ return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 2525, in wsgi_app File "/usr/lib/python3.11/site-packages/flask/app.py", line 1820, in full_dispatch_request ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 512, in _gens_repr File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 1822, in __repr__ File "sage/libs/pari/convert_sage.pyx", line 418, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5825) rv = self.dispatch_request() return "Fractional ideal %s" % self._repr_short() response = self.full_dispatch_request() if abs(self.number_field().defining_polynomial().discriminant().norm()) <= SMALL_DISC: File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 1822, in __repr__ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ File "/home/eloi/test_flask.sage.py", line 17, in index ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/flask/app.py", line 1796, in dispatch_request cysignals.signals.SignalError: Segmentation fault File "/home/eloi/test_flask.sage.py", line 17, in index return "Fractional ideal %s" % self._repr_short() File "sage/rings/polynomial/polynomial_rational_flint.pyx", line 2508, in sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.discriminant (build/cythonized/sage/rings/polynomial/polynomial_rational_flint.cpp:21682) File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 488, in _repr_short return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) print(I) # This gives an error File "sage/libs/pari/convert_gmp.pyx", line 104, in sage.libs.pari.convert_gmp.new_gen_from_mpq_t (build/cythonized/sage/libs/pari/convert_gmp.c:1601) File "/usr/lib/python3.11/site-packages/flask/app.py", line 1820, in full_dispatch_request return '(%s)' % (', '.join(map(str, self._gens_repr()))) File "sage/rings/polynomial/polynomial_element.pyx", line 6489, in sage.rings.polynomial.polynomial_element.Polynomial._pari_with_name (build/cythonized/sage/rings/polynomial/polynomial_element.c:53693) ^^^^^^^^ print(I) # This gives an error cysignals.signals.SignalError: Segmentation fault return "Fractional ideal %s" % self._repr_short() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/eloi/test_flask.sage.py", line 17, in index ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 512, in _gens_repr File "sage/rings/rational.pyx", line 3788, in sage.rings.rational.Rational.__pari__ (build/cythonized/sage/rings/rational.cpp:30586) ^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 1822, in __repr__ print(I) # This gives an error ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 488, in _repr_short File "sage/libs/pari/convert_sage.pyx", line 409, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5881) ^^^^^^^^ if abs(self.number_field().defining_polynomial().discriminant().norm()) <= SMALL_DISC: return "Fractional ideal %s" % self._repr_short() return '(%s)' % (', '.join(map(str, self._gens_repr()))) rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 1822, in __repr__ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "sage/libs/pari/convert_sage.pyx", line 418, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5825) File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 488, in _repr_short File "sage/rings/polynomial/polynomial_rational_flint.pyx", line 2508, in sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.discriminant (build/cythonized/sage/rings/polynomial/polynomial_rational_flint.cpp:21682) ^^^^^^^^^^^^^^^^^^^^^^^ return "Fractional ideal %s" % self._repr_short() return '(%s)' % (', '.join(map(str, self._gens_repr()))) File "sage/libs/pari/convert_gmp.pyx", line 104, in sage.libs.pari.convert_gmp.new_gen_from_mpq_t (build/cythonized/sage/libs/pari/convert_gmp.c:1601) File "/usr/lib/python3.11/site-packages/flask/app.py", line 1796, in dispatch_request ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 1822, in __repr__ File "sage/rings/polynomial/polynomial_element.pyx", line 6489, in sage.rings.polynomial.polynomial_element.Polynomial._pari_with_name (build/cythonized/sage/rings/polynomial/polynomial_element.c:53693) ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 488, in _repr_short ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 488, in _repr_short cysignals.signals.SignalError: Segmentation fault return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "sage/rings/rational.pyx", line 3788, in sage.rings.rational.Rational.__pari__ (build/cythonized/sage/rings/rational.cpp:30586) ^^^^^^^^^^^^^^^^^ return "Fractional ideal %s" % self._repr_short() return '(%s)' % (', '.join(map(str, self._gens_repr()))) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 512, in _gens_repr return '(%s)' % (', '.join(map(str, self._gens_repr()))) File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 512, in _gens_repr File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 512, in _gens_repr ^^^^^^^^^^^^^^^^^ File "sage/libs/pari/convert_sage.pyx", line 409, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5881) if abs(self.number_field().defining_polynomial().discriminant().norm()) <= SMALL_DISC: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 512, in _gens_repr ^^^^^^^^^^^^^^^^^^ if abs(self.number_field().defining_polynomial().discriminant().norm()) <= SMALL_DISC: if abs(self.number_field().defining_polynomial().discriminant().norm()) <= SMALL_DISC: File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 488, in _repr_short File "/home/eloi/test_flask.sage.py", line 17, in index if abs(self.number_field().defining_polynomial().discriminant().norm()) <= SMALL_DISC: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print(I) # This gives an error return '(%s)' % (', '.join(map(str, self._gens_repr()))) File "sage/libs/pari/convert_sage.pyx", line 418, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5825) File "sage/rings/polynomial/polynomial_rational_flint.pyx", line 2508, in sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.discriminant (build/cythonized/sage/rings/polynomial/polynomial_rational_flint.cpp:21682) ^^^^^^^^ File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 1822, in __repr__ File "sage/rings/polynomial/polynomial_rational_flint.pyx", line 2508, in sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.discriminant (build/cythonized/sage/rings/polynomial/polynomial_rational_flint.cpp:21682) File "sage/libs/pari/convert_gmp.pyx", line 104, in sage.libs.pari.convert_gmp.new_gen_from_mpq_t (build/cythonized/sage/libs/pari/convert_gmp.c:1601) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "sage/rings/polynomial/polynomial_element.pyx", line 6489, in sage.rings.polynomial.polynomial_element.Polynomial._pari_with_name (build/cythonized/sage/rings/polynomial/polynomial_element.c:53693) return "Fractional ideal %s" % self._repr_short() File "sage/rings/polynomial/polynomial_rational_flint.pyx", line 2508, in sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.discriminant (build/cythonized/sage/rings/polynomial/polynomial_rational_flint.cpp:21682) File "sage/rings/polynomial/polynomial_rational_flint.pyx", line 2508, in sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.discriminant (build/cythonized/sage/rings/polynomial/polynomial_rational_flint.cpp:21682) File "sage/rings/polynomial/polynomial_element.pyx", line 6489, in sage.rings.polynomial.polynomial_element.Polynomial._pari_with_name (build/cythonized/sage/rings/polynomial/polynomial_element.c:53693) File "sage/rings/rational.pyx", line 3788, in sage.rings.rational.Rational.__pari__ (build/cythonized/sage/rings/rational.cpp:30586) ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ File "sage/rings/rational.pyx", line 3788, in sage.rings.rational.Rational.__pari__ (build/cythonized/sage/rings/rational.cpp:30586) File "sage/rings/polynomial/polynomial_element.pyx", line 6489, in sage.rings.polynomial.polynomial_element.Polynomial._pari_with_name (build/cythonized/sage/rings/polynomial/polynomial_element.c:53693) cysignals.signals.SignalError: Segmentation fault File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 512, in _gens_repr File "sage/rings/polynomial/polynomial_element.pyx", line 6489, in sage.rings.polynomial.polynomial_element.Polynomial._pari_with_name (build/cythonized/sage/rings/polynomial/polynomial_element.c:53693) File "sage/libs/pari/convert_sage.pyx", line 409, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5881) File "sage/libs/pari/convert_sage.pyx", line 409, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5881) File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 488, in _repr_short File "sage/rings/rational.pyx", line 3788, in sage.rings.rational.Rational.__pari__ (build/cythonized/sage/rings/rational.cpp:30586) File "sage/libs/pari/convert_sage.pyx", line 418, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5825) File "sage/rings/rational.pyx", line 3788, in sage.rings.rational.Rational.__pari__ (build/cythonized/sage/rings/rational.cpp:30586) if abs(self.number_field().defining_polynomial().discriminant().norm()) <= SMALL_DISC: return '(%s)' % (', '.join(map(str, self._gens_repr()))) File "sage/libs/pari/convert_gmp.pyx", line 104, in sage.libs.pari.convert_gmp.new_gen_from_mpq_t (build/cythonized/sage/libs/pari/convert_gmp.c:1601) File "sage/libs/pari/convert_sage.pyx", line 418, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5825) ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cysignals.signals.SignalError: Segmentation fault File "/usr/lib/python3.11/site-packages/sage/rings/number_field/number_field_ideal.py", line 512, in _gens_repr File "sage/libs/pari/convert_sage.pyx", line 409, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5881) File "sage/rings/polynomial/polynomial_rational_flint.pyx", line 2508, in sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.discriminant (build/cythonized/sage/rings/polynomial/polynomial_rational_flint.cpp:21682) File "sage/libs/pari/convert_sage.pyx", line 409, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5881) File "sage/libs/pari/convert_gmp.pyx", line 104, in sage.libs.pari.convert_gmp.new_gen_from_mpq_t (build/cythonized/sage/libs/pari/convert_gmp.c:1601) if abs(self.number_field().defining_polynomial().discriminant().norm()) <= SMALL_DISC: File "sage/libs/pari/convert_sage.pyx", line 418, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5825) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "sage/libs/pari/convert_sage.pyx", line 418, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5825) File "sage/rings/polynomial/polynomial_rational_flint.pyx", line 2508, in sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint.discriminant (build/cythonized/sage/rings/polynomial/polynomial_rational_flint.cpp:21682) cysignals.signals.SignalError: Segmentation fault File "sage/libs/pari/convert_gmp.pyx", line 104, in sage.libs.pari.convert_gmp.new_gen_from_mpq_t (build/cythonized/sage/libs/pari/convert_gmp.c:1601) File "sage/rings/polynomial/polynomial_element.pyx", line 6489, in sage.rings.polynomial.polynomial_element.Polynomial._pari_with_name (build/cythonized/sage/rings/polynomial/polynomial_element.c:53693) File "sage/libs/pari/convert_gmp.pyx", line 104, in sage.libs.pari.convert_gmp.new_gen_from_mpq_t (build/cythonized/sage/libs/pari/convert_gmp.c:1601) cysignals.signals.SignalError: Segmentation fault File "sage/rings/polynomial/polynomial_element.pyx", line 6489, in sage.rings.polynomial.polynomial_element.Polynomial._pari_with_name (build/cythonized/sage/rings/polynomial/polynomial_element.c:53693) cysignals.signals.SignalError: Segmentation fault File "sage/rings/rational.pyx", line 3788, in sage.rings.rational.Rational.__pari__ (build/cythonized/sage/rings/rational.cpp:30586) File "sage/rings/rational.pyx", line 3788, in sage.rings.rational.Rational.__pari__ (build/cythonized/sage/rings/rational.cpp:30586) File "sage/libs/pari/convert_sage.pyx", line 409, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5881) File "sage/libs/pari/convert_sage.pyx", line 409, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5881) File "sage/libs/pari/convert_sage.pyx", line 418, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5825) File "sage/libs/pari/convert_sage.pyx", line 418, in sage.libs.pari.convert_sage.new_gen_from_rational (build/cythonized/sage/libs/pari/convert_sage.c:5825) File "sage/libs/pari/convert_gmp.pyx", line 104, in sage.libs.pari.convert_gmp.new_gen_from_mpq_t (build/cythonized/sage/libs/pari/convert_gmp.c:1601) File "sage/libs/pari/convert_gmp.pyx", line 104, in sage.libs.pari.convert_gmp.new_gen_from_mpq_t (build/cythonized/sage/libs/pari/convert_gmp.c:1601) cysignals.signals.SignalError: Segmentation fault cysignals.signals.SignalError: Segmentation fault Number Field in w with defining polynomial x^2 - x - 1 Number Field in w with defining polynomial x^2 - x - 1 Number Field in w with defining polynomial x^2 - x - 1 Number Field in w with defining polynomial x^2 - x - 1 Number Field in w with defining polynomial x^2 - x - 1 Number Field in w with defining polynomial x^2 - x - 1 Number Field in w with defining polynomial x^2 - x - 1 Number Field in w with defining polynomial x^2 - x - 1 Number Field in w with defining polynomial x^2 - x - 1 Number Field in w with defining polynomial x^2 - x - 1