Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
noboruatkek opened this issue Apr 4, 2024 · 1 comment
Open

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

noboruatkek opened this issue Apr 4, 2024 · 1 comment

Comments

@noboruatkek
Copy link

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
Copy link
Member

culler commented Apr 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants