You can't run Sage as root. If part of your Sage install is owned by root transfer file ownership to your user account: "sudo chown yas.yas ./sage".
On Monday, March 16, 2015 at 2:28:59 PM UTC+1, abolfazl salemi wrote: > > Hello! > I have installed SAGE from source files (sage-6.1.1.tar). Everything > works ok! > Then, I issued > > sage -upgrade > > but it failed. Now when i want to run sage in terminal... > > > yas@debian:~/sage-6.1.1$ sudo ./sage > sys:1: RuntimeWarning: not adding directory '' to sys.path since it's not > owned by a trusted user. > Untrusted users could put files in this directory which might then be > imported by your Python code. As a general precaution from similar > exploits, you should not execute Python code from this directory > ┌───────────────────────────── > ───────────────────────────────────────┐ > │ Sage Version 6.1.1, Release Date: 2014-02-04 │ > │ Type "notebook()" for the browser-based notebook interface. │ > │ Type "help()" for help. │ > └────────────────────────────────────────────────────────────────────┘ > sys:1: RuntimeWarning: not adding directory '/home/yas/sage-6.1.1/src/bin' > to sys.path since it's not owned by a trusted user. > Untrusted users could put files in this directory which might then be > imported by your Python code. As a general precaution from similar > exploits, you should not execute Python code from this directory > sys:1: RuntimeWarning: not adding directory '/home/yas/sage-6.1.1/src/bin' > to sys.path since it's not owned by a trusted user. > Untrusted users could put files in this directory which might then be > imported by your Python code. As a general precaution from similar > exploits, you should not execute Python code from this directory > Traceback (most recent call last): > File "/home/yas/sage-6.1.1/src/bin/sage-ipython", line 6, in <module> > from sage.repl.interpreter import SageTerminalApp > ImportError: No module named repl.interpreter > yas@debian:~/sage-6.1.1$ > > > > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
