[MacPorts] #70104: gmsh is unable to use opencascade installation

MacPorts noreply at macports.org
Tue May 28 21:30:20 UTC 2024


#70104: gmsh is unable to use opencascade installation
-----------------------+---------------------------------
 Reporter:  astrofitz  |      Owner:  MarcusCalhoun-Lopez
     Type:  defect     |     Status:  assigned
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:
 Keywords:             |       Port:  gmsh
-----------------------+---------------------------------
 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/70104>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list