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/how to sage a .sage filehttps://ask.sagemath.org/question/41568/how-to-sage-a-sage-file/ I am having sage installed on a windows 10. Sage file example.sage.sage which is generated by sagetex is situated in K:\sageexample folder. How to run sage on this file. All references are full of jargonism and don't explain anything at all or give examples.
I run sage shell and prompt:
run ('K:sageexample\example.sage.sage') but no result. I run load command load ('K:sageexample\example.sage.sage') no example.
I don't want to install linux for one program.
How to "sage" a file from notebook interface?kate_l196Thu, 15 Mar 2018 18:27:18 +0100https://ask.sagemath.org/question/41568/Sagetex on Windows: Using miktex and sage on virtualbox. How to make it work?https://ask.sagemath.org/question/27264/sagetex-on-windows-using-miktex-and-sage-on-virtualbox-how-to-make-it-work/ Hello!
I've installed sagetex (2009-06-26) using the miktex package manager. I use Sage 6.7 on Oracle's Virtual Box, as recommended for windows users.
For me, the following code:
> \documentclass{article}
> \usepackage{sagetex}
>
> \begin{document}
>
> For example, there are
> $\sage{number_of_partitions(1269)}$
> integer partitions of $1269$.
>
> \end{document}
Gives this output:
> For example, there are ?? integer partitions of 1269.
All the sage commands just give "??" in the latex document. I've been looking at the documentation, but it doesn't seem to be for windows.
- Is sagetex supposed to work out of the box, just installing it on miktex and having sage installed on virtualbox?
- If not, is there an official procedure to make it work? e.g. documentation about sagetex on windows?
Thanks! eodMon, 06 Jul 2015 16:41:20 +0200https://ask.sagemath.org/question/27264/Sagetex and windows 7?https://ask.sagemath.org/question/9016/sagetex-and-windows-7/I have sage 5.0 successfully installed on my Windows 7 64 bit machine using Oracle's VM VirtualBox. However, I would like to use sagetex in my LyX 2.0 and TeXworks 0.4.3 editors. How can I accomplish this?Luis GuzmanWed, 30 May 2012 13:28:58 +0200https://ask.sagemath.org/question/9016/