You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues for a bug report that matches the one I want to file, without success.
Did you read the documentation and troubleshoot guide?
I have read the documentation and troubleshoot guide
Environment
-**OS**: Void Linux x86_64-glibc
-**Sage Version**: version 9.7, Release Date: 2022-09-19
Steps To Reproduce
Install Flask
Create this example file
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
F = NumberField(x**2-x-1, name='w')
w = F.gen()
I = Ideal(F, 1)
print(F) # This is fine
print(I) # This gives an error
return F.__str__()
if __name__ == '__main__':
app.run()
It works if you change the last line to app.run(threaded=False).
After talking to @videlec who discussed the issue with Bill Alombert before, my understanding is that we are still far from being able to use pari from multiple threads in sage. (See also sagemath/cypari2#116.)
Is there an existing issue for this?
Did you read the documentation and troubleshoot guide?
Environment
Steps To Reproduce
Expected Behavior
The field and the ideal are printed in the terminal. The field is shown in the browser.
Actual Behavior
The field is printed in the terminal, but then an error occurs.
This is the output of
sage test_flask.sage &> output.txt
:output.txt
Additional Information
No response
The text was updated successfully, but these errors were encountered: