ModuleNotFoundError: No module named '_common'

203 views
Skip to first unread message

Divyat Mahajan

unread,
Jun 20, 2018, 9:00:26 PM6/20/18
to fenics-support
I want to install the fenics version 2017.1.0. I used the following command to install it with conda: 

conda install -c conda-forge fenics=2017.1.0


But after installation, import fenics led to the following error:

  File "/scratch/work/mahajad1/fenicselfi/lib/python3.6/site-packages/dolfin/cpp/common.py", line 18, in swig_import_helper
   
return importlib.import_module(mname)
 
File "/scratch/work/mahajad1/fenicselfi/lib/python3.6/importlib/__init__.py", line 126, in import_module
   
return _bootstrap._gcd_import(name[level:], package, level)
 
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
 
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
 
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
 
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
 
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
 
File "<frozen importlib._bootstrap_external>", line 922, in create_module
 
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: libcholmod.so.3: cannot open shared object file: No such file or directory


During handling of the above exception, another exception occurred:


Traceback (most recent call last):
 
File "<stdin>", line 1, in <module>
 
File "/scratch/work/mahajad1/fenicselfi/lib/python3.6/site-packages/fenics/__init__.py", line 7, in <module>
   
from dolfin import *
 
File "/scratch/work/mahajad1/fenicselfi/lib/python3.6/site-packages/dolfin/__init__.py", line 17, in <module>
   
from . import cpp
 
File "/scratch/work/mahajad1/fenicselfi/lib/python3.6/site-packages/dolfin/cpp/__init__.py", line 43, in <module>
   
exec("from . import %s" % module_name)
 
File "<string>", line 1, in <module>
 
File "/scratch/work/mahajad1/fenicselfi/lib/python3.6/site-packages/dolfin/cpp/common.py", line 21, in <module>
    _common
= swig_import_helper()
 
File "/scratch/work/mahajad1/fenicselfi/lib/python3.6/site-packages/dolfin/cpp/common.py", line 20, in swig_import_helper
   
return importlib.import_module('_common')
 
File "/scratch/work/mahajad1/fenicselfi/lib/python3.6/importlib/__init__.py", line 126, in import_module
   
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_common'



It seems to be a common error, many issues on Git regarding it but I could not solve it using those references. 

Johannes Ring

unread,
Jun 21, 2018, 2:07:17 AM6/21/18
to Divyat Mahajan, fenics-support
Try to install suitesparse and see if that helps:

  conda install -c conda-forge suitesparse

Johannes

--
You received this message because you are subscribed to the Google Groups "fenics-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fenics-support+unsubscribe@googlegroups.com.
To post to this group, send email to fenics-support@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/c8264d72-5873-46d8-adb9-2747f424289d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Divyat Mahajan

unread,
Jun 21, 2018, 6:39:33 AM6/21/18
to fenics-support
Thanks, it worked for me.
To unsubscribe from this group and stop receiving emails from it, send an email to fenics-suppor...@googlegroups.com.
To post to this group, send email to fenics-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages