开源改变世界

Gmoccapy 未在 Linux(或 WSL)上“开箱即用” #1933

推推 grbl 3年前 (2023-01-31) 315次浏览
关闭
smoe 打开了这个问题 2022 年 8 月 16 日 · 9条评论
关闭

Gmoccapy 未在 Linux(或 WSL)上“开箱即用”#1933

smoe 打开了这个问题 2022 年 8 月 16 日 · 9条评论

注释

Gmoccapy 未在 Linux(或 WSL)上“开箱即用” #1933
贡献者

旁注:我需要感谢@hansu还要检查 WSL。由于在 10 yo i7 和 Win10 上存在延迟(基本 330 µs -> 980,同时输入此报告,伺服 184 µs -> 566),这不能用于任何时间关键的事情,但我们应该找出它的限制在哪里是。这应该具有的一种或其他教育价值。

在 Debian(常规 Linux 机器或 WSL)上安装后,/usr/bin/gmoccapy 的直接执行首先需要一个环境变量 CONFIG_DIR,一旦给出,还有一个用于 LINUXCNC_TCL_DIR,所以我尝试了

LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc CONFIG_DIR=/usr/share/gmoccapy gmoccapy

这导致了另一个错误:

Traceback (most recent call last):
  File "/usr/bin/gmoccapy", line 5365, in <module>
    app = gmoccapy(sys.argv)
  File "/usr/bin/gmoccapy", line 172, in __init__
    self.stat.poll()
SystemError: <method 'poll' of 'linuxcnc.stat' objects> returned NULL without setting an exception

这有点神秘。最好选择一些默认路径,用户只需启动二进制文件即可。

Gmoccapy 未在 Linux(或 WSL)上“开箱即用” #1933
贡献者作者
烟雾 评论了 2022 年 8 月 16 日  

出色地。我应该首先执行 linuxcnc。但这也是 gmoccapy 可以告诉我的。gmoccapy 屏幕以 3 轴铣削模拟启动,但并非没有第一个错误框,因为

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gladevcp/iconview.py", line 118, in __init__
    pixbuf = Gtk.IconTheme.get_default().load_icon("gtk-home", 48, 0)
gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'gtk-home' not present in theme Adwaita (0)

我可以点击离开,但后来的文件图标错误将其杀死。下面添加了 stdout/err 的副本。

moeller@DESKTOP-CPG6JS1:~$ linuxcnc
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/moeller/linuxcnc/configs/sim.gmoccapy'
Machine configuration file is 'gmoccapy.ini'

check_config:
  Unexpected multiple values [JOINT_0]HOME: 0.000 10
  Unexpected multiple values [JOINT_1]HOME: 0.000 10
  Unexpected multiple values [JOINT_2]HOME: 0.0 -10

Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX non-realtime
Found file(REL): ./core_sim.hal
Found file(REL): ./spindle_sim.hal
Found file(REL): ./simulated_home.hal
link (updating variable file): No such file or directory
/usr/lib/python3/dist-packages/gladevcp/hal_lightbutton.py:20: PyGIWarning: PangoCairo was imported without specifying a version first. Use gi.require_version('PangoCairo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import Pango, PangoCairo
NVD3D10: CPU cyclestats are disabled on client virtualization
NVD3D10: CPU cyclestats are disabled on client virtualization
Found an error!
The following information may be useful in troubleshooting:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gladevcp/iconview.py", line 118, in __init__
    pixbuf = Gtk.IconTheme.get_default().load_icon("gtk-home", 48, 0)
gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'gtk-home' not present in theme Adwaita (0)

'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'on_btn_jump_to'
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
0  =  /usr/bin/gmoccapy
1  =  -ini
2  =  /home/moeller/linuxcnc/configs/sim.gmoccapy/gmoccapy.ini
Entry = trivkins
Entry = coordinates=xyz
found the following coordinates xyz

**** GMOCCAPY GETINIINFO ****
Number of joints = 3
3 COORDINATES found = xyz
joint 0 = axis x
joint 1 = axis y
joint 2 = axis z
{0: 'x', 1: 'y', 2: 'z'}

**** GMOCCAPY GETINIINFO ****

[KINS] KINESTYPE is trivkins
**** GMOCCAPY GETINIINFO ****
No MIN_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file
Using default value of 0.1 degree / min
**** GMOCCAPY GETINIINFO ****
No DEFAULT_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file
Using default value of 360 degree / min
**** GMOCCAPY GETINIINFO ****
No MAX_RAPID_OVERRIDE entry found in [DISPLAY] of INI file
 Default settings 100 % applied!
**** GMOCCAPY GETINIINFO ****
Preference file path: /home/moeller/linuxcnc/configs/sim.gmoccapy/gmoccapy.pref
No option 'dro_digits' in section: 'DEFAULT'
No option 'dro_size' in section: 'DEFAULT'
No option 'abs_color' in section: 'DEFAULT'
No option 'rel_color' in section: 'DEFAULT'
No option 'dtg_color' in section: 'DEFAULT'
No option 'homed_color' in section: 'DEFAULT'
No option 'unhomed_color' in section: 'DEFAULT'
No option 'enable_dro' in section: 'DEFAULT'
No option 'scale_jog_vel' in section: 'DEFAULT'
No option 'scale_spindle_override' in section: 'DEFAULT'
No option 'scale_feed_override' in section: 'DEFAULT'
No option 'scale_rapid_override' in section: 'DEFAULT'
No option 'spindle_bar_min' in section: 'DEFAULT'
No option 'spindle_bar_max' in section: 'DEFAULT'
No option 'turtle_jog_factor' in section: 'DEFAULT'
No option 'hide_turtle_jog_button' in section: 'DEFAULT'
No option 'unlock_code' in section: 'DEFAULT'
No option 'toggle_readout' in section: 'DEFAULT'
No option 'spindle_start_rpm' in section: 'DEFAULT'
**** GMOCCAPY INFO ****
**** no valid probe config in INI File ****
**** disabled tool measurement ****
**** GMOCCAPY INFO ****
**** Entering make_DRO
axis_list = ['x', 'y', 'z']
**** GMOCCAPY INFO ****
**** Entering make ref axis button
Filepath =  /usr/share/gmoccapy/images/ref_all.png
get button with image
Filepath =  /usr/share/gmoccapy/images/ref_x.png
get button with image
Filepath =  /usr/share/gmoccapy/images/ref_y.png
get button with image
Filepath =  /usr/share/gmoccapy/images/ref_z.png
get button with image
Filepath =  /usr/share/gmoccapy/images/unhome.png
get button with image
get button with image
**** GMOCCAPY INFO ****
**** Entering make touch button
/usr/bin/gmoccapy:922: DeprecationWarning: Gtk.Widget.override_background_color is deprecated
  btn.override_background_color(Gtk.StateFlags.ACTIVE, Gdk.RGBA(1.0, 1.0, 0.0, 1.0))
get button with image
get button with image
get button with image
get button with image
**** GMOCCAPY INFO ****
**** Entering make jog increments
**** GMOCCAPY INFO ****
**** Entering make jog button
**** GMOCCAPY INFO ****
**** Entering make macro button
found 15 Macros
get button with image
Macro go_to_position x-pos y-pos z-pos has image link
Image = /home/moeller/linuxcnc/configs/sim.gmoccapy/macros/images/goto_x_y_z.png
get button with image
Macro i_am_lost has image link
Image = /home/moeller/linuxcnc/configs/sim.gmoccapy/macros/images/i_am_lost.png
get button with image
Macro macro_8 has image link
Image = /home/moeller/linuxcnc/configs/sim.gmoccapy/macros/images/macro_8.png
get button with image
get button with image
get button with image
**** GMOCCAPY INFO ****
**** arrange DRO
3
**** GMOCCAPY INFO ****
**** Place in table
/usr/bin/gmoccapy:1495: DeprecationWarning: Gtk.Table.resize is deprecated
  self.widgets.tbl_DRO.resize(rows, cols)
**** GMOCCAPY INFO ****
**** get DRO order
**** GMOCCAPY INFO ****
**** arrange JOG button
less than 6 axis
No option 'blockheight' in section: 'DEFAULT'
task: main loop took 0.144579 seconds
No option 'open_file' in section: 'DEFAULT'
No option 'screen1' in section: 'DEFAULT'
No option 'x_pos' in section: 'DEFAULT'
No option 'y_pos' in section: 'DEFAULT'
No option 'width' in section: 'DEFAULT'
No option 'height' in section: 'DEFAULT'
**** GMOCCAPY INFO ****
**** Invalid embedded tab configuration ****
**** No tabs will be added! ****
No option 'gtk_theme' in section: 'DEFAULT'
**** GMOCCAPY INFO ****
**** no audio available! ****
**** PYGST library not installed? ****
**** is python-gstX.XX installed? ****
**** GMOCCAPY INFO ****
**** Entering init gremlin ****
No option 'grid_size' in section: 'DEFAULT'
No option 'view' in section: 'DEFAULT'
No option 'mouse_btn_mode' in section: 'DEFAULT'
Kinematics type changed
No option 'hide_cursor' in section: 'DEFAULT'
No option 'hide_tooltips' in section: 'DEFAULT'
_set_enable_tooltips =  True
No option 'system_name_tool' in section: 'DEFAULT'
No option 'system_name_g5x' in section: 'DEFAULT'
No option 'system_name_rot' in section: 'DEFAULT'
No option 'system_name_g92' in section: 'DEFAULT'
No option 'system_name_g54' in section: 'DEFAULT'
No option 'system_name_g55' in section: 'DEFAULT'
No option 'system_name_g56' in section: 'DEFAULT'
No option 'system_name_g57' in section: 'DEFAULT'
No option 'system_name_g58' in section: 'DEFAULT'
No option 'system_name_g59' in section: 'DEFAULT'
No option 'system_name_g59.1' in section: 'DEFAULT'
No option 'system_name_g59.2' in section: 'DEFAULT'
No option 'system_name_g59.3' in section: 'DEFAULT'
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
No option 'jump_to_dir' in section: 'DEFAULT'
'IconFileSelection' object has no attribute 'on_btn_jump_to'
Found an error!
The following information may be useful in troubleshooting:

Traceback (most recent call last):
  File "/usr/bin/gmoccapy", line 5365, in <module>
    app = gmoccapy(sys.argv)
  File "/usr/bin/gmoccapy", line 345, in __init__
    self._init_IconFileSelection()
  File "/usr/bin/gmoccapy", line 2128, in _init_IconFileSelection
    self.widgets.IconFileSelection1.show_filelabel(False)
  File "/usr/lib/python3/dist-packages/gladevcp/iconview.py", line 404, in show_filelabel
    self.file_label.hide()
AttributeError: 'IconFileSelection' object has no attribute 'file_label'

Jog Pin Changed
x+
Jog Button released = x+
Jog Pin Changed
x-
Jog Button released = x-
Jog Pin Changed
y+
Jog Button released = y+
Jog Pin Changed
y-
Jog Button released = y-
Jog Pin Changed
z+
Jog Button released = z+
Jog Pin Changed
z-
Jog Button released = z-
on tool change
Gmoccapy 未在 Linux(或 WSL)上“开箱即用” #1933
成员

gi.repository.GLib.GError: gtk-icon-theme-error-quark: 主题 Adwaita 中不存在图标“gtk-home” (0)

哦,我以为是用#1548修复的

Gmoccapy 未在 Linux(或 WSL)上“开箱即用” #1933
贡献者作者

啊。也许是。我正在使用可能尚未更新的 Debian 软件包。然后我建议在#1887结束时再看一眼。

Gmoccapy 未在 Linux(或 WSL)上“开箱即用” #1933
成员

4 月 25 日之前的版本?

Gmoccapy 未在 Linux(或 WSL)上“开箱即用” #1933
贡献者作者

4 月 4 日正在测试中。https://tracker.debian.org/pkg/linuxcnc

Gmoccapy 未在 Linux(或 WSL)上“开箱即用” #1933

是的,正如您发现的那样,LinuxCNC GUI 期望由linuxcnc启动器脚本启动,而不是由终端或类似的人“手动”启动。

请问master目前的tip是否还存在这个问题,如果没有关闭issue?

Gmoccapy 未在 Linux(或 WSL)上“开箱即用” #1933
贡献者作者

正在出差,回来后会检查一下。/usr/bin 不是 usr 不打算执行的任何内容的正确位置。我们是否应该将所有 GUI 移至 /usr/lib/linuxcnc/bin?

Gmoccapy 未在 Linux(或 WSL)上“开箱即用” #1933
成员
韩素 评论了 2个星期前

@smoe你检查过了吗?我猜你现在旅行回来了 ;-)

Gmoccapy 未在 Linux(或 WSL)上“开箱即用” #1933
贡献者作者
烟雾 评论了 2个星期前  

我现在在 Linux 上正确启动 GMOCCAPY 时没有看到该错误,还没有再次运行 WSL – 感谢您的 ping。