Ask Your Question
0

How do I integrate sagemath with Intel one-api ?

asked 2022-07-02 13:10:41 +0100

aurelius_nero gravatar image

updated 2022-07-04 16:44:18 +0100

FrédéricC gravatar image

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

edit retag flag offensive close merge delete

Comments

What do you mean by "integrate intel one api with sagemath"?

slelievre gravatar imageslelievre ( 2022-07-04 08:12:50 +0100 )edit

@slelievre Like how do I make sagemath work using intel one api's version of python ?

aurelius_nero gravatar imageaurelius_nero ( 2022-07-04 09:09:55 +0100 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2022-07-04 18:10:58 +0100

slelievre gravatar image

how do I make sagemath work using intel one api's version of python

Build Sage from source following the

At the "configure" stage, make sure Sage's build system detects the system Python and is set to use it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-07-02 13:10:41 +0100

Seen: 254 times

Last updated: Jul 04 '22