View Issue Details

IDProjectCategoryView StatusLast Update
0004721FreeCADBugpublic2021-08-08 18:27
Reporterkeithsloan52 Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version0.19 
Summary0004721: Trying to use Gmsh python library from FreeCAD fails on gmsh.initialize with AttributeError: dlsym(RTLD_DEFAULT, gmshInitialize)
DescriptionIf pip install gmsh python library under native python everything works,
All be it my standard python3 is 3.9.5
If I install under FreeCAD with
pip install gmsh -t<FreeCAD python Path>
Then from the python console I can successfully import gmsh
But if I try gmsh.initialize() I get
gmsh.initialize()
19:13:10 File "/Applications/FreeCAD 0.19.1.app/Contents/Resources/lib/python3.8/site-packages/gmsh.py", line 232, in initialize
19:13:10 lib.gmshInitialize(
19:13:10 File "/Applications/FreeCAD 0.19.1.app/Contents/Resources/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__
19:13:10 func = self.__getitem__(name)
19:13:10 File "/Applications/FreeCAD 0.19.1.app/Contents/Resources/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__
19:13:10 func = self._FuncPtr((name_or_ordinal, self))
19:13:10 AttributeError: dlsym(RTLD_DEFAULT, gmshInitialize): symbol not found

Have tried raising as an issue at gmsh github without success
Steps To Reproducepip3 install gmsh -t<Path to valid FreeCAD library>
from FreeCAD python Console
    import gmsh
    gmsh.initialize()
TagsNo tags attached.
FreeCAD InformationOS: macOS 10.15
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: (HEAD detached at 0.19.1)
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)

Activities

yorik

2022-03-03 13:55

administrator   ~0017078

This ticket has been migrated to GitHub as issue 6247.

Issue History

Date Modified Username Field Change
2021-08-08 18:27 keithsloan52 New Issue