Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gantt crashes #21

Open
deuxbot opened this issue May 28, 2022 · 1 comment
Open

Gantt crashes #21

deuxbot opened this issue May 28, 2022 · 1 comment

Comments

@deuxbot
Copy link

deuxbot commented May 28, 2022

Whenever I try to open the Gantt chart the program crashes.

Specs:
Ubuntu 22.04 LTS
Python 3.10.4
SimSo 0.8.5
PyQtWebEngine 5.15.5

Trace:

Traceback (most recent call last):
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/SimulatorWindow.py", line 210, in showGantt
self.main_tab.currentWidget().showGantt()
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/SimulationTab.py", line 106, in showGantt
self._gantt = create_gantt_window(self._model)
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 427, in create_gantt_window
return Gantt(sim, (start_date, end_date, selected_items))
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 403, in init
canvas = GanttCanvas(sim, conf)
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 73, in init
self.plot()
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 81, in plot
self._update()
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 372, in _update
self.plot_gantt(
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 234, in plot_gantt
self.plot_graph(qp, processor.name, start_date, end_date, step,
File "/home/jorge/.local/lib/python3.10/site-packages/simsogui/Gantt.py", line 114, in plot_graph
qp.drawText(x + convX(i - start_date) - fw // 2,
TypeError: arguments did not match any overloaded call:
drawText(self, Union[QPointF, QPoint], str): argument 1 has unexpected type 'float'
drawText(self, QRectF, int, str): argument 1 has unexpected type 'float'
drawText(self, QRect, int, str): argument 1 has unexpected type 'float'
drawText(self, QRectF, str, option: QTextOption = QTextOption()): argument 1 has unexpected type 'float'
drawText(self, QPoint, str): argument 1 has unexpected type 'float'
drawText(self, int, int, int, int, int, str): argument 1 has unexpected type 'float'
drawText(self, int, int, str): argument 1 has unexpected type 'float'

@viniciusth
Copy link

I had the same issue. A colleague of mine could run the program with no issues, after I switched to the same configurations as him it started working.
I switched python 3.10 for python 3.8 and used the following versions for the packages:

numpy==1.19.3
PyQt5==5.15.4
PyQt5-Qt5==5.15.2
PyQt5-sip==12.9.0
PyQtWebEngine==5.15.5
PyQtWebEngine-Qt5==5.15.2
simpy==2.3.1
simso==0.8.2
simsogui==0.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants