#11525: file name conflict in SageTeX using sage.tex
-----------------------------+----------------------------------------------
Reporter: Bochmann | Owner: tbd
Type: defect | Status: new
Priority: minor | Milestone: sage-4.7.2
Component: PLEASE CHANGE | Keywords: SageTeX
Work_issues: | Upstream: N/A
Reviewer: | Author: bochmann
Merged: | Dependencies:
-----------------------------+----------------------------------------------
SageTeX runs into a namespace conflict when naming the .tex file
"sage.tex".
Minimal example:
{{{
$ emacs sage.tex
\documentclass{article}
\usepackage{sagetex}
\begin{document}
\begin{sageblock}
f(x) = exp(x) * sin(2*x)
\end{sageblock}
\sageplot{plot(f, -1, 1)}
\end{document}
$ latex sage.tex
$ ls
sage.aux sage.dvi sage.log sage.sage sage.tex
}}}
now I run sage on sage.sage
{{{
$ sage sage.sage
Traceback (most recent call last):
File "sage.py", line 2, in <module>
from sage.all_cmdline import * # import sage library
File "/sandbox/sage.py", line 2, in <module>
from sage.all_cmdline import * # import sage library
ImportError: No module named all_cmdline
$ ls
sage.aux sage.log sage.pyc sage.tex
sage.dvi sage.py sage.sage
}}}
This creates a local file sage.py. Now we have a name space conflict with
the sage package. A quick fix for this bug is to name .tex file somehow
different, e.g. sage_test.tex.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11525>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.