3-manifolds / Sage_macOS

SageMath as a macOS application bundle.
152 stars 15 forks source link

SageMath10.3 for arm on macos failed to start. #67

Open noboruatkek opened 5 months ago

noboruatkek commented 5 months ago

SageMath10.3 for arm failed to start with error messag: File "/private/var/tmp/sage-10.3-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 331, in InteractiveShell ast_transformers: List[ast.NodeTransformer] = List(


if I replace  "List[ast.NodeTransformer] "  with "ListType[ast.NodeTransformer]", sage starts working .
culler commented 5 months ago

Thank you. That is interesting.

I think this is the same issue as was reported in #65 and #66. You probably have some old software installed in your .sage directory by the Sage %pip command, which is incompatible with the version of ipython that is installed in the app. Those people also reported tracebacks mentioning the List type ("type List is not iterable"). Moving or removing ~/.sage fixed the issue for those two users.

You were lucky if you were able to change a file in the SageMath app bundle without breaking the signature and rendering the app unusable. I think it is sometimes possible if the changes are only made to text files, such as interactiveshell.py.