-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError when running Real Function Space example #39
Comments
Could you explain how you installed dolfinx and then scifem on top of it? |
I created a fresh enviroment and immediately installed fenicsx using conda followed by installing scifem using python3 -m pip install scifem --no-build-isolation |
The issue is that you have installed nanobind with pip i guess? |
I did install it with pip? Is something different recommended? Thanks! |
The issue is that DOLFINx on conda has been built with a given nanobind version, and one has to use the same version when building |
I think we should add |
I am having the exact same error here. I'm using dolfinx 0.8.0 on WSL2, which I installed in a conda environment, and scifem 0.2.5 + nanobind 2.1.0 (same version as in I'm not very experienced with this, maybe forcing a specific nanobind version before building dolfinx works? Thank you all for your help! |
I think installing from pip within conda is going to be tricky because assuming it does a standard pip installation, the build of scifem will use an isolated env with its own nanobind, the latest version that satisfies the constraint in scifem's pyproject.toml. dolfinx 0.8 is also incompatible with nanobind 2, so you cannot install nanobind 2.1 with conda and dolfinx 0.8:
pip has no such version compatibility enforcement. I can work on getting scifem in conda-forge. |
Should be fixed in a few moments, as scifem is on conda-forge: https://anaconda.org/conda-forge/scifem |
Running the https://github.com/scientificcomputing/scifem/blob/main/examples/real_function_space.py. I get the following error.
I am running scifem on WSL2 with dolfinx 0.8
The text was updated successfully, but these errors were encountered: