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

Sympy online shell seems never finishing loading or initializing. #21

Closed
markgao11 opened this issue Apr 9, 2024 · 3 comments
Closed

Comments

@markgao11
Copy link

markgao11 commented Apr 9, 2024

I tried to use the online shell
@ https://www.sympy.org/en/shell.html

but the loading process seems never finishing.

always displaying [*]:

[*]: from sympy import *
from sympy import *
init_printing()
x, y, z, t = symbols('x y z t')
k, m, n = symbols('k m n', integer=True)
f, g, h = symbols('f g h', cls=Function)
...

Thanks for your attention.
Mark

@asmeurer asmeurer transferred this issue from sympy/sympy Apr 9, 2024
@asmeurer
Copy link
Member

asmeurer commented Apr 9, 2024

I see this too. I get the following error in the console

Uncaught (in promise) PythonError: Traceback (most recent call last):
  File "/lib/python311.zip/_pyodide/_base.py", line 540, in eval_code_async
    await CodeRunner(
  File "/lib/python311.zip/_pyodide/_base.py", line 365, in run_async
    await coroutine
  File "<exec>", line 6, in <module>
  File "/lib/python3.11/site-packages/pyodide_kernel/__init__.py", line 20, in <module>
    from .display import LiteStream
  File "/lib/python3.11/site-packages/pyodide_kernel/display.py", line 4, in <module>
    from IPython.core.displayhook import DisplayHook
  File "/lib/python3.11/site-packages/IPython/__init__.py", line 55, in <module>
    from .terminal.embed import embed
  File "/lib/python3.11/site-packages/IPython/terminal/embed.py", line 16, in <module>
    from IPython.terminal.interactiveshell import TerminalInteractiveShell
  File "/lib/python3.11/site-packages/IPython/terminal/interactiveshell.py", line 48, in <module>
    from .debugger import TerminalPdb, Pdb
  File "/lib/python3.11/site-packages/IPython/terminal/debugger.py", line 6, in <module>
    from IPython.core.completer import IPCompleter
  File "/lib/python3.11/site-packages/IPython/core/completer.py", line 219, in <module>
    from IPython.core.guarded_eval import guarded_eval, EvaluationContext
  File "/lib/python3.11/site-packages/IPython/core/guarded_eval.py", line 40, in <module>
    from typing_extensions import TypeAliasType
ImportError: cannot import name 'TypeAliasType' from 'typing_extensions' (/lib/python3.11/site-packages/typing_extensions.py)

    at new_error (pyodide.asm.js:9:14992)
    at pyodide.asm.wasm
    at pyodide.asm.wasm
    at _PyCFunctionWithKeywords_TrampolineCall (pyodide.asm.js:9:126959)
    at pyodide.asm.wasm
    at pyodide.asm.wasm
    at pyodide.asm.wasm
    at pyodide.asm.wasm
    at pyodide.asm.wasm
    at pyodide.asm.wasm
    at pyodide.asm.wasm
    at pyodide.asm.wasm
    at pyodide.asm.wasm
    at pyodide.asm.wasm
    at pyodide.asm.wasm
    at Module.callPyObjectKwargs (pyodide.asm.js:9:75551)
    at Module.callPyObject (pyodide.asm.js:9:75996)
    at wrapper (pyodide.asm.js:9:57850)

@JZimmerman12
Copy link

It seems to be working again. I've been able to run code on it for the past few minutes.

@agriyakhetarpal
Copy link
Collaborator

SymPy Live has been working again and Pyodide has had a few releases by now. Considering that there have not been any similar issues recently, we should be in a position to close this. Please feel free to reopen it if you face another problem. Thank you!

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

4 participants