Implement proper handling for launching with missing themes
See original GitHub issueGood morning. Today, I tried to install Thonny. But when I open the program, I get errors. Here’s the first one:
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\workbench.py", line 1470, in _show_views
self.show_view(view_id, False)
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\workbench.py", line 1647, in show_view
view = self.get_view(view_id)
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\workbench.py", line 1553, in get_view
view = class_(self) # View's master is workbench to allow making it maximized
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\shell.py", line 119, in __init__
undo=True,
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\shell.py", line 1494, in __init__
super().__init__(master, view, cnf=cnf, **kw)
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\shell.py", line 311, in __init__
super().__init__(master, cnf, **kw)
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\ui_utils.py", line 818, in __init__
master=master, style=style, tag_current_line=tag_current_line, cnf=cnf, **kw
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\codeview.py", line 36, in __init__
super().__init__(master=master, cnf=cnf, **kw)
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\tktextext.py", line 207, in __init__
self._reload_theme_options()
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\codeview.py", line 70, in _reload_theme_options
self._reload_syntax_options(event)
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\codeview.py", line 74, in _reload_syntax_options
self.set_syntax_options(_syntax_options)
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\shell.py", line 1478, in set_syntax_options
self.update_margin_color()
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\shell.py", line 1482, in update_margin_color
self.tag_configure("io", lmargincolor=get_syntax_options_for_tag("TEXT")["background"])
KeyError: 'background'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\tkinter\__init__.py", line 1705, in __call__
return self.func(*args)
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\shell.py", line 246, in set_scrollbar
self.update_plotter()
File "C:\Users\hieut\AppData\Local\Programs\Thonny\lib\site-packages\thonny\shell.py", line 263, in update_plotter
if self.plotter is not None and self.plotter.winfo_ismapped():
AttributeError: 'ShellView' object has no attribute 'plotter'
Apparently there is an update in a module. I suggest an update to fix this.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to Fix Missing Theme Customizer in WordPress Admin
There are 3 simple ways you can use to fix the missing theme customizer from your WordPress admin panel. We'll go through each...
Read more >Video: Apply and change a theme - Microsoft Support
Apply and change a theme · On the DESIGN tab, in the Themes group, click More. · Do one of the following: ·...
Read more >10 Common WordPress Theme Issues & How To Fix Them
Common WordPress errors with solutions. We address some of the most common WordPress theme issues and provide easy solutions to fix them.
Read more >Dark theme - Android Developers
Your themes and styles should avoid hard-coded colors or icons intended for use under a light theme. You should use theme attributes (preferred)...
Read more >Editing theme code - Shopify Help Center
Before you customize your theme · Duplicate your theme to create a backup copy. This makes it easy to discard your changes and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fix will be in 4.0b1
Update: Here is a screenshot of what I see when launching Thonny. The errors are dragged for clearer view.