spencerfolk / rotorpy

A multirotor simulator with aerodynamics for education and research.
MIT License
109 stars 31 forks source link

PyQt6 needed for Python3.12 #12

Open edwinpha opened 2 weeks ago

edwinpha commented 2 weeks ago

Hi! This is just an FYI type of issue.

If using python3.12, PyQt6 is needed. Therefore, the solution is to install it, pip3 install PyQt6. Maybe it could be added to the dependencies.

Here, the output error:

------------------RESULTS-----------------------
SIM TIME -- 20.00 seconds | WALL TIME -- 10.27 seconds
EXIT STATUS -- Timeout: Simulation end time reached.
/workspaces/rotorpy/rotorpy/utils/plotter.py:213: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
  plt.show()
/venvs/rotor_py_sim/lib/python3.12/site-packages/matplotlib/animation.py:872: UserWarning: Animation was deleted without rendering anything. This is most likely not intended. To prevent deletion, assign the Animation to a variable, e.g. `anim`, that exists until you output the Animation using `plt.show()` or `anim.save()`.
  warnings.warn(
/workspaces/rotorpy/rotorpy/utils/plotter.py:200: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
  plt.show()
spencerfolk commented 6 days ago

Thanks for the heads up! I will take a look at this and make sure there are no other conflicts if PyQt6 is installed.