MolecularNodes: MDAnalysis unavailable error

I keep getting “Error: MDAnalysis Unavaiable” despite having MDanalysis installed. I just followed the instructions, and installed:

  • Blender 3.1.2 (ok)
  • Molecular Nodes 0.5.19 (ok),
  • Atomium (ok),
  • python3 -m pip install MDAnalysis (ok)

However, I keep getting the error “MDAnalysis Unavaiable” (I obtain the path from import MDAnalysis as mda; mda.__path__)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 64 (28 by maintainers)

Most upvoted comments

Was having the same issue as many people above, I tried installing on both python and conda, no luck. Tried all the tricks listed, still said “MDAnalysis Unavailable.” Then I restarted my computer… The path that previously didn’t work was still in Blender, I clicked check and it worked. Sometimes it’s a good ol’ fashion reset that does the trick. Anyway, many thanks!

@BradyAJohnston I will try that later today (I hope). Need to finish some work before tomorrow. 😉 I will come back to it.

Hi @SanderEwen, looking at the path in the settings, try removing the \MDAnalysis\ from the end of the path so it will be :

C:\Users\**\**\*\site-packages

Great! This action works! Thanks a lot Brady. Keep up the good work 😃

HI @ahenao thanks for the info! I’m assuming this is also on Linux? Seems that the Blender’s bundled Python on Linux is missing a few packages that the others have. I don’t have a Linux machine to test out fixes on but I will try out adding a call to install the missing packages along with atomium.

Hi. Thanks Brady! I have had a similar problem on Linux. It was not able to locate fasteners package. I saw this was because it was in a different path (/usr/local/lib) as where I had MDAnalysis (/home/my_user/.local/…).

I have solved this by installing MDAnalysis inside a conda environment. I did this with miniconda3:

First I installed miniconda:

bash Miniconda3-latest-Linux-x86_64.sh

Then I created the environment:

conda create --name MDAnalysis conda activate MDAnalysis conda install -c conda-forge MDAnalysis

Then with

conda list

I checked I had also fasteners inside the environment

Then FInally I passed the conda environment path to blender (/home/my_user/miniconda3/envs/MDAnalysis/) and it worked

And now I am beggining my journey in blender, and it goes along MolecularNodes. Many thanks!

Thanks Brady, the issue was I installed Blender the Intel version not apple silicon. It works, thank you so much.

Thank you very much! I just tried it. Consider my mind blown!

This fixed it for me, too. On the manual installation of the blender linux version.

This worked, Brady, thanks a lot!