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

OSX Travis builds Python not as a Framework #878

Closed
nonhermitian opened this issue Sep 8, 2018 · 0 comments
Closed

OSX Travis builds Python not as a Framework #878

nonhermitian opened this issue Sep 8, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@nonhermitian
Copy link
Contributor

Informations

  • Qiskit Terra version:
  • Python version:
  • Operating system:

What is the current behavior?

Travis OSX builds fails when functions requiring matplotlib are imported (see #874 for example) because the default matplotlib backend does not work if Python is not built as a Framework.

Steps to reproduce the problem

What is the expected behavior?

PR's should not be held up because our Travis builds do not install Python properly for the default backend and fail.

Suggested solutions

The solution is discussed here: https://matplotlib.org/faq/osx_framework.html

Another possibility is to make a util script that changes the OSX matplotlib backend to something like TKAgg that works in non-Framework builds. The matplotlibrc is here:

import matplotlib
matplotlib.matplotlib_fname()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant