Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do I intergrate sagemath with Intel one-api ?

Bonjour, I am trying to integrate intel one api with sagemath. I get these error messages.

/usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found
python3: can't open file '/home/agnelo/jupyter': [Errno 2] No such file or directory
[agnelo@fedora ~]$ sage -n jupyter
/usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found
 ┌─────────────────────────────────────────────────────  ───────────────┐
│ SageMath version 9.6, Release Date: 2022-05-15                     │
│ Using Python 3.10.5. Type "help()" for help.                       │
└────────────────────────────────────────────────────────────────────┘

Please wait while the Sage Jupyter Notebook server starts...
[I 14:03:16.383 NotebookApp] Writing notebook server cookie secret to /home/agnelo/.local/share/jupyter/runtime/notebook_cookie_secret
[I 14:03:16.522 NotebookApp] Serving notebooks from local directory: /home/agnelo
[I 14:03:16.522 NotebookApp] Jupyter Notebook 6.4.8 is running at:
[I 14:03:16.522 NotebookApp] http://localhost:8888/?token=a3438b2861fa0b96c33c53608779fbeb35ad8896f45acaa6
[I 14:03:16.522 NotebookApp]  or http://127.0.0.1:8888/?token=a3438b2861fa0b96c33c53608779fbeb35ad8896f45acaa6
[I 14:03:16.522 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:03:16.579 NotebookApp] 

To access the notebook, open this file in a browser:
    file:///home/agnelo/.local/share/jupyter/runtime/nbserver-13799-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=a3438b2861fa0b96c33c53608779fbeb35ad8896f45acaa6
 or http://127.0.0.1:8888/?token=a3438b2861fa0b96c33c53608779fbeb35ad8896f45acaa6
 [I 14:04:17.060 NotebookApp] Writing notebook-signing key to /home/agnelo/.local/share/jupyter/notebook_secret
 [W 14:04:17.066 NotebookApp] Notebook Documents/Sagemath experiments/test 4.ipynb is not trusted
 [I 14:04:17.374 NotebookApp] Kernel started: 686802dd-d586-4ef1-80d6-726c13d3a436, name: sagemath
 /usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found
 /usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found
 /usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found
 /opt/intel/oneapi/intelpython/latest/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel'         (ModuleNotFoundError: No module named 'sage')

[I 14:04:20.366 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports /usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found /opt/intel/oneapi/intelpython/latest/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: No module named 'sage') [I 14:04:23.389 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports /usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found /opt/intel/oneapi/intelpython/latest/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: No module named 'sage') [I 14:04:26.412 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports /usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found /opt/intel/oneapi/intelpython/latest/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: No module named 'sage') [I 14:04:29.432 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports /usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found /opt/intel/oneapi/intelpython/latest/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: No module named 'sage') [I 14:04:32.453 NotebookApp] KernelRestarter: restarting kernel (5/5), new random ports /usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found /opt/intel/oneapi/intelpython/latest/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: No module named 'sage') [W 14:04:35.474 NotebookApp] KernelRestarter: restart failed [W 14:04:35.474 NotebookApp] Kernel 686802dd-d586-4ef1-80d6-726c13d3a436 died, removing from map. [W 14:04:38.397 NotebookApp] Replacing stale connection: 686802dd-d586-4ef1-80d6-726c13d3a436:5e4297984ee74cf3a20244ea39266e20 [W 14:05:00.415 NotebookApp] Replacing stale connection: 686802dd-d586-4ef1-80d6-726c13d3a436:5e4297984ee74cf3a20244ea39266e20

click to hide/show revision 2
None

How do I intergrate sagemath with Intel one-api ?

Bonjour, I am trying to integrate intel one api with sagemath. I get these error messages.

/usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found
python3: can't open file '/home/agnelo/jupyter': [Errno 2] No such file or directory
[agnelo@fedora ~]$ sage -n jupyter
/usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found
/usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found
 ┌─────────────────────────────────────────────────────  ───────────────┐
│ SageMath version 9.6, Release Date: 2022-05-15                     │
│ Using Python 3.10.5. Type "help()" for help.                       │
└────────────────────────────────────────────────────────────────────┘

Please wait while the Sage Jupyter Notebook server starts...
[I 14:03:16.383 NotebookApp] Writing notebook server cookie secret to /home/agnelo/.local/share/jupyter/runtime/notebook_cookie_secret
[I 14:03:16.522 NotebookApp] Serving notebooks from local directory: /home/agnelo
[I 14:03:16.522 NotebookApp] Jupyter Notebook 6.4.8 is running at:
[I 14:03:16.522 NotebookApp] http://localhost:8888/?token=a3438b2861fa0b96c33c53608779fbeb35ad8896f45acaa6
[I 14:03:16.522 NotebookApp]  or http://127.0.0.1:8888/?token=a3438b2861fa0b96c33c53608779fbeb35ad8896f45acaa6
[I 14:03:16.522 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:03:16.579 NotebookApp] 

To access the notebook, open this file in a browser:
    file:///home/agnelo/.local/share/jupyter/runtime/nbserver-13799-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=a3438b2861fa0b96c33c53608779fbeb35ad8896f45acaa6
 or http://127.0.0.1:8888/?token=a3438b2861fa0b96c33c53608779fbeb35ad8896f45acaa6
 [I 14:04:17.060 NotebookApp] Writing notebook-signing key to /home/agnelo/.local/share/jupyter/notebook_secret
 [W 14:04:17.066 NotebookApp] Notebook Documents/Sagemath experiments/test 4.ipynb is not trusted
 [I 14:04:17.374 NotebookApp] Kernel started: 686802dd-d586-4ef1-80d6-726c13d3a436, name: sagemath
 /usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found
 /usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found
 /usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found
 /opt/intel/oneapi/intelpython/latest/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel'         (ModuleNotFoundError: No module named 'sage')

[I 14:04:20.366 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports /usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found /opt/intel/oneapi/intelpython/latest/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: No module named 'sage') [I 14:04:23.389 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports /usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found /opt/intel/oneapi/intelpython/latest/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: No module named 'sage') [I 14:04:26.412 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports /usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found /opt/intel/oneapi/intelpython/latest/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: No module named 'sage') [I 14:04:29.432 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports /usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found /opt/intel/oneapi/intelpython/latest/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: No module named 'sage') [I 14:04:32.453 NotebookApp] KernelRestarter: restarting kernel (5/5), new random ports /usr/lib64/sagemath/local/bin/sage-env: line 14: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 15: module: command not found /usr/lib64/sagemath/local/bin/sage-env: line 16: module: command not found /opt/intel/oneapi/intelpython/latest/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: No module named 'sage') [W 14:04:35.474 NotebookApp] KernelRestarter: restart failed [W 14:04:35.474 NotebookApp] Kernel 686802dd-d586-4ef1-80d6-726c13d3a436 died, removing from map. [W 14:04:38.397 NotebookApp] Replacing stale connection: 686802dd-d586-4ef1-80d6-726c13d3a436:5e4297984ee74cf3a20244ea39266e20 [W 14:05:00.415 NotebookApp] Replacing stale connection: 686802dd-d586-4ef1-80d6-726c13d3a436:5e4297984ee74cf3a20244ea39266e20