Dear Group,
I am setting sail for a wonderful word of Sphinx. But I am a small
problem through my journey. I am following the tutorial "documenting
matplotlib with Sphinx" at "http://matplotlib.sourceforge.net/devel/
documenting_mpl.html". Everything goes fine until I get the error for
the directive:
.. plot:: pyplots/pyplot_simple.py
:include-source:
When I give a command "make html", I am getting the following error
below:
Exception occurred:
File "/usr/lib/pymodules/python2.5/matplotlib/sphinxext/
plot_directive.py", line 61, in relpath
raise OSError, 'Target does not exist: '+target
OSError: Target does not exist: /pyplots
The full traceback has been saved in /tmp/sphinx-err-XeIBUm.log, if
you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error
message can be provided next time.
Either send bugs to the mailing list at <http://groups.google.com/
group/sphinx-dev/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/
sphinx/issues/>. Thanks!
make: *** [html] Error 1
It is strange that the other matplotlib directives work without any
hassle.
Here is my small code:
---------------------------------
>----------------------------------------------------------
.. plot:: /pyplots/ellipses.py
:include:
.. literalinclude:: pyplots/ellipses.py
.. plot::
import matplotlib.pyplot as plt
import numpy as np
x = np.random.randn(1000)
plt.hist(x,20)
plt.grid()
plt.title(r'Normal: $\mu=%.2f, \sigma=%.2f$'%(x.mean(),x.std()))
plt.show()
.. math::
\int_{-\infty}^{\infty}\frac{e^{i\phi}}{1+x^2\frac{e^{i\phi}}
{1+x^2}}
---------------------------------------
<------------------------------------------------------
Any help to solve the problem?
Regards,
Ozhan
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" 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/sphinx-dev?hl=en.