#πŸ”’ troubleshooting app error

13 messages Β· Page 1 of 1 (latest)

tropic bluff
#

I have no knowledge of Python, and simply need help diagnosing why when I use the Quick Start app from here: https://github.com/albertforesg/TPMSgen/releases/tag/v1.0.0, that I get an error when generating the mesh.

Traceback (most recent call last):
File "TPMSgen_GUI.py", line 170, in fn_generate_mesh
File "src\core.py", line 123, in fn_generate_mesh
is_watertight = iterative_mesh.is_watertight
AttributeError: 'Scene' object has no attribute 'is_watertight'

Source code here: https://github.com/albertforesg/TPMSgen/archive/refs/tags/v1.0.0.zip

haughty socketBOT
#

@tropic bluff

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

humble wind
#

if you havent messed with any of the code, maybe open a git issue instead if the code is faulty

tropic bluff
#

fair... there is one open with the exact issue, but no update

humble wind
#

is the repo updated frequently?

tropic bluff
#

updated two years ago 😒

unborn yoke
#

Trimesh says it has an 'is_watertight' property, so maybe it's a problem with the version of trimesh it's installing?

#

Actually, the error indicates that a Scene is being passed in place of a mesh.. like the argument order is wrong?

#

Hmm. I can't get the exact version of Qt this uses to build on my system. Tricky.

#

Aha, updating to 5.15.11 fixes that

#

OK, works for me now with this patch applied:

diff --git a/TPMSgen_GUI.py b/TPMSgen_GUI.py
index 87d3f64..91155fb 100755
--- a/TPMSgen_GUI.py
+++ b/TPMSgen_GUI.py
@@ -17,7 +17,9 @@ class gui_menu(QMainWindow):
     def __init__(self):
         super().__init__()
 
-        uic.loadUi('TPMSgen_GUI.ui', self)
+        # Use absolute path to UI file
+        ui_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'src', 'TPMSgen_GUI.ui')
+        uic.loadUi(ui_path, self)
 
         # Initialize variables:
         self.initialize_variables()
diff --git a/requirements_python_3_10.txt b/requirements_python_3_10.txt
index c1011a2..12cffc6 100644
--- a/requirements_python_3_10.txt
+++ b/requirements_python_3_10.txt
@@ -3,4 +3,4 @@ numpy==1.22.2
 pyvista==0.34.2
 scikit_image==0.19.3
 trimesh==3.9.10
-PyQt5==5.15.7
+PyQt5==5.15.11
haughty socketBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.