-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Description
I see an issue with the iminuit Sphinx build, which could be a bug in the matplotlib plot_directive, or a bug in Sphinx or just ignorance on my part (if that's the case, apologies!)
This is matplotlib 1.5.1, Sphinx 1.3.6, and Cython 0.23.4.
I see the same error on both Python 2 and 3 on OS X.
It should be easy to reproduce the issue within a minute by running these commands:
git clone https://github.com/iminuit/iminuit.git
cd iminuit/
make build
cd doc/
make html
The error I get is here:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/matplotlib/sphinxext/plot_directive.py", line 517, in run_code
six.exec_(code, ns)
File "<string>", line 8, in <module>
File "iminuit/_libiminuit.pyx", line 343, in iminuit._libiminuit.Minuit.__init__ (iminuit/_libiminuit.cpp:3146)
File "iminuit/_libiminuit.pyx", line 1397, in iminuit._libiminuit.Minuit._auto_frontend (iminuit/_libiminuit.cpp:20103)
ImportError: No module named 'iminuit.frontends'
The code is here: https://github.com/iminuit/iminuit/blob/master/iminuit/_libiminuit.pyx#L1397
This doesn't seem right, because iminuit.frontends does exist, and I can execute
https://github.com/iminuit/iminuit/blob/master/doc/pyplots/draw_mnprofile.py
just fine directly.
The error just occurs when running draw_mncontour via the plot directive
.. plot:: pyplots/draw_mnprofile.py
:include-source:
from here: https://github.com/iminuit/iminuit/blob/master/iminuit/_libiminuit.pyx#L987
As far as I know this is not a regression, i.e. this has never worked.