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

ImportError('cannot import name scimath',) #38

Closed
ufechner7 opened this issue Feb 20, 2014 · 3 comments
Closed

ImportError('cannot import name scimath',) #38

ufechner7 opened this issue Feb 20, 2014 · 3 comments

Comments

@ufechner7
Copy link

Hello,
I use Ubuntu 12.04, 64 bit.
I installed the newest matplotlib version with pip:
sudo pip install -U matplotlib

It works fine in python.

But I cannot import it from Julia 0.2.

using PyPlot results in the following error message:

ulia> using PyPlot
LoadError("/home/ufechner/.julia/PyPlot/src/PyPlot.jl",32,PyError (PyImport_ImportModule) <type 'exceptions.ImportError'>
ImportError('cannot import name scimath',)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/init.py", line 156, in
from matplotlib.cbook import is_string_like
File "/usr/local/lib/python2.7/dist-packages/matplotlib/cbook.py", line 28, in
import numpy as np
File "/usr/local/lib/python2.7/dist-packages/numpy/init.py", line 153, in
from . import add_newdocs
File "/usr/local/lib/python2.7/dist-packages/numpy/add_newdocs.py", line 13, in
from numpy.lib import add_newdoc
File "/usr/local/lib/python2.7/dist-packages/numpy/lib/init.py", line 17, in
from . import scimath as emath
)

julia>

Any idea?

Uwe

@ufechner7
Copy link
Author

I can reproduce the problem already like this (using julia 0.21):
using PyCall
@pyimport numpy

-> same exception as above

@stevengj
Copy link
Member

What version of numpy do you have?

@stevengj
Copy link
Member

Closing in favor of JuliaPy/PyCall.jl#65.

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