You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python structure_wingbox.py shows the wingbox as shown in the README.
Current Behavior
After installing with conda as per README, salient part of the console output:
... <CROPPED>
Volume is 5918591.40625673
Centroid of cut shape is Point(1108.596, 115.894, -92.779)
Volume of cut shape is 1031538.6147457744
Centroid of cut shape is Point(1066.386, 117.746, -92.784)
Volume of cut shape is 783180.0934238355
Computing mesh...
sh: 1: SMDS_MemoryLimit: not found
Meshing complete in 13.501382827758789 seconds.
Press "c" to continue...
(structure_wingbox.py:139256): Gdk-WARNING **: 10:24:12.331: gdkdrawable-x11.c:952 drawable is not a pixmap or window
Traceback (most recent call last):
File "/home/lvh/miniconda3/envs/afem/lib/python3.8/site-packages/wx/core.py", line 3285, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "/home/lvh/miniconda3/envs/afem/lib/python3.8/site-packages/OCCT/Visualization/WxViewer.py", line 144, in _init_wind
wind = Xw_Window(self.display_connect, hwnd)
RuntimeError: Xw_Window, given invalid X window
Possible Solution
I found a StackOverflow thread suggesting that in current versions of wxpython you need to use GetId on Linux, not GetHandle. I confirmed the current (pyOCCT) code uses GetHandle, but it does have some Linux-specific code there.
Steps to Reproduce (for bugs)
On Linux (if it matters: Debian testing/unstable, running KDE):
conda create -n afem
conda activate afem
conda install -c conda-forge -c trelau afem
git clone trelau/AFEM # I use hub so this works
cd examples/ && python structure_wingbox.py
FWIW I think the underlying issue is in pyOCCT, because I get effectively an analog issue but with python import_step.py. pythonOCC works fine, but they use a Qt viewer on this system by default.
Context
I was trying to run the example.
Your Environment
Version used: master
Operating System and version (desktop or mobile): Debian testing/unstable
FWIW: I was able to get it to work pretty easily in a Windows VM, increasing my conviction it's a WX-specific issue, likely the GetHandle vs GetId one.
Expected Behavior
python structure_wingbox.py
shows the wingbox as shown in the README.Current Behavior
After installing with conda as per README, salient part of the console output:
Possible Solution
I found a StackOverflow thread suggesting that in current versions of wxpython you need to use GetId on Linux, not GetHandle. I confirmed the current (pyOCCT) code uses GetHandle, but it does have some Linux-specific code there.
Steps to Reproduce (for bugs)
On Linux (if it matters: Debian testing/unstable, running KDE):
FWIW I think the underlying issue is in pyOCCT, because I get effectively an analog issue but with
python import_step.py
. pythonOCC works fine, but they use a Qt viewer on this system by default.Context
I was trying to run the example.
Your Environment
master
conda list:
The text was updated successfully, but these errors were encountered: