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

JOSS REVIEW: Matplotlib issue on Mac when using (Ana)conda #26

Closed
mathieuboudreau opened this issue Aug 14, 2019 · 5 comments
Closed

JOSS REVIEW: Matplotlib issue on Mac when using (Ana)conda #26

mathieuboudreau opened this issue Aug 14, 2019 · 5 comments
Assignees
Labels
review comment JOSS reviewer comment

Comments

@mathieuboudreau
Copy link
Contributor

mathieuboudreau commented Aug 14, 2019

This is for openjournals/joss-reviews#1637

Not a high priority, but it may be worth noting to your users that if they're running on a Mac with (Ana)conda, the fix if they encounter the following error when running python virtualscanner/coms/coms_ui/coms_server_flask.py:

ImportError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of 'python' with 'pythonw'. See 'Working with Matplotlib on OSX' in the Matplotlib FAQ for more information.

is to run this command:

echo "backend: TkAgg" >> ~/.matplotlib/matplotlibrc

See: scikit-optimize/scikit-optimize#637 (comment)

@sravan953
Copy link
Collaborator

@sairamgeethanath This should go into the documentation under a 'Common errors' section?

@sairamgeethanath
Copy link
Collaborator

sairamgeethanath commented Aug 14, 2019

@sravan953 @mathieuboudreau If we all agree then we can file this in known issues as this is a package (matplotlib) dependency issue.

@mathieuboudreau
Copy link
Contributor Author

That works for me!

@mathieuboudreau
Copy link
Contributor Author

FYI: I found another solution that works better for me: https://matplotlib.org/3.1.0/faq/osx_framework.html

  • Install python.app (conda install python.app) and use pythonw rather than python.

@sravan953
Copy link
Collaborator

Referenced this issue in the KNOWN_ISSUES.md, commit 035c12a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review comment JOSS reviewer comment
Projects
None yet
Development

No branches or pull requests

3 participants