Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

[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

[Errno 21] Is a directory

Hi, 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()

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

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) self.get_object()(*args, **kwds) 355 356 def __repr__(self):

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

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

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

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)

"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.

path. OSError: [Errno 21] Is a directory

directory