Ask Your Question

pi's profile - activity

2018-11-27 08:29:51 -0600 commented question Windows 10: SageMath crashes on start with permission errors, but seems to work if I run "as administrator"

i installed sagemath 8.4 on Windows 10. as normal user (no admin rights) when i try to start sagemath 8.4 or sagemath 8.4 Shell or sagemath 8.4 Notebook i get

   mkdir: das Verzeichnis „/home/sage/.sage//R“ kann nicht angelegt werden: Permission denied
    /opt/sagemath-8.4/src/bin/sage-env: Zeile 485: /home/sage/.sage//R/Makevars.user: No such file or directory

when i start as admin than sagemath 8.4 Shell or sagemath 8.4 Notebook dit work. sagemath 8.4 will produce:

--> 136                 os.rename(path, new_path)
    137             else:
    138                 # Otherwise, simply create the new path.
OSError: [Errno 21] Is a directory
2018-11-26 16:17:12 -0600 received badge  Self-Learner (source)
2018-11-26 16:17:12 -0600 received badge  Teacher (source)
2018-11-26 16:17:06 -0600 received badge  Student (source)
2018-11-26 14:57:04 -0600 commented answer multiplication -1 with a inequality

"For the moment" is getting funny after nearly 5 years. is it such a big problem?

2018-11-26 13:34:01 -0600 answered a question [Errno 21] Is a directory

Problem is solved by deleting the directories .sage and .local

2018-11-26 12:35:55 -0600 received badge  Editor (source)
2018-11-26 12:01:12 -0600 asked a question [Errno 21] Is a directory

Hi i installed sagemat 8.4 on Windows 10 (as admin) SageMath Shell: sage-sethome "D:\frank\OneDrive\SageMath" SageMath Notebook (Jupyter) is working SageMath (sage): [Errno 21] Is a directory

What can i do? thank you regards frank

sage: notebook()

OSError Traceback (most recent call last) <ipython-input-1-b5959bb24428> in <module>() ----> 1 notebook()

/opt/sagemath-8.4/local/lib/python2.7/site-packages/sage/misc/lazy_import.pyx in sage.misc.lazy_import.LazyImport.__call__ (build/cythonized/sage/misc/lazy_import.c:3759)() 352 True 353 """ --> 354 return self.get_object()(args, *kwds) 355 356 def __repr__(self):

/opt/sagemath-8.4/local/lib/python2.7/site-packages/sagenb/notebook/notebook_object.pyc in __call__(self, args, *kwds) 241 """ 242 def __call__(self, args, *kwds): --> 243 return self.notebook(args, *kwds) 244 245 notebook = run_notebook.notebook_run

/opt/sagemath-8.4/local/lib/python2.7/site-packages/sagenb/notebook/run_notebook.pyc in notebook_run(self, directory, port, interface, port_tries, secure, reset, accounts, openid, server_pool, ulimit, timeout, doc_timeout, upload, automatic_login, start_path, fork, quiet, server, profile, subnets, require_login, open_viewer, address) 533 # if none use defaults 534 --> 535 nb = notebook.load_notebook(directory) 536 537 directory = nb._dir

/opt/sagemath-8.4/local/lib/python2.7/site-packages/sagenb/notebook/notebook.pyc in load_notebook(dir, interface, port, secure, user_manager) 1837 1838 dir = make_path_relative(dir) -> 1839 nb = Notebook(dir) 1840 nb.interface = interface 1841 nb.port = port

/opt/sagemath-8.4/local/lib/python2.7/site-packages/sagenb/notebook/notebook.pyc in __init__(self, dir, user_manager) 175 176 # Store / Refresh public worksheets --> 177 for id_number in os.listdir(self.__storage._abspath(self.__storage._user_path("pub"))): 178 if id_number.isdigit(): 179 a = "pub/"+str(id_number)

/opt/sagemath-8.4/local/lib/python2.7/site-packages/sagenb/storage/filesystem_storage.pyc in _user_path(self, username) 134 # If both the old and new path exist, that's an error 135 # and this will raise an exception. --> 136 os.rename(path, new_path) 137 else: 138 # Otherwise, simply create the new path.

OSError: [Errno 21] Is a directory

2018-11-26 12:01:12 -0600 asked a question [Errno 21] Is a directory

Hi,

i installed sage 8.4 on Windows 10. (as admin)

With sagemath shell i dit: sage-sethome "D:\frank\OneDrive\SageMath"

Sagemath Notebook (Jupyter) is running

Sagemath (sage) gives error. what can i do?

thank you

regards Frank


sage: notebook()
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-1-b5959bb24428> in <module>()
----> 1 notebook()

/opt/sagemath-8.4/local/lib/python2.7/site-packages/sage/misc/lazy_import.pyx in sage.misc.lazy_import.LazyImport.__call__ (build/cythonized/sage/misc/lazy_import.c:3759)()
    352             True
    353         """
--> 354         return self.get_object()(*args, **kwds)
    355
    356     def __repr__(self):

/opt/sagemath-8.4/local/lib/python2.7/site-packages/sagenb/notebook/notebook_object.pyc in __call__(self, *args, **kwds)
    241     """
    242     def __call__(self, *args, **kwds):
--> 243         return self.notebook(*args, **kwds)
    244
    245     notebook = run_notebook.notebook_run

/opt/sagemath-8.4/local/lib/python2.7/site-packages/sagenb/notebook/run_notebook.pyc in notebook_run(self, directory, port, interface, port_tries, secure, reset, accounts, openid, server_pool, ulimit, timeout, doc_timeout, upload, automatic_login, start_path, fork, quiet, server, profile, subnets, require_login, open_viewer, address)
    533     # if none use defaults
    534
--> 535     nb = notebook.load_notebook(directory)
    536
    537     directory = nb._dir

/opt/sagemath-8.4/local/lib/python2.7/site-packages/sagenb/notebook/notebook.pyc in load_notebook(dir, interface, port, secure, user_manager)
   1837
   1838     dir = make_path_relative(dir)
-> 1839     nb = Notebook(dir)
   1840     nb.interface = interface
   1841     nb.port = port

/opt/sagemath-8.4/local/lib/python2.7/site-packages/sagenb/notebook/notebook.pyc in __init__(self, dir, user_manager)
    175
    176         # Store / Refresh public worksheets
--> 177         for id_number in os.listdir(self.__storage._abspath(self.__storage._user_path("pub"))):
    178             if id_number.isdigit():
    179                 a = "pub/"+str(id_number)

/opt/sagemath-8.4/local/lib/python2.7/site-packages/sagenb/storage/filesystem_storage.pyc in _user_path(self, username)
    134                 # If both the old and new path exist, that's an error
    135                 # and this will raise an exception.
--> 136                 os.rename(path, new_path)
    137             else:
    138                 # Otherwise, simply create the new path.

OSError: [Errno 21] Is a directory
2014-02-16 00:49:58 -0600 asked a question multiplication -1 with a inequality

hi, in sagemath cloud i multiply a inequality with -1. i expected that the operator change from > to <. but it dit not!

my input:

reset();var(x)
ie = (x>1); show(ie)
show(solve(ie,x))
ie = ie*(-1); show(ie)
show(solve(ie,x))

i dit the solve() to see that the multiplication with -1 results in another solution, which is wrong.