Skip to content

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

Closed
@ufechner7

Description

@ufechner7

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

Activity

ufechner7

ufechner7 commented on Feb 24, 2014

@ufechner7
Author

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

-> same exception as above

stevengj

stevengj commented on Feb 24, 2014

@stevengj
Member

What version of numpy do you have?

stevengj

stevengj commented on Feb 24, 2014

@stevengj
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @stevengj@ufechner7

        Issue actions

          ImportError('cannot import name scimath',) · Issue #38 · JuliaPy/PyPlot.jl