xslope 0.1.4__tar.gz → 0.1.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: xslope
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Slope stability analysis (limit equilibrium and FEM) in Python.
5
5
  Author: Norman L. Jones
6
6
  Project-URL: Homepage, https://github.com/njones61/xslope
@@ -1,4 +1,4 @@
1
1
  __all__ = ["__version__"]
2
- __version__ = "0.1.4"
2
+ __version__ = "0.1.5"
3
3
 
4
4
 
@@ -26,8 +26,13 @@ def _get_gmsh():
26
26
  _gmsh = gmsh
27
27
  except (ImportError, OSError) as e:
28
28
  error_msg = str(e)
29
+ error_repr = repr(e)
29
30
  # Check for OpenGL library issues (common in Colab/headless environments)
30
- if "libGL" in error_msg or "libGLU" in error_msg:
31
+ # Check both str() and repr() to catch all variations, and check exception args
32
+ error_text = error_msg + " " + error_repr
33
+ if hasattr(e, 'args') and e.args:
34
+ error_text += " " + " ".join(str(arg) for arg in e.args)
35
+ if ("libGL" in error_text or "libGLU" in error_text):
31
36
  help_msg = (
32
37
  "gmsh is required for mesh generation but could not be imported due to missing OpenGL libraries. "
33
38
  "This is common in headless environments like Google Colab.\n\n"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: xslope
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Slope stability analysis (limit equilibrium and FEM) in Python.
5
5
  Author: Norman L. Jones
6
6
  Project-URL: Homepage, https://github.com/njones61/xslope
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes