vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.54k stars 528 forks source link

Main window not opening #1742

Closed bosd closed 1 year ago

bosd commented 1 year ago

Just downloaded latest code on this repo. Try to start it on windows 10 python 3.10 environment.

Main window is not opening. Traceback:

================================================================================
WARNING: bCNC was recently ported to only support
python3.8 and newer.
Most things seem to work reasonably well.
Please report any issues to: https://github.com/vlachoudis/bCNC/issues
================================================================================
new-config bCNC <configparser.ConfigParser object at 0x000001752D772C20>
Traceback (most recent call last):
  File "D:\Users\BOSD\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "D:\Users\BOSD\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "D:\Users\BOSD\AppData\Local\Programs\Python\Python310\lib\site-packages\bCNC\__main__.py", line 226, in <module>
    main()
  File "D:\Users\BOSD\AppData\Local\Programs\Python\Python310\lib\site-packages\bCNC\__main__.py", line 153, in main
    application = bmain.Application(className=f"  {Utils.__prg__}  ")
  File "D:\Users\BOSD\AppData\Local\Programs\Python\Python310\lib\site-packages\bCNC\bmain.py", line 159, in __init__
    self.tools = Tools(self.gcode)
  File "D:\Users\BOSD\AppData\Local\Programs\Python\Python310\lib\site-packages\bCNC\ToolsPage.py", line 1285, in __init__
    exec(f"import {name}")
  File "<string>", line 1, in <module>
  File "D:\Users\BOSD\AppData\Local\Programs\Python\Python310\lib\site-packages\bCNC\plugins\trochoidPath.py", line 30
    def __init__(self, master):
                               ^
IndentationError: unindent does not match any outer indentation level

@m1ch Can you take care of this one? 🙏

rschell commented 1 year ago

preceding doc record in trochoidPath.py has a tab at the beginning.

diff --git a/bCNC/plugins/trochoidPath.py b/bCNC/plugins/trochoidPath.py
index e1236bf..2fbf78a 100644
--- a/bCNC/plugins/trochoidPath.py
+++ b/bCNC/plugins/trochoidPath.py
@@ -25,7 +25,7 @@ __version__ = "1.0"
 # Create Trochoidadl route along selected blocks
 # =============================================================================
 class Tool(Plugin):
-       __doc__ = _("Create a trochoid route along selected blocks")
+    __doc__ = _("Create a trochoid route along selected blocks")

     def __init__(self, master):
         Plugin.__init__(self, master, "Trochoid_Path")  # NAME OF THE PLUGIN
bosd commented 1 year ago

Thanks! Was a quick fix. Created a PR for this.