Opened 5 months ago

#70104 assigned defect

gmsh is unable to use opencascade installation

Reported by: astrofitz (Michael Fitzgerald) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gmsh

Description

Hello,

When using gmsh @4.11.1_5+mpich+openblas+python310 on OSX 14.4.1 (Xcode 15.4 Build version 15F31d), the python bindings complain about mssing OpenCASCADE. However, I do have opencascade @7.8.0_0 installed (as required by the Portfile).

Here is a minimal Python script for reproducing:

import gmsh
gmsh.initialize()
model = gmsh.model()
tags = model.occ.addBox(0, 0, 0, 1, 1, 1)

On my system it gives the following:

Error   : Gmsh requires OpenCASCADE to add box
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
/var/folders/6f/_4znslvn75n7yk5jm3gd53c8000llt/T/ipykernel_60347/2182646379.py in ?()
      1 import gmsh
      2 gmsh.initialize()
      3 #gmsh.option.setNumber("General.Terminal", 0)
      4 model = gmsh.model()
----> 5 tags = model.occ.addBox(0, 0, 0, 1, 1, 1)

/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/gmsh.py in ?(x, y, z, dx, dy, dz, tag)
   7451                 c_double(dz),
   7452                 c_int(tag),
   7453                 byref(ierr))
   7454             if ierr.value != 0:
-> 7455                 raise Exception(logger.getLastError())
   7456             return api_result_

Exception: Gmsh requires OpenCASCADE to add box

Thank you for the attention.

Change History (0)

Note: See TracTickets for help on using tickets.