Module 'sys' has no attribute 'getdlopenflags'

I’m trying to run a python code in Spyder using dolfin. I get the error: “module ‘sys’ has no attribute ‘getdlopenflags’” when trying to run: “from dolfin import *”. I’m not sure what this means or how to fix it.

Are you running on a windows machine, a getdlopenflags is a Unix function: How to correct Python-Tensorflow has no attribute error ''getdlopenflags'? - Stack Overflow.

Yes. I realized that and have switched to linux, but now I get this error: “No module named 'dolfin.cpp” The dolfin.cpp is located in C:\Users\jfrut\python\src. I tried pasting dolfin.cpp in the same location as my python script and the dolfin init file, but still have the same error. The dolfin init file can’t find dolfin.cpp. Any idea why?