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

cannot load PyPlot with Enthought/Canopy python installation #68

Closed
xiaoweiz opened this issue Jul 12, 2014 · 1 comment
Closed

cannot load PyPlot with Enthought/Canopy python installation #68

xiaoweiz opened this issue Jul 12, 2014 · 1 comment

Comments

@xiaoweiz
Copy link

Environment: OSX 10.8.5, Canopy python 2.7.6 + matplotlib 1.3.1

matplotlib works in python and Pkg.add("PyPlot") passes with no warnings/errors. However, using PyPlot yields the following error

ERROR: PyError (PyImport_ImportModule) <type 'exceptions.ImportError'>
ImportError('cannot import name scimath',)
  File "/Users/zhangxiaowei/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-    packages/matplotlib/__init__.py", line 156, in <module>
    from matplotlib.cbook import is_string_like
  File "/Users/zhangxiaowei/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-    packages/matplotlib/cbook.py", line 28, in <module>
    import numpy as np
  File "/Users/zhangxiaowei/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-    packages/numpy/__init__.py", line 168, in <module>
    from . import add_newdocs
  File "/Users/zhangxiaowei/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-    packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/Users/zhangxiaowei/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-    packages/numpy/lib/__init__.py", line 17, in <module>
    from . import scimath as emath

 in pyerr_check at /Users/zhangxiaowei/.julia/v0.3/PyCall/src/exception.jl:58
 in pyimport at /Users/zhangxiaowei/.julia/v0.3/PyCall/src/PyCall.jl:85
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:51
while loading /Users/zhangxiaowei/.julia/v0.3/PyPlot/src/PyPlot.jl, in expression starting     on line 32
@stevengj
Copy link
Member

This is because PyCall does not yet work with Canopy (JuliaPy/PyCall.jl#42).

(My guess is that there is some path environment variable that I need to set for Canopy to work, but I haven't figured out what it is.)

In the meantime, I would recommend Anaconda.

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