Contact me: hankecnc@gmail.com

无法从 ubuntu 18.04 发送 gcode #1067

推推 grbl 3年前 (2023-02-02) 371次浏览
关闭
Cdriko 打开了这个问题 2018 年 11 月 26 日 · 7条评论
关闭

无法从 ubuntu 18.04 发送 gcode#1067

Cdriko 打开了这个问题 2018 年 11 月 26 日 · 7条评论

注释

无法从 ubuntu 18.04 发送 gcode #1067

您好
,我尝试将 bCNC 与 grbl 和 ubuntu 18.04 全新安装一起使用。

我通过 apt 安装 python-serial 和 pip2 安装 pserial。
las,软件连接到机器后(图标连接正常),发送的 gcode 无效,我进入了终端:
Exception in thread Thread-3: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "/home/cedric/.local/lib/python2.7/site-packages/bCNC/Sender.py", line 875, in serialIO self.mcontrol.parseBracketAngle(line, cline) File "/home/cedric/.local/lib/python2.7/site-packages/bCNC/controllers/GRBL0.py", line 84, in parseBracketAngle self.master.log.put((Sender.MSG_RECEIVE, line)) NameError: global name 'Sender' is not defined

请注意,我对这两个 grbl 协议都有相同的结果

无法从 ubuntu 18.04 发送 gcode #1067
作者

grbl 1.1

无法从 ubuntu 18.04 发送 gcode #1067

我在ubuntu 18.10下有同样的问题

 python2 -m bCNC

new-config Utils <ConfigParser.ConfigParser instance at 0x7f4624be3bd8>
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/tuxburner/.local/lib/python2.7/site-packages/bCNC/Sender.py", line 875, in serialIO
    self.mcontrol.parseBracketAngle(line, cline)
  File "/home/tuxburner/.local/lib/python2.7/site-packages/bCNC/controllers/GRBL0.py", line 84, in parseBracketAngle
    self.master.log.put((Sender.MSG_RECEIVE, line))
NameError: global name 'Sender' is not defined

无法从 ubuntu 18.04 发送 gcode #1067
合作者

我想你没有最新版本的 bCNC。这已在 0.9.14.42 中修复

# pip2 show bCNC
Name: bCNC
Version: 0.9.14.42