Artelia / NIMPHS

Blender add-on. Numerous Instruments to Manipulate and Post-process Hydraulic Simulations (OpenFOAM, TELEMAC).
https://Artelia.github.io/NIMPHS
GNU General Public License v3.0
13 stars 2 forks source link

Improve installation process #14

Closed liberostelios closed 1 year ago

liberostelios commented 1 year ago

Description

As things stand, there is a lot of manual work required by the user to install the python dependencies and enough knowledge to understand "where python is installed in Blender", as described in the documentation. Unfortunately, this is part of the inevitable complexity of using Blender. I've had a similar issue when trying to use pyvista for a QGIS plugin and I tried to solve it by running the necessary python commands from inside QGIS the first time (see here).

This might not be the most elegant or robust solution, but it works. Maybe you could try to implement something similar when Blender loads the plugin for the first time and only fall back to the manual installation if this fails.

Links to documentation, examples or class definitions

No response

Pseudocode or screenshots

No response

bnase commented 1 year ago

I agree with @liberostelios . Moreover, at least for now, you should add that it might require elevated access command prompt when installing the Python packages!

Failxxx commented 1 year ago

Thank you very much for your recommendations. I find your idea relevant in this case because indeed, a lot of work has to be done by the user before being able to use the add-on. I have been dealing with this issue for a long time, even for other add-ons I have made, but never thought that it could be possible to proceed like you suggest. I will definitely give it a try!

I will also add what you are pointing out @bnase. This will motivate me to deal with #12 haha.