Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This worked fine for me on macOS 13.4.1 with SageMath-10.0:

sage: t = tmp_filename(ext='.py')
sage: with open(t, 'w') as f:
....:     _ = f.write("print('hello world')")
....: 
sage: load(t)
hello world

So, more information would be needed to diagnose the problem. Please consider opening a github issue if you think this is really a bug.

This worked fine for me on macOS 13.4.1 with SageMath-10.0:

sage: t = tmp_filename(ext='.py')
sage: with open(t, 'w') as f:
....:     _ = f.write("print('hello world')")
....: 
sage: load(t)
hello world

So, more information would be needed to diagnose the problem. Please consider opening a github issue if you think this is really a bug.

This worked fine for me on macOS 13.4.1 with SageMath-10.0:

sage: t = tmp_filename(ext='.py')
sage: with open(t, 'w') as f:
....:     _ = f.write("print('hello world')")
....: 
sage: load(t)
hello world

So, more information would be needed to diagnose the problem. Please consider opening a github issue if you think this is really a bug.

One additional comment: I see that neither the current sage source code nor the SageMath 10.1 app contains a file named sage/repl/utils.py. So it is not surprising that python is not able to find that module. This makes me suspect that you have an older version of Sage somewhere on your system, and you have somehow configured your environment so that the python interpreter in SageMath 10.0 imports an old version of some module which expects to find the module sage.repl.utils.