Hey Alex, might be easier to read this with code syntax formatting:

ERROR: InitError: PyError (:PyImport_ImportModule) <type 
'exceptions.ImportError'>



ImportError('No module named externals',)

  File "/Library/Python/2.7/site-packages/mpl_toolkits/mplot3d/__init__.py", 
line 4, in <module>

    from matplotlib.externals import six




 [inlined code] from /Users/alex/.julia/v0.4/PyCall/src/exception.jl:81

 in pyimport at /Users/alex/.julia/v0.4/PyCall/src/PyCall.jl:302

 in __init__ at /Users/alex/.julia/v0.4/PyPlot/src/PyPlot.jl:275

 in _require_from_serialized at loading.jl:84

 in _require_from_serialized at /Applications/Julia-0.4.2.app/Contents/
Resources/julia/lib/julia/sys.dylib

 in require at /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/
julia/sys.dylib

during initialization of module PyPlot



On Tuesday, December 8, 2015 at 1:41:38 PM UTC-5, Alex Yang wrote:
>
> Hi all,
>
> I recently downloaded and installed the latest version of julia. I'm new 
> to this language. Whenever I try to using PyPlot, this error gets thrown. 
> Strangely enough, if I call using PyPlot again, no error happens and the 
> PyPlot functionality seems to work. Whenever I need to use this library, I 
> just end up calling "using PyPlot" twice. This feels kind of hacky though. 
> Any ideas as  to what could be going on? Thanks!
>
> *ERROR: InitError: PyError (:PyImport_ImportModule) <type 
> 'exceptions.ImportError'>*
>
> *ImportError('No module named externals',)*
>
> *  File 
> "/Library/Python/2.7/site-packages/mpl_toolkits/mplot3d/__init__.py", line 
> 4, in <module>*
>
> *    from matplotlib.externals import six*
>
>
> * [inlined code] from /Users/alex/.julia/v0.4/PyCall/src/exception.jl:81*
>
> * in pyimport at /Users/alex/.julia/v0.4/PyCall/src/PyCall.jl:302*
>
> * in __init__ at /Users/alex/.julia/v0.4/PyPlot/src/PyPlot.jl:275*
>
> * in _require_from_serialized at loading.jl:84*
>
> * in _require_from_serialized at 
> /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/julia/sys.dylib*
>
> * in require at 
> /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/julia/sys.dylib*
>
> *during initialization of module PyPlot*
>

Reply via email to