blendmsh icon indicating copy to clipboard operation
blendmsh copied to clipboard

Can't install addon

Open gravit22 opened this issue 3 years ago • 7 comments

When I try to install gmsh via addon it doesn't work. image

When I install it via prompt it doesn't recognize it.

gravit22 avatar Apr 26 '21 16:04 gravit22

When I try to install gmsh via addon it doesn't work. image

When I install it via prompt it doesn't recognize it.

try install python package (pip install gmsh-api)

Alexey670412 avatar Dec 23 '21 04:12 Alexey670412

I get a similar problem - I installed gmsh-api Screenshot from 2022-02-12 12-21-17

Screenshot from 2022-02-12 12-22-40

flatmax avatar Feb 12 '22 01:02 flatmax

I've had the same problem. The issue is the name of the folder contained within the zip archive. It MUST NOT contain dots in it's name. Python cannot find the module in the folder otherwise.

Another issue you might run into, if you use Blender >= 2.92 you need to fix utils_pip.py contained in the package, because bpy.app.binary_path_python has been deprecated and does not exist anymore.

So to fix it:

  • Download zip
  • Extract zip
  • Rename extracted folder from blendmesh-1.0.0 to blendmesh
  • If using Blender >= 2.92 fix the PYPATH in utils_pip.py to use sys.executbale
    import bpy
    import subprocess
    import sys
    
    PYPATH = sys.executable
    
  • Package zip
  • Import in blender (Maybe restart blender. I had some issues here.)

If you do this you can at least activate the addon and attempt to use it.

Under windows I'm currently having a series of issues related to gmsh-api itself. It does not by default come with the .dll only the .so file of gmsh. Also after manually downloading the SDK and adding it to the package there are still some cryptic errors left. Probably Windows related as well.

Chartas avatar Feb 22 '22 22:02 Chartas

I get a similar problem - I installed gmsh-api Screenshot from 2022-02-12 12-21-17

Screenshot from 2022-02-12 12-22-40

i was installed gmsh-api (C:\Program Files (x86)\Steam\steamapps\common\Blender\2.93\python\bin> .\python.exe -m pip install gmsh-api). But i have new problem. I don't know how work this addon, i try push button mash and get error image image i have gmsh, and gmsh-api image i was used from https://blender.stackexchange.com/questions/5287/using-3rd-party-python-modules for installing packages

Alexey670412 avatar Mar 03 '22 15:03 Alexey670412

I am also having problems with this addon. In my case, blender is installed with snap (Linux) and I am facing issues to make the code find the gmsh API. Also, it seems the addon tries to import gmsh-api, which is wrong. The package is named gmsh_api.

I just cloned this addon and I will try to find a solution to this. I will report here if I am successful. I will try to pack gmsh API manually with the addon and check if it can then run correctly.

fsmMLK avatar Mar 12 '22 18:03 fsmMLK

I had the same problem and it wouldn't run. When I built Gmsh from source dynamically linked to the shader library with instructions from here it was at least possible to enable the add-on. Now I'm stuck on Gmsh opening within Blender (new window) but no mesh loaded and nothing happens. Closing the Gmsh window crashes Blender.

Oli4k avatar Apr 23 '22 22:04 Oli4k

[SOLVED] Do you have any solutions to make gmsh-api work in windows environment. Or just simple walkthrough HOW-TO . Done OK: .\python.exe -m pip install gmsh-api ; .\python.exe -m pip install gmsh Meshing causes: image

Soluition: copy all WIN sdk lib contents to e.g. C:\Users\user\AppData\Roaming\Python\Python310\site-packages\gmsh_api It should look like: image

Thanks.

bursica avatar Apr 13 '23 15:04 bursica