ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 12 Apr 2019 21:44:50 +0200Why do I get the OSError: [Errno2] when I try to run a .sage filehttps://ask.sagemath.org/question/46116/why-do-i-get-the-oserror-errno2-when-i-try-to-run-a-sage-file/Hello.
I'm new to SageMath and just installed it. Unfortunately I'm not too concerned with the importance of the information you might need to help me out - sorry for that.
So I have Windows 10 and I installed SageMath via These pre- built binaries if that's what it is called. I used the sagetex package to create a .sage file and I tried to run it with sage obviously. Therefore, I opened the Shell and typed
sage 'C:/Users/scheu/OneDrive/Desktop/sagetex.sage'
with sagetex.sage being my .sage file and I'm getting the following:
Traceback (most recent call last):
File "/opt/sagemath-8.6/src/bin/sage-preparse", line 245, in <module>
do_preparse(f)
File "/opt/sagemath-8.6/src/bin/sage-preparse", line 137, in do_preparse
with atomic_write(fname) as f:
File "/opt/sagemath-8.6/local/lib/python2.7/site-packages/sage/misc/temporary_file.py", line 422, in __enter__
fd, name = tempfile.mkstemp(dir=self.tmpdir)
File "/opt/sagemath-8.6/local/lib/python2.7/tempfile.py", line 314, in mkstemp
return _mkstemp_inner(dir, prefix, suffix, flags)
File "/opt/sagemath-8.6/local/lib/python2.7/tempfile.py", line 244, in _mkstemp_inner
fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '/home/sage/C:/Users/scheu/OneDrive/Desktop/Programme/LaTeX Files,Texmaker/Hilffiles/sagetex test/tmpfPP2mL'
By the way, I am sorry for putting the Code in my Question that way, I had just no idea how to Format this Code as one Code :(
Anyways, it says something I don't quite understand and I've already looked up the same Question, but it didn't help…
Thank you for your answers.LilanarusFri, 12 Apr 2019 21:44:50 +0200https://ask.sagemath.org/question/46116/Rewriting paths gives OSError before launching Sagehttps://ask.sagemath.org/question/32404/rewriting-paths-gives-oserror-before-launching-sage/ Running sage in my terminal gives the following output
Rewriting paths for your new installation directory
===================================================
This might take a few minutes but only has to be done once.
patching /usr/lib/sagemath/src/build/cythonized/sage/structure/list_clone.c
Traceback (most recent call last):
File "/usr/lib/sagemath/relocate-once.py", line 85, in <module>
p('src/build/cythonized/sage/structure/list_clone.c').substitute().save()
File "/usr/lib/sagemath/relocate-once.py", line 70, in __call__
return FilePatch(self, filename)
File "/usr/lib/sagemath/relocate-once.py", line 21, in __init__
self.st = os.stat(filename)
OSError: [Errno 2] No such file or directory: '/usr/lib/sagemath/src/build/cythonized/sage/structure/list_clone.c'
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.10, Release Date: 2015-12-18 │
│ Type "notebook()" for the browser-based notebook interface. │
│ Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage:
I'm curious how I can fix this error.
done_with_fishSun, 31 Jan 2016 22:12:27 +0100https://ask.sagemath.org/question/32404/Calling Mathematica gives 'Read-only file system'https://ask.sagemath.org/question/29372/calling-mathematica-gives-read-only-file-system/ When I try to call Mathematica for anything (`mathematica('1')`), it comes back with
OSError: [Errno 30] Read-only file system: '/export/pkgs/linux-rh6/sagemath-6.3/local/share/sage/ext/mathematica'
Is there anything I can do to remedy this?
Calling `math` from the command line will open Mathematica.jaebondSun, 30 Aug 2015 18:15:15 +0200https://ask.sagemath.org/question/29372/