adamant-wolf-51914
01/18/2024, 12:48 PMWarning: could not find Gmsh shared library libgmsh.so.4.12 with ctypes.util.find_library() or in the following locations: ['/root/.pex/installed_wheels/5b4820c98b3a9fff6fe08010f8dfd52a77ca6ecc46b0a1212245061298862c60/gmsh-4.12.1-py2.py3-none-manylinux_2_24_x86_64.whl/libgmsh.so.4.12', '/root/.pex/installed_wheels/5b4820c98b3a9fff6fe08010f8dfd52a77ca6ecc46b0a1212245061298862c60/gmsh-4.12.1-py2.py3-none-manylinux_2_24_x86_64.whl/lib/libgmsh.so.4.12', '/root/.pex/installed_wheels/5b4820c98b3a9fff6fe08010f8dfd52a77ca6ecc46b0a1212245061298862c60/gmsh-4.12.1-py2.py3-none-manylinux_2_24_x86_64.whl/Lib/libgmsh.so.4.12', '/root/.pex/installed_wheels/5b4820c98b3a9fff6fe08010f8dfd52a77ca6ecc46b0a1212245061298862c60/libgmsh.so.4.12', '/root/.pex/installed_wheels/5b4820c98b3a9fff6fe08010f8dfd52a77ca6ecc46b0a1212245061298862c60/lib/libgmsh.so.4.12', '/root/.pex/installed_wheels/5b4820c98b3a9fff6fe08010f8dfd52a77ca6ecc46b0a1212245061298862c60/Lib/libgmsh.so.4.12', '/root/.pex/installed_wheels/libgmsh.so.4.12', '/root/.pex/installed_wheels/lib/libgmsh.so.4.12', '/root/.pex/installed_wheels/Lib/libgmsh.so.4.12']
When I expect the mentioned directory '/root/.pex/installed_wheels/5b4820c98b3a9fff6fe08010f8dfd52a77ca6ecc46b0a1212245061298862c60/gmsh-4.12.1-py2.py3-none-manylinux_2_24_x86_64.whl
I can see indeed that the library is not in the root directory or /lib subdir. It is in a /.prefix/lib
subdir. In the root dir there is a .layout.json
file located. Contents are {"record_relpath": "gmsh-4.12.1.dist-info/RECORD", "stash_dir": ".prefix"}
I am not sure how to debug it further, or how to instruct the library look at the .layout file, or how to instruct pants to have save executable in the root directory.
Any pointers would be appreciated!happy-kitchen-89482
01/18/2024, 3:23 PM$ pex gmsh==4.12.1 -o out.pex
$ ./out.pex
Python 3.11.2 (main, Feb 23 2023, 00:15:28) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import gmsh
Warning: could not find Gmsh shared library libgmsh.4.12.dylib with ctypes.util.find_library() or in the following locations: ['/Users/benjyw/.pex/installed_wheels/eaf48bbed0f09c6f731e47ed0dbd184fef0dd8cf3b9b534222229a2b910d4c6a/gmsh-4.12.1-py2.py3-none-macosx_12_0_arm64.whl/libgmsh.4.12.dylib', '/Users/benjyw/.pex/installed_wheels/eaf48bbed0f09c6f731e47ed0dbd184fef0dd8cf3b9b534222229a2b910d4c6a/gmsh-4.12.1-py2.py3-none-macosx_12_0_arm64.whl/lib/libgmsh.4.12.dylib', '/Users/benjyw/.pex/installed_wheels/eaf48bbed0f09c6f731e47ed0dbd184fef0dd8cf3b9b534222229a2b910d4c6a/gmsh-4.12.1-py2.py3-none-macosx_12_0_arm64.whl/Lib/libgmsh.4.12.dylib', '/Users/benjyw/.pex/installed_wheels/eaf48bbed0f09c6f731e47ed0dbd184fef0dd8cf3b9b534222229a2b910d4c6a/libgmsh.4.12.dylib', '/Users/benjyw/.pex/installed_wheels/eaf48bbed0f09c6f731e47ed0dbd184fef0dd8cf3b9b534222229a2b910d4c6a/lib/libgmsh.4.12.dylib', '/Users/benjyw/.pex/installed_wheels/eaf48bbed0f09c6f731e47ed0dbd184fef0dd8cf3b9b534222229a2b910d4c6a/Lib/libgmsh.4.12.dylib', '/Users/benjyw/.pex/installed_wheels/libgmsh.4.12.dylib', '/Users/benjyw/.pex/installed_wheels/lib/libgmsh.4.12.dylib', '/Users/benjyw/.pex/installed_wheels/Lib/libgmsh.4.12.dylib']
>>>
happy-kitchen-89482
01/18/2024, 3:24 PMhappy-kitchen-89482
01/18/2024, 3:25 PM/Users/benjyw/.pex/installed_wheels/eaf48bbed0f09c6f731e47ed0dbd184fef0dd8cf3b9b534222229a2b910d4c6a/gmsh-4.12.1-py2.py3-none-macosx_12_0_arm64.whl/.prefix/lib/libgmsh.4.12.dylib
adamant-wolf-51914
01/18/2024, 3:26 PMhappy-kitchen-89482
01/18/2024, 3:26 PMadamant-wolf-51914
01/18/2024, 3:29 PMhappy-kitchen-89482
01/18/2024, 3:30 PM/tmp/venv/lib/libgmsh.4.12.dylib
happy-kitchen-89482
01/18/2024, 3:36 PMpants help pex-cli
and see which pex version you're usinghappy-kitchen-89482
01/18/2024, 3:37 PMcurrent_value
under version
)happy-kitchen-89482
01/18/2024, 3:38 PMhappy-kitchen-89482
01/18/2024, 3:59 PMhappy-kitchen-89482
01/18/2024, 3:59 PMadamant-wolf-51914
01/18/2024, 4:04 PMadamant-wolf-51914
01/18/2024, 4:07 PMhappy-kitchen-89482
01/18/2024, 4:08 PMhappy-kitchen-89482
01/18/2024, 4:08 PMhappy-kitchen-89482
01/18/2024, 4:09 PM.prefix
dir and .layout.json
are artifacts of how pex installs wheels)adamant-wolf-51914
01/18/2024, 4:12 PMhappy-kitchen-89482
01/18/2024, 4:13 PMadamant-wolf-51914
01/18/2024, 5:17 PMhappy-kitchen-89482
01/19/2024, 9:33 PM