Skip to content

Cannot make plot_directive to work on Python-3 #896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ankostis opened this issue Aug 20, 2014 · 7 comments
Closed

Cannot make plot_directive to work on Python-3 #896

ankostis opened this issue Aug 20, 2014 · 7 comments
Assignees
Labels
Operations Operations or server issue Support Support question

Comments

@ankostis
Copy link
Contributor

I'm trying to embed autogenerated matplotlib diagrams into the docs with the Sphinx's plot_directive but i have multiple issues with the current state of things in python-3.
I have read the relevant issues explaining how to use the global system's packages (#217, #218 & #272, #334), yet i cannot figure out the following:

  1. The "virtualenv + --system-site-packages" does not work, and when RTD prepares the build, it still tries to download and install a new matplotlib version, and ofcourse it fails due to freetype:

    ...
    Extension error:
    Could not import extension matplotlib.sphinxext.plot_directive (exception: No module named 'matplotlib')

  2. I cannot find somewhere a list with the available global-site packages in each environment. In my case I need real (not mocked-out) pandas, numpy, scipy & matplotlib for the pyplot-diagrams to work. Are these available as site-packages? (assuming that i manage to see them)

@ankostis ankostis changed the title Cannot make plot_directive to work Cannot make plot_directive to work on Python-3 Aug 20, 2014
@cdeil
Copy link

cdeil commented Aug 21, 2014

I have a plot that needs scipy 0.14, but readthedocs has scipy 0.13 and pip install fails for scipy 0.14 because the BLAS libraries are missing:
https://readthedocs.org/builds/gammapy/1618791/

Would it be possible to update to scipy 0.14?

And could you please update the list of pre-installed package and add the version numbers here?
https://docs.readthedocs.org/en/latest/builds.html#packages-installed-in-the-build-environment

Thanks!

@ankostis
Copy link
Contributor Author

Please, is it possible that RTD-builders have system-provided packages for matplotlib, numpy, scipy and pandas for python-3 installed?
(python-2 seems to already provide these packages, so it is kind of "discrimination" for python-3 projects :-)

@ankostis
Copy link
Contributor Author

ankostis commented Nov 3, 2014

Please, any feedback on this?

@cdeil
Copy link

cdeil commented Aug 31, 2015

Something changed on readthedocs.
For me pip install scipy now works:
https://readthedocs.org/projects/gammapy/builds/3287203/
Thanks!

@agjohnson
Copy link
Contributor

I believe py3 is still affected here. I'll open a ticket to get some of the missing py3 dependencies into our builders

@agjohnson agjohnson self-assigned this Aug 31, 2015
@gregmuellegger
Copy link
Contributor

@ankostis We now have python3 packages for matplotlib, scipy and numpy on the servers. I assume that the plot_directive will now work for Python3 builds. Sorry for the real long wait. Finally we are there :)

@cdeil
Copy link

cdeil commented Sep 17, 2015

🎉 😄 🎉
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Operations Operations or server issue Support Support question
Projects
None yet
Development

No branches or pull requests

4 participants