BradyAJohnston / MolecularNodes

Toolbox for molecular animations in Blender, powered by Geometry Nodes.
https://bradyajohnston.github.io/MolecularNodes/
GNU General Public License v3.0
917 stars 86 forks source link

Error installing Molecular Nodes: missing biotite module #629

Closed giovanna-deluca closed 3 weeks ago

giovanna-deluca commented 1 month ago

Hi Brady!

When trying to install Molecular Nodes addon I get the following message: "Report: Error No module named 'biotite.structure.bonds' " and the addon is not enabled.

Steps to reproduce the behavior:

  1. Go to Blender menu Edit/Preferences/Get Extension
  2. Scroll down to 'Molecular Nodes'
  3. Click on 'Install'
  4. See error

Expected behavior No error message.

PC Desktop:

Additional context After installing the addon, I imported biotite in the blender python console, and run biotite.version command, obtaining '0.41.2' value.

Hope this helps, and thank you very much for your work!

All the best, Giovanna

BradyAJohnston commented 1 month ago

I don't have a linux machine to try and reproduce this on - but I'm guessing the build for this particular linux is being strange for whatever reason.

Can you try and import the problematic submodule, similar to how you imported biotite for the version number?

Are you able to post more of the error message? I'm not directly importing the bonds submodule in the add-on, so I am curious as to where this is failing when initiating.

giovanna-deluca commented 1 month ago

So...

Just to be clear, I do not know how to install a specific Python module inside Blender. I could import Biotite only after installing your add-on. Importing the problematic module still gave the same error, which, in my hands, is nothing more than the following: "Report: Error No module named 'biotite.structure.bonds' "

Anyways, your hint was effective. I noticed that the Python console in Blender was version 3.12.5, the current Python version in Manjaro. After some investigation, I noticed that the modules you used were for Python 3.11. Thus, I:

Arch Linux-based distributions are sooo eager to include all novelties. Too much, sometimes.

Thanks for your suggestion! Giovanna

BradyAJohnston commented 1 month ago

Ah yes, Blender is very particular with python versions and I have seen countless issues with users on Linux running into problems with system python / Blender python. Good to know and I'll try to remember this for next time! Thanks for the followup info

melomcr commented 3 weeks ago

I can confirm the same issue and similar solution with Fedora 40.

Installing Blender version 4.2.2 gave me the exact same error message and behavior (no Molecular Nodes drop down menu under "Scene").

Installing Blender through the Snap store (version 4.2.3 LTS) allows the Molecular Nodes module to be installed with no errors and shows the menu under Scene.

BradyAJohnston commented 3 weeks ago

Thanks for the additional confirmation @melomcr

I'm re-opening this as I should add something to the documentation about it. I don't usually work on a Linux machine, would @melomcr or @giovanna-deluca want to provide a short writeup that I can include in the installation instructions?

melomcr commented 3 weeks ago

Absolutely, I can create a pull request with suggested text. Or just send it here or PM if you prefer.

BradyAJohnston commented 3 weeks ago

PR would be great :)