Skip to content
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

Error installing Molecular Nodes: missing biotite module #629

Closed
giovanna-deluca opened this issue Oct 5, 2024 · 7 comments · Fixed by #649
Closed

Error installing Molecular Nodes: missing biotite module #629

giovanna-deluca opened this issue Oct 5, 2024 · 7 comments · Fixed by #649
Labels
bug Something isn't working

Comments

@giovanna-deluca
Copy link

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:

  • OS: Linux Manjaro
  • Hardware: AMD Ryzen 9
  • Blender Version: 4.2.1
  • MolecularNodes Version: 4.2.7

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

@giovanna-deluca giovanna-deluca added the bug Something isn't working label Oct 5, 2024
@BradyAJohnston
Copy link
Owner

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
Copy link
Author

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:

  • installed the Flatpak version of Blender
  • verified that it used Python 3.11.7
  • successfully installed Molecular Nodes!

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

Thanks for your suggestion!
Giovanna

@BradyAJohnston
Copy link
Owner

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
Copy link
Contributor

melomcr commented Nov 3, 2024

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
Copy link
Owner

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?

@BradyAJohnston BradyAJohnston reopened this Nov 4, 2024
@melomcr
Copy link
Contributor

melomcr commented Nov 4, 2024

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

@BradyAJohnston
Copy link
Owner

PR would be great :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants