Contact me: hankecnc@gmail.com

Gmoccapy 错误 – combi_dro.py #1398

推推 grbl 3年前 (2023-01-30) 344次浏览
关闭
3 个任务中的第 1 个
LJspice 开启了这个问题 2021 年 11 月 22 日 · 6 条评论 · 由#1549修复
关闭
3 个任务中的第 1 个

Gmoccapy 错误 – combi_dro.py#1398

LJspice 开启了这个问题 2021 年 11 月 22 日 · 6 条评论 · 由#1549修复

注释

Gmoccapy 错误 - combi_dro.py #1398

以下是我重现该问题所遵循的步骤:

  1. 安装 linuxcnc buster preempt-RT 2.8 ISO
  2. 将 repo 更改为 2.9/master,更新/升级
  3. 安装缺少的依赖项 gnome-icon-theme
  4. 打开 sim gmoccapy 配置(Lathe_C.ini,尽管其他人这样做)
  5. 单击按钮上的主轴。错误

这是我期望发生的事情:

无错误信息,主轴显示为开启

这是发生了什么:

错误信息。出现错误后,点动按钮停止工作

Traceback (most recent call last):
  File "/usr/bin/gmoccapy", line 2279, in _periodic
    self._update_vc()
  File "/usr/bin/gmoccapy", line 3773, in _update_vc
    diameter = int(self.dro_dic["Combi_DRO_0"].get_position()[1] * 2)
  File "/usr/lib/python3/dist-packages/gladevcp/combi_dro.py", line 633, in get_position
    positions = self._position()
TypeError: _position() missing 5 required positional arguments: 'object', 'p', 'rel_p', 'dtg', and 'joint_actual_position'
单击以展开完整的终端日志

有关我的硬件和软件的信息:

  • 我正在使用这个 Linux 发行版和版本:Debian GNU/Linux 10 (buster)
  • 我正在使用这个内核版本:4.19.0-18-rt-amd64 #1 SMP PREEMPT RT Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux
  • 我在跑步 …
    • 来自 linuxcnc.org 的二进制版本(包括 buildbot.linuxcnc.org)
    • 我自己构建的二进制文件
    • 来自 linuxcnc.org 之外的其他来源的二进制版本
  • 我正在使用这个 LinuxCNC 版本:LINUXCNC - 2.9.0-pre0-5081-g8a9665315
  • 我正在使用这个用户界面:gmoccapy
  • 我正在使用这个接口硬件供应商和芯片组:SIM

其他

这个完全相同的错误出现在 debian 11 中,我自己从 master 构建了一个二进制文件。这个错误也出现在 debian 10 (linuxCNC ISO) wth a buildbot master install。从 debian 11 切换回 10 是尝试通过回到受支持的版本来进行故障排除。两个全新安装都发生在本周末。

在 debian 11 上,出现了两个类似的错误(虽然我忘记了重现的步骤,但我确实玩过 axis spindle orient sim,以及 gmoccapy):

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gladevcp/combi_dro.py", line 271, in _on_eventbox_clicked
self.toggle_readout()
TypeError: 'bool' object is not callable

Traceback (most recent call last):
File "usr/lib/python3/dist-packages/gladevcp/offsetpage_widget.py", line 314, in set_editing
self.store[i][12]=self.convert_color(color)
File "usr/lib/python3/dist-packages/gladevcp/offset_page_widget.py", line 454, in convert_color
colortuple=((int(color.red*255.0),int(color.green*255.0),int(color.blue*255.0)))
AttributeError: 'NoneType' object has no attribute 'red'
Gmoccapy 错误 - combi_dro.py #1398
成员
韩素 评论了 2021 年 12 月 28 日  

回溯(最近调用最后):
文件“/usr/lib/python3/dist-packages/gladevcp/combi_dro.py”,第 271 行,在 _on_eventbox_clicked
self.toggle_readout()
TypeError: ‘bool’ object is not callable

已在#1512中修复

Gmoccapy 错误 - combi_dro.py #1398
成员

@LJspice你能尝试重现第三个错误吗?谢谢!

Gmoccapy 错误 - combi_dro.py #1398
成员

并且还单击 D 打开 R 的条目。我不知道这是不是故意的……

Gmoccapy 错误 - combi_dro.py #1398

Gmoccapy 错误 - combi_dro.py #1398
作者

@hansu我浏览并单击了 GUI 中的每个按钮以重现:

  1. 停止,继续
  2. 家用机
  3. 进入抵消页面
  4. 编辑偏移量
  5. 单击右下角的返回箭头
  6. 得到错误

Gmoccapy 错误 - combi_dro.py #1398

hansu 添加了一个提交到 hansu/linuxcnc 引用了这个问题 2021 年 12 月 29 日

hansu 添加了一个提交到 hansu/linuxcnc 引用了这个问题 2021 年 12 月 29 日

Gmoccapy 错误 - combi_dro.py #1398
成员
韩素 评论了 2021 年 12 月 29 日  

主要问题已在2a488fa中修复

Gmoccapy 错误 - combi_dro.py #1398
成员
韩素 评论了 2021 年 12 月 29 日  

而且我不知道是否有一个 DRO 元素没有颜色,因为这也在 2.8.2 版本中。

Gmoccapy 错误 - combi_dro.py #1398

hansu 添加了一个提交到 hansu/linuxcnc 引用了这个问题 2022 年 1 月 17 日

hansu 添加了一个提交到 hansu/linuxcnc 引用了这个问题 2022 年 1 月 17 日

Gmoccapy 错误 - combi_dro.py #1398 hansu 提到了这个问题 2022 年 1 月 17 日
hansu 添加了一个提交到 hansu/linuxcnc 引用了这个问题 2022 年 1 月 17 日

hansu 添加了一个提交到 hansu/linuxcnc 引用了这个问题 2022 年 1 月 23 日

喜欢 (0)