Howdy,
I merely ran conda create -n fenicsproject -c conda-forge python=3.7 fenics mshr ipython
or also tried conda create -n fenicsproject -c conda-forge python=3.7 fenics-dolfin mshr ipython
and then try to just import dolfin :
(fenicsproject) Ryans-Air:cloakingmip drvogt$ python
Python 3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 05:59:23)
[Clang 11.1.0 ] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
import dolfin
Traceback (most recent call last):
File “”, line 1, in
File “/Users/drvogt/opt/anaconda3/envs/fenicsproject/lib/python3.7/site-packages/dolfin/init.py”, line 142, in
from .fem.assembling import (assemble, assemble_system, assemble_multimesh,
File “/Users/drvogt/opt/anaconda3/envs/fenicsproject/lib/python3.7/site-packages/dolfin/fem/assembling.py”, line 34, in
from dolfin.fem.form import Form
File “/Users/drvogt/opt/anaconda3/envs/fenicsproject/lib/python3.7/site-packages/dolfin/fem/form.py”, line 12, in
from dolfin.jit.jit import dolfin_pc, ffc_jit
File “/Users/drvogt/opt/anaconda3/envs/fenicsproject/lib/python3.7/site-packages/dolfin/jit/jit.py”, line 18, in
raise RuntimeError(“Could not find DOLFIN pkg-config file. Please make sure appropriate paths are set.”)
RuntimeError: Could not find DOLFIN pkg-config file. Please make sure appropriate paths are set.
Anyone know what to do these days to eliminate this? I’d assume the conda forge would make everything work…
Suggested solutions here: RuntimeError: Could not find DOLFIN pkg-config file did not work.
Here is my conda list:
conda list
packages in environment at /Users/drvogt/opt/anaconda3/envs/fenicsproject:
Name Version Build Channel
appnope 0.1.3 pyhd8ed1ab_0 conda-forge
backcall 0.2.0 pyh9f0ad1d_0 conda-forge
backports 1.0 py_2 conda-forge
backports.functools_lru_cache 1.6.4 pyhd8ed1ab_0 conda-forge
boost-cpp 1.74.0 h8b082ac_8 conda-forge
bzip2 1.0.8 h0d85af4_4 conda-forge
c-ares 1.18.1 h0d85af4_0 conda-forge
ca-certificates 2021.10.8 h033912b_0 conda-forge
cmake 3.23.1 h35a7dd9_0 conda-forge
decorator 5.1.1 pyhd8ed1ab_0 conda-forge
eigen 3.4.0 h940c156_0 conda-forge
expat 2.4.8 h96cf925_0 conda-forge
fenics-dijitso 2019.1.0 py37hf985489_29 conda-forge
fenics-dolfin 2019.1.0 py37h9abff88_29 conda-forge
fenics-ffc 2019.1.0 py37hf985489_29 conda-forge
fenics-fiat 2019.1.0 py37hf985489_29 conda-forge
fenics-libdolfin 2019.1.0 h70bf796_29 conda-forge
fenics-ufl 2019.1.0 py37hf985489_29 conda-forge
fftw 3.3.10 mpi_openmpi_hcb0582e_2 conda-forge
gmp 6.2.1 h2e338ed_0 conda-forge
gmpy2 2.1.2 py37h60f582e_0 conda-forge
hdf5 1.12.1 mpi_openmpi_h0d5d0c2_4 conda-forge
hypre 2.24.0 mpi_openmpi_h001df97_0 conda-forge
icu 70.1 h96cf925_0 conda-forge
ipython 7.32.0 py37hf985489_0 conda-forge
jedi 0.18.1 py37hf985489_1 conda-forge
krb5 1.19.3 hb98e516_0 conda-forge
libblas 3.9.0 14_osx64_openblas conda-forge
libcblas 3.9.0 14_osx64_openblas conda-forge
libcurl 7.83.0 h23f1065_0 conda-forge
libcxx 13.0.1 hc203e6f_0 conda-forge
libedit 3.1.20191231 h0678c8f_2 conda-forge
libev 4.33 haf1e3a3_1 conda-forge
libffi 3.4.2 h0d85af4_5 conda-forge
libgfortran 5.0.0 9_3_0_h6c81a4c_23 conda-forge
libgfortran5 9.3.0 h6c81a4c_23 conda-forge
libiconv 1.16 haf1e3a3_0 conda-forge
liblapack 3.9.0 14_osx64_openblas conda-forge
libnghttp2 1.47.0 hca56917_0 conda-forge
libopenblas 0.3.20 openmp_hb3cd9ec_0 conda-forge
libssh2 1.10.0 hd3787cc_2 conda-forge
libuv 1.43.0 h0d85af4_0 conda-forge
libzlib 1.2.11 h6c3fc93_1014 conda-forge
llvm-openmp 14.0.0 ha654fa7_0 conda-forge
lz4-c 1.9.3 he49afe7_1 conda-forge
matplotlib-inline 0.1.3 pyhd8ed1ab_0 conda-forge
metis 5.1.0 h2e338ed_1006 conda-forge
mpc 1.2.1 hbb51d92_0 conda-forge
mpfr 4.1.0 h0f52abe_1 conda-forge
mpi 1.0 openmpi conda-forge
mpi4py 3.1.3 py37hadad684_1 conda-forge
mpmath 1.2.1 pyhd8ed1ab_0 conda-forge
mshr 2019.1.0 py37ha1c84db_5 conda-forge
mumps-include 5.2.1 h694c41f_11 conda-forge
mumps-mpi 5.2.1 had0ebf5_11 conda-forge
ncurses 6.3 h96cf925_1 conda-forge
numpy 1.21.6 py37h345d48f_0 conda-forge
openmpi 4.1.3 hd33e60e_103 conda-forge
openssl 3.0.2 h6c3fc93_1 conda-forge
parmetis 4.0.3 h7eda126_1005 conda-forge
parso 0.8.3 pyhd8ed1ab_0 conda-forge
petsc 3.16.6 real_hd7fc170_100 conda-forge
petsc4py 3.16.6 real_hef03c60_100 conda-forge
pexpect 4.8.0 pyh9f0ad1d_2 conda-forge
pickleshare 0.7.5 py_1003 conda-forge
pip 22.0.4 pyhd8ed1ab_0 conda-forge
pkg-config 0.29.2 ha3d46e9_1008 conda-forge
pkgconfig 1.5.5 py37hf985489_2 conda-forge
prompt-toolkit 3.0.29 pyha770c72_0 conda-forge
ptscotch 6.0.9 h6295d7f_2 conda-forge
ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge
pybind11 2.9.2 py37h18621fa_1 conda-forge
pybind11-global 2.9.2 py37h18621fa_1 conda-forge
pygments 2.12.0 pyhd8ed1ab_0 conda-forge
python 3.7.12 hf3644f1_100_cpython conda-forge
python_abi 3.7 2_cp37m conda-forge
readline 8.1 h05e3726_0 conda-forge
rhash 1.4.1 h0d85af4_0 conda-forge
scalapack 2.2.0 h208a4c8_1 conda-forge
scotch 6.0.9 h3da7401_2 conda-forge
setuptools 62.1.0 py37hf985489_0 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
slepc 3.16.1 real_h31f047d_101 conda-forge
slepc4py 3.16.1 real_hbfbf201_100 conda-forge
sqlite 3.38.3 hd9f0692_0 conda-forge
suitesparse 5.10.1 h7aff33d_1 conda-forge
superlu 5.2.2 h621599f_0 conda-forge
superlu_dist 7.2.0 hcde7739_0 conda-forge
sympy 1.10.1 py37hf985489_0 conda-forge
tbb 2021.5.0 hbb4e6a2_1 conda-forge
tk 8.6.12 h5dbffcc_0 conda-forge
traitlets 5.1.1 pyhd8ed1ab_0 conda-forge
wcwidth 0.2.5 pyh9f0ad1d_2 conda-forge
wheel 0.37.1 pyhd8ed1ab_0 conda-forge
xz 5.2.5 haf1e3a3_1 conda-forge
yaml 0.2.5 h0d85af4_2 conda-forge
zlib 1.2.11 h6c3fc93_1014 conda-forge
zstd 1.5.2 h582d3a0_0 conda-forge