astrojuanlu / fenics-recipes

This repository contains conda recipes for the FEniCS libraries
The Unlicense
13 stars 15 forks source link

DOLFIN runtime dependency is not met. Install the following python module: 'ffc' and make sure its location is listed in PYTHONPATH. #21

Closed jonmilby closed 9 years ago

jonmilby commented 9 years ago

After installing Anaconda and fenics on CentOS 6.6 or 7, I am having an issue.
Running "from dolfin import *"

Fails with the error: $ python template_timedep.py Vendor: Continuum Analytics, Inc. Package: mkl Message: trial mode expires in 30 days

DOLFIN runtime dependency is not met. Install the following python module: 'ffc' and make sure its location is listed in PYTHONPATH.

astrojuanlu commented 9 years ago

Hello @jonmilby, could you please try python -c "import ffc"? This error is very common and has nothing to do with a missing ffc.

astrojuanlu commented 9 years ago

Feedback needed, please reopen if error persists.

jbcolli2 commented 9 years ago

Hello, I am also having this problem as well. I am running Spyder on a Mac with Yosemite. I get the exact same error message. I tried running python -c "import ffc" and it has not fixed the problem. Can you please explain what the problem is?

astrojuanlu commented 9 years ago

Hello @jbcolli2, what is the error message that you see when you try python -c "import fcc"?

jbcolli2 commented 9 years ago

Hello @Juanlu001 , There actually wasn't an error message. Executed the command in the terminal with Spyder closed. I opened Spyder and tried to run a Fenics program and got the same message as above.

astrojuanlu commented 9 years ago

I didn't quite understand, would you please try typing in a Python or IPython terminal

>>> import fcc

and paste the output?

jbcolli2 commented 9 years ago

I have two python terminals I can use. The one I get through the Mac terminal will import ffc fine. This is because the mac terminal is set up to run Fenics. When I type in "import ffc" to the python terminal in Spyder I get the following message:

Traceback (most recent call last): File "", line 1, in ImportError: No module named 'fcc'

Do you think the problem is with Spyder not being set up correctly to find ffc? I've put the ffc path into the PYTHONPATH variable in Spyder.

On Fri, Sep 4, 2015 at 10:42 AM, Juan Luis Cano Rodríguez < notifications@github.com> wrote:

I didn't quite understand, would you please try typing in a Python or IPython terminal

import fcc

and paste the output?

— Reply to this email directly or view it on GitHub https://github.com/Juanlu001/fenics-recipes/issues/21#issuecomment-137771962 .

J.B. Collins, Ph.D West Texas A&M University Department of Mathematics CC 421D 806-651-5260

astrojuanlu commented 9 years ago

On 2015-09-04 18:02, Jeb Collins wrote:

When I type in "import ffc" to the python terminal in Spyder I get the following message:

Traceback (most recent call last): File "", line 1, in ImportError: No module named 'fcc'

Do you think the problem is with Spyder not being set up correctly to find ffc? I've put the ffc path into the PYTHONPATH variable in Spyder.

Yes, it definitely looks like a misconfiguration in Spyder then. I am sorry but I cannot help with that :/ You can try printing sys.path to see if something is wrong or asking in sites like superuser.com.

jbcolli2 commented 9 years ago

Ok, thanks for your help.

On Friday, September 4, 2015, Juan Luis Cano Rodríguez < notifications@github.com> wrote:

On 2015-09-04 18:02, Jeb Collins wrote:

When I type in "import ffc" to the python terminal in Spyder I get the following message:

Traceback (most recent call last): File "", line 1, in ImportError: No module named 'fcc'

Do you think the problem is with Spyder not being set up correctly to find ffc? I've put the ffc path into the PYTHONPATH variable in Spyder.

Yes, it definitely looks like a misconfiguration in Spyder then. I am sorry but I cannot help with that :/ You can try printing sys.path to see if something is wrong or asking in sites like superuser.com.

— Reply to this email directly or view it on GitHub https://github.com/Juanlu001/fenics-recipes/issues/21#issuecomment-137780684 .

J.B. Collins, Ph.D West Texas A&M University Department of Mathematics CC 421D 806-651-5260

kilojoules commented 8 years ago

I got this problem too from brew dolfin. Here's the error I got:

$ python -c "import ffc"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/ffc/__init__.py", line 18, in <module>
    from ffc.compiler import compile_form, compile_element
  File "/usr/local/lib/python2.7/site-packages/ffc/compiler.py", line 121, in <module>
    from ffc.log import info, info_green, warning
  File "/usr/local/lib/python2.7/site-packages/ffc/log.py", line 31, in <module>
    from ufl.common import dstr, tstr
ImportError: No module named common
divyabohra commented 5 years ago

I get the same errors but only after I install matplotlib in the same anaconda environment as fenics. Without matplotlib, I get no error and everything works fine. Can someone help?