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

TypeError: Cannot create graphics instruction outside the main Kivy thread #48

Open
codynewlun opened this issue Nov 23, 2022 · 0 comments

Comments

@codynewlun
Copy link

I am experiencing an issue when using QuESt BTM. The error below occurs when I go to select a rate structure.

Exception in thread Thread-7:
Traceback (most recent call last):
File "threading.py", line 973, in _bootstrap_inner
File "threading.py", line 910, in run
File "es_gui\apps\btm\cost_savings.py", line 115, in _generate_preview
self.generate_schedule_charts()
File "es_gui\apps\btm\cost_savings.py", line 152, in generate_schedule_charts
self.energy_weekday_chart.draw_chart(np.array(weekday_schedule_data), palette, labels, legend_labels=legend_labels)
File "es_gui\proving_grounds\charts.py", line 1211, in draw_chart
self.generate_tiles(schedule_data, category_colors, labels)
File "es_gui\proving_grounds\charts.py", line 1180, in generate_tiles
row_label = Label(pos=(0.80x0 - self.width/2, self.max_height/2 - (iy+0.5)(self.tile_height + self.tile_spacing)),
File "kivy\uix\label.py", line 317, in init
File "kivy\uix\widget.py", line 361, in init
File "kivy\graphics\instructions.pyx", line 608, in kivy.graphics.instructions.Canvas.init
File "kivy\graphics\instructions.pyx", line 154, in kivy.graphics.instructions.InstructionGroup.init
File "kivy\graphics\instructions.pyx", line 60, in kivy.graphics.instructions.Instruction.init
TypeError: Cannot create graphics instruction outside the main Kivy thread

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

1 participant