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

Unhelpful exception raised when IPython is not installed #108

Closed
xigrug opened this issue Jan 1, 2018 · 2 comments
Closed

Unhelpful exception raised when IPython is not installed #108

xigrug opened this issue Jan 1, 2018 · 2 comments

Comments

@xigrug
Copy link

xigrug commented Jan 1, 2018

gmt/tests/test_figure.py::test_figure_show <- /soft/anaconda2/envs/python3.6/lib/python3.6/site-packages/gmt_python-0+unknown-py3.6.egg/gmt/tests/test_figure.py FAILED [ 80%]
E TypeError: 'NoneType' object is not callable

/soft/anaconda2/envs/python3.6/lib/python3.6/site-packages/gmt_python-0+unknown-py3.6.egg/gmt/figure.py:308: TypeError

It doesn't work when I am tring
fig_alias = gmt.Figure()
fig_alias.coast(R='-90/-70/0/20', J='M6i', G='gray', S='blue', B=True)
fig_alias.show()
Traceback (most recent call last):
File "", line 1, in
File "/users1j/cliu/soft/anaconda2/envs/python3.6/lib/python3.6/site-packages/gmt_python-0+unknown-py3.6.egg/gmt/figure.py", line 308, in show
img = Image(data=png, width=width)
TypeError: 'NoneType' object is not callable

@xigrug
Copy link
Author

xigrug commented Jan 2, 2018

conda install IPython solve this problem

@leouieda
Copy link
Member

leouieda commented Jan 9, 2018

@xigrug thanks for reporting. The error message should be better in this case. If you're not running on the Jupyter notebook, use the argument external=True to open an external PDF viewer.

@leouieda leouieda changed the title test_figure.py FAILED Unhelpful exception raised when IPython is not installed Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants