关闭 周冠兴 开了这个issue 2022 年 2 月 14 日 · 2 条评论 关闭 ModuleNotFoundError:没有名为“gobject”的模块#1608 周冠兴 开了这个issue 2022 年 2 月 14 日 · 2 条评论 注释 周冠兴 评论了 2022 年 2 月 14 日 亲爱的,在我通过设置 python3.6 (./configure –with-realtime=uspace –with-python=/usr/bin/python3) 成功构建 linuxcnc 之后。 然后,运行“cd script”, 然后,运行“./linuxcnc”: 然后,选择“qtvcp_screens->qtdefault”, 现在,导致错误: “Traceback (most recent call last): File”/home/zgx/00_src/ 00_linuxcnc/linuxcnc-ms-v2.9.0-1.0.4-pre0/bin/qtvcp”,第12行,in from qtvcp.core import Status, Info, QComponent, Path File “/home/zgx/00_src/00_linuxcnc/linuxcnc- ms-v2.9.0-1.0.4-pre0/lib/python/qtvcp/core.py”,第 5 行,在 import gobject ModuleNotFoundError: No module named ‘gobject’ Shutting down and cleaning up LinuxCNC… task: 176 cycles, min=0.000032, max=0.001987, avg=0.001119, 0 latency excursions (> 10x expected cycle time of 0.001000s) 注意:使用 POSIX 非实时 LinuxCNC 因错误而终止。您可以在日志中找到更多信息: /home/zgx/linuxcnc_debug.txt 和 /home/zgx/linuxcnc_print.txt 以及 shell 命令“dmesg”的输出和终端“ 现在,如果我使用” pip install gobject”,然后导致另一个问题: “Traceback(最近调用最后一次): 文件“/home/zgx/00_src/00_linuxcnc/linuxcnc-ms-v2.9.0-1.0.4-pre0/bin/qtvcp”,第 12 行,在 from qtvcp.core import Status, Info, QComponent, Path 文件“/home/zgx/00_src/00_linuxcnc/linuxcnc-ms-v2.9.0-1.0.4-pre0/lib/python/qtvcp/core.py”,第9行,在 from hal_glib import GStat File“/home/zgx /00_src/00_linuxcnc/linuxcnc-ms-v2.9.0-1.0.4-pre0/lib/python/hal_glib.py”,第 19 行,在 类 GPin(gobject.GObject, hal.Pin) 中: AttributeError: module ‘gobject’没有属性“GObject” 正在关闭并清理 LinuxCNC… 任务:188 个周期,最小值=0.000031,最大值=0.001744,平均值=0.001097,0 次延迟偏移(> 10 倍预期周期时间 0.001000 秒) 注意:使用 POSIX 非-realtime LinuxCNC 因错误而终止。您可以在日志中找到更多信息: /home/zgx/linuxcnc_debug.txt 和 /home/zgx/linuxcnc_print.txt 以及 shell 命令 ‘dmesg’ 和终端中的输出 , 所以,我认为 gobject 的模块不是通过 pip 安装的。 我该如何解决这个问题,有什么建议吗? 非常感谢! 成员 韩素 评论了 2022 年 2 月 14 日 • 编辑 看来你不是在构建当前的 master 分支。 因为第 5 行import gobject不再包含,仅在 2.8 分支上。 而且您不需要--with-python=/usr/bin/python3,因为大师总是使用 Python 3 构建。 在 make 之后,你应该 . scripts/rip-environment从主目录(或. ../scripts/rip-environment源目录)运行,然后linuxcnc 在这个控制台中输入 作者 周冠兴 评论了 2022 年 2 月 14 日 看来你不是在构建当前的 master 分支。因为第 5 行import gobject不再包含,仅在 2.8 分支上。而且您不需要--with-python=/usr/bin/python3,因为大师总是使用 Python 3 构建。 在 make 之后,你应该 . scripts/rip-environment从主目录(或. ../scripts/rip-environment源目录)运行,然后linuxcnc 在这个控制台中输入 亲爱的 hansu, 非常感谢你的建议。 现在,拉主分支后就可以正常工作了。 再次感谢! zhouguanxing已完成 关闭 2022 年 2 月 15 日 喜欢 (0) 请求有关 A、B、C 轴的 GUI 部分的建议 #913 编译错误,文件丢失:TMCStepper.h #915 v1.3.8-EDGE 重启后键盘快捷键消失 #427 关闭 无法在 gsender 1.2.0 中打开 .gcode 文件 #367 RaspberryPi 运行 gsender 时出现问题 #89 向 fluidnc 发送 $$ 会导致 gsender 崩溃 #473 v1.3.8-EDGE 重启后键盘快捷键消失 #427 关闭无法在 gsender 1.2.0 中打开 .gcode 文件 #367RaspberryPi 运行 gsender 时出现问题 #89向 fluidnc 发送 $$ 会导致 gsender 崩溃 #473功能请求:抑制发送到机器的 gcode 中的 gcode 注释。 #444 关闭通过网络连接进行连接 #171操纵杆运动的剩余问题 #204 关闭新版本认为我的机器一直处于锁定状态 #474 关闭
亲爱的,在我通过设置 python3.6 (./configure –with-realtime=uspace –with-python=/usr/bin/python3) 成功构建 linuxcnc 之后。
然后,运行“cd script”,
然后,运行“./linuxcnc”:
然后,选择“qtvcp_screens->qtdefault”,
现在,导致错误:
“Traceback (most recent call last):
File”/home/zgx/00_src/ 00_linuxcnc/linuxcnc-ms-v2.9.0-1.0.4-pre0/bin/qtvcp”,第12行,in
from qtvcp.core import Status, Info, QComponent, Path
File “/home/zgx/00_src/00_linuxcnc/linuxcnc- ms-v2.9.0-1.0.4-pre0/lib/python/qtvcp/core.py”,第 5 行,在
import gobject
ModuleNotFoundError: No module named ‘gobject’
Shutting down and cleaning up LinuxCNC…
task: 176 cycles, min=0.000032, max=0.001987, avg=0.001119, 0 latency excursions (> 10x expected cycle time of 0.001000s)
注意:使用 POSIX 非实时
LinuxCNC 因错误而终止。您可以在日志中找到更多信息:
/home/zgx/linuxcnc_debug.txt
和
/home/zgx/linuxcnc_print.txt
以及 shell 命令“dmesg”的输出和终端“
现在,如果我使用” pip install gobject”,然后导致另一个问题:
“Traceback(最近调用最后一次):
文件“/home/zgx/00_src/00_linuxcnc/linuxcnc-ms-v2.9.0-1.0.4-pre0/bin/qtvcp”,第 12 行,在
from qtvcp.core import Status, Info, QComponent, Path
文件“/home/zgx/00_src/00_linuxcnc/linuxcnc-ms-v2.9.0-1.0.4-pre0/lib/python/qtvcp/core.py”,第9行,在
from hal_glib import GStat
File“/home/zgx /00_src/00_linuxcnc/linuxcnc-ms-v2.9.0-1.0.4-pre0/lib/python/hal_glib.py”,第 19 行,在
类 GPin(gobject.GObject, hal.Pin) 中:
AttributeError: module ‘gobject’没有属性“GObject”
正在关闭并清理 LinuxCNC…
任务:188 个周期,最小值=0.000031,最大值=0.001744,平均值=0.001097,0 次延迟偏移(> 10 倍预期周期时间 0.001000 秒)
注意:使用 POSIX 非-realtime
LinuxCNC 因错误而终止。您可以在日志中找到更多信息:
/home/zgx/linuxcnc_debug.txt
和
/home/zgx/linuxcnc_print.txt
以及 shell 命令 ‘dmesg’ 和终端中的输出
,
所以,我认为 gobject 的模块不是通过 pip 安装的。
我该如何解决这个问题,有什么建议吗?
非常感谢!