-
-
Notifications
You must be signed in to change notification settings - Fork 655
Closed as not planned
Labels
Description
Is there an existing issue for this?
- 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()
- run this file with sagemath, and access http://127.0.0.1:5000/ on a browser
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
:
Additional Information
No response