DLR-AE / PanelAero

An Implementation of the Vortex Lattice (VLM) and the Doublet Lattice Method (DLM) for aeroelasticity.
BSD 3-Clause "New" or "Revised" License
18 stars 0 forks source link

Facing issues "simplewing_steady.ipynb" while executing the command #19

Closed Preethamkadambi closed 1 month ago

Preethamkadambi commented 3 months ago

Note: If this is a general question or difficulty in installing or using the software, please ask in the Discussions section or contact arne.voss@dlr.de or someone else for help instead.

Describe the bug

Please give a short and clear description of what the bug is and what you expected to happen. Please provide instructions and data to reproduce the problem (model, jcl, etc.). Please provide the smallest working example that reproduces the problem.

Bug report checklist

Please make sure that you have followed the checklist below, many common problems can be solved by:

Your Environment

Preethamkadambi commented 3 months ago

While running the example on simplewing_steady.ipynb Jupyternotebook plots = plotting.DetailedPlots(model) plots.plot_aerogrid(embed_in_notebook=True)

I get the following error message


AttributeError Traceback (most recent call last) Cell In[3], line 2 1 plots = plotting.DetailedPlots(model) ----> 2 plots.plot_aerogrid(embed_in_notebook=True)

File C:\Users/Pritham/DVLM/PanelAero/doc/tutorials\helper_functions\plotting.py:29, in DetailedPlots.plot_aerogrid(self, scalars, colormap, embed_in_notebook) 27 if embed_in_notebook: 28 mlab.init_notebook('png') ---> 29 mlab.figure(bgcolor=(1, 1, 1), size=(600, 450)) 30 src_aerogrid = mlab.pipeline.add_dataset(ug) 32 # determine if suitable scalar data is given

File ~.conda\envs\PanelAero\Lib\site-packages\mayavi\tools\figure.py:69, in figure(figure, bgcolor, fgcolor, engine, size) 67 __scene_number_list.update((name,)) 68 name = 'Mayavi Scene %d' % name ---> 69 engine.new_scene(name=name, size=size) 70 engine.current_scene.name = name 71 else:

File ~.conda\envs\PanelAero\Lib\site-packages\apptools\scripting\recordable.py:48, in recordable.._wrapper(*args, *kw) 45 _outermost_call = True 46 if not record: 47 # If the method was not recorded, just call it. ---> 48 result = func(args, **kw) 50 return result

File ~.conda\envs\PanelAero\Lib\site-packages\mayavi\core\engine.py:453, in Engine.new_scene(self, viewer, name, kwargs) 450 factory_kwargs[arg] = value 452 viewer = self.scene_factory(factory_kwargs) --> 453 process_ui_events() 455 if name is not None: 456 viewer.name = name

File ~.conda\envs\PanelAero\Lib\site-packages\mayavi\core\common.py:81, in process_ui_events() 75 """Process GUI events. 76 77 This function merely abstracts the function so nothing is done when 78 no UI is running. 79 """ 80 if pyface is not None: ---> 81 pyface.GUI.process_events()

AttributeError: type object 'Unimplemented' has no attribute 'process_events'

Preethamkadambi commented 3 months ago

Issue can be fixed by running pip install PyQt5

ArneVoss commented 3 months ago

Hello Preetham, this sounds like a problem within mayavi... Can you open a normal mayavi figure, e.g. using mlab.figure() ? If that is not possible, the tutorial can't work. Two more question: Have you tried installing the packages for the tutorials with: pip install -e .[tutorials] And what is your environment?

github-actions[bot] commented 1 month ago

This issue was automatically marked as stale because it has not seen recent activity. It will be closed if no further activity occurs. Thank you for your contributions.