BASIX error for SobolevSpace

Hi,

I install Dolfinx on my MAC M1 with Conda. I also installed all requirements before and tried to build from source but there were lots of errors. So, I preferred to install it with Conda.

I can run demo_possion.py without a problem. However, for other demos, I have problems. One of them is SobolovSpace in Basix. This function is not included in BASIX and I encountered an error when I want to import it to the code. Besides, when I wanted to build Dolfinx on the Linux cluster, I could see the same problem when I wanted to ā€œmake installā€ in ā€œcpp/ā€ folder.

The error on macOS is:

AttributeError: module ā€˜basixā€™ has no attribute ā€˜SobolevSpaceā€™

I would appreciate it if someone can help me.

1 Like

hello,
I guess you did a pip install basix
try uninstalling basix with pip uninstall
and then doing
conda install -c conda-forge fenics-basix