开源改变世界!!

退出 bCNC 时出错 #1463

推推 grbl 2年前 (2023-02-02) 140次浏览
关闭
water-rhatt 打开了这个问题 2020 年 9 月 21 日 · 1 条评论 · 由#1544修复
关闭

退出 bCNC 时出错#1463

water-rhatt 打开了这个问题 2020 年 9 月 21 日 · 1 条评论 · 由#1544修复

评论

退出 bCNC 时出错 #1463

退出时出现此错误。这是修复的已知问题吗?似乎在某个地方它正在为一个整数添加三位小数,但我只知道这些。它似乎并没有阻止 bCNC 下次运行。

Program     : bCNC
Version     : 0.9.14-dev
Last Change : 8 Jan 2019
Platform    : linux2
Python      : 2.7.17 (default, Nov  7 2019, 10:07:09) 
[GCC 9.2.1 20191008]
TkVersion   : 8.6
TclVersion  : 8.6

Traceback:
Traceback (most recent call last):
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/Utils.py", line 464, in __call__
    return self.func(*args)
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/bCNC.py", line 2011, in loadDialog
    if filename: self.load(filename)
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/bCNC.py", line 2089, in load
    Page.frames["CAM"].populate()
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/ToolsPage.py", line 1709, in change
    tool.populate()
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/ToolsPage.py", line 1065, in populate
    self.values[n] = int(CNC.vars[n])
ValueError: invalid literal for int() with base 10: '250.000'

Traceback (most recent call last):
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/Utils.py", line 464, in __call__
    return self.func(*args)
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/bCNC.py", line 2011, in loadDialog
    if filename: self.load(filename)
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/bCNC.py", line 2089, in load
    Page.frames["CAM"].populate()
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/ToolsPage.py", line 1709, in change
    tool.populate()
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/ToolsPage.py", line 1065, in populate
    self.values[n] = int(CNC.vars[n])
ValueError: invalid literal for int() with base 10: '250.000'

Traceback (most recent call last):
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/Utils.py", line 464, in __call__
    return self.func(*args)
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/bCNC.py", line 2011, in loadDialog
    if filename: self.load(filename)
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/bCNC.py", line 2089, in load
    Page.frames["CAM"].populate()
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/ToolsPage.py", line 1709, in change
    tool.populate()
  File "/home/randolph/.local/lib/python2.7/site-packages/bCNC/ToolsPage.py", line 1065, in populate
    self.values[n] = int(CNC.vars[n])
ValueError: invalid literal for int() with base 10: '250.000'
退出 bCNC 时出错 #1463 哈维 补充道 漏洞 标签 2020 年 9 月 21 日
退出 bCNC 时出错 #1463 Harvie 将此添加到 0.9.15里程碑 2020 年 9 月 21 日
退出 bCNC 时出错 #1463
合作者
哈维 评论了 2020 年 9 月 21 日  

可能应该替换为float(CNC.vars[n])or int(float(CNC.vars[n]))。没有把握…