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

Can't install addon #2

Open
gravit22 opened this issue Apr 26, 2021 · 7 comments
Open

Can't install addon #2

gravit22 opened this issue Apr 26, 2021 · 7 comments

Comments

@gravit22
Copy link

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

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

@Alexey670412
Copy link

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)

@flatmax
Copy link

flatmax commented Feb 12, 2022

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

@Chartas
Copy link

Chartas commented Feb 22, 2022

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.

@Alexey670412
Copy link

Alexey670412 commented Mar 3, 2022

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

@fsmMLK
Copy link

fsmMLK commented Mar 12, 2022

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.

@Oli4k
Copy link

Oli4k commented Apr 23, 2022

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.

@bursica
Copy link

bursica commented Apr 13, 2023

[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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants