Skip to content
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

option to install matplolib backends #6

Open
chrisjsewell opened this issue Nov 26, 2020 · 2 comments
Open

option to install matplolib backends #6

chrisjsewell opened this issue Nov 26, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@chrisjsewell
Copy link
Member

chrisjsewell commented Nov 26, 2020

See https://matplotlib.org/3.1.1/tutorials/introductory/usage.html#what-is-a-backend

Previously in ansible-role-aiida, for debian:

  • python3-gi
  • python3-gi-cairo
  • gir1.2-gtk-3.0

for redhat:

  • gtk3
  • python3-gobject

For debian, according to https://askubuntu.com/a/1166300, you should be able to just install with the generic python3-, then copy the so files for the required python version, e.g.

cp /usr/lib/python3/dist-packages/gi/_gi_cairo.cpython-36m-x86_64-linux-gnu.so /usr/lib/python3/dist-packages/gi/_gi_cairo.cpython-37m-x86_64-linux-gnu.so
cp /usr/lib/python3/dist-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so /usr/lib/python3/dist-packages/gi/_gi.cpython-37m-x86_64-linux-gnu.so
cp /usr/lib/python3/dist-packages/cairo/_cairo.cpython-36m-x86_64-linux-gnu.so /usr/lib/python3/dist-packages/cairo/_cairo.cpython-37m-x86_64-linux-gnu.so

(I tested this and it looks to work; import gi, cairo fails before copy and works after)

@chrisjsewell chrisjsewell added the enhancement New feature or request label Nov 26, 2020
@chrisjsewell
Copy link
Member Author

as with #5 this aslso ideally requires testing

@chrisjsewell
Copy link
Member Author

probably use python_mpl_gtk3 option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant