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

import on error #5

Closed
gasagna opened this issue Jul 17, 2014 · 3 comments
Closed

import on error #5

gasagna opened this issue Jul 17, 2014 · 3 comments

Comments

@gasagna
Copy link

gasagna commented Jul 17, 2014

HI,

cloned the repo and installed. I get this error on importing fenicstools:

python -c "import fenicstools"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/vagrant/home/.installdir/lib/python2.7/site-packages/fenicstools/__init__.py", line 8, in <module>
    from DofMapPlotter import DofMapPlotter
ImportError: cannot import name DofMapPlotter

I cannot understant why python complains about DofMapPlotter, which is in the path.

Davide

@MiroK
Copy link
Collaborator

MiroK commented Jul 17, 2014

Hi, I can't reproduce this bug on my machine. Is the rest of the installation okay? I mean, if you comment out the from DofMapPlotter import DofmapPlotter line in init.py and run some test or demo not related to dofmaps, is everything running smoothly then?

@gasagna
Copy link
Author

gasagna commented Jul 18, 2014

Hi, yes, the rest seems fine. It is indeed a very strange bug, which I cannot understand.

@ghost
Copy link

ghost commented Jul 30, 2014

Hi, I think this is simply because the matplotlib package is not installed. We should probably make a test and enable DofMapPlotter only if matplotlib is installed.

@mikaem mikaem closed this as completed Apr 16, 2015
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

3 participants