scorbot-er-3

More
2 years 1 month ago #310722 by tommylight
Replied by tommylight on topic scorbot-er-3
Does the machine use any serial port?
There are again several errors trying to access the serial port called from the scorbot-er-3.hal file, but this time it has no access to it (permission denied), so omit that line in hal.
Or if it has a serial and it has to be used, try searching for
arduino serial port permission denied
to add you user to the "dialout" group.

Please Log in or Create an account to join the conversation.

More
2 years 4 weeks ago #311307 by robocidalmaniac
Replied by robocidalmaniac on topic scorbot-er-3
I believe I have corrected all of the Parallel Port and Serial port issues now. I noticed in the previous video that was posted, he mentioned he was using LinuxCNC Dewey.
below is the error report I get now, please help:
Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.2
Machine configuration directory is '/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3'
Machine configuration file is 'scorbot-er-3.ini'
INIFILE=/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/scorbot-er-3.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=scorbot-kins
PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z A B
KINEMATICS=scorbot-kins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./scorbot-er-3.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
  File "/usr/bin/scorbot-er-3", line 68, in <module>
    serial_write('X')
  File "/usr/bin/scorbot-er-3", line 40, in serial_write
    serial.write(data)
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
    d = to_bytes(data)
        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
    raise TypeError('unicode strError report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.2
Machine configuration directory is '/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3'
Machine configuration file is 'scorbot-er-3.ini'
INIFILE=/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/scorbot-er-3.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=scorbot-kins
PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z A B
KINEMATICS=scorbot-kins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./scorbot-er-3.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
  File "/usr/bin/scorbot-er-3", line 68, in <module>
    serial_write('X')
  File "/usr/bin/scorbot-er-3", line 40, in serial_write
    serial.write(data)
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
    d = to_bytes(data)
        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
    raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'X'
./scorbot-er-3.hal:15: waitpid failed scorbot-er-3 scorbot-er-3
./scorbot-er-3.hal:15: scorbot-er-3 exited without becoming ready
1381
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Thu Oct 3 11:36:34 AM EDT 2024
            UTC Date: Thu Oct 3 03:36:34 PM UTC 2024
        this program: /usr/bin/linuxcnc_infError report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.2
Machine configuration directory is '/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3'
Machine configuration file is 'scorbot-er-3.ini'
INIFILE=/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/scorbot-er-3.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=scorbot-kins
PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z A B
KINEMATICS=scorbot-kins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./scorbotings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'X'
./scorbot-er-3.hal:15: waitpid failed scorbot-er-3 scorbot-er-3
./scorbot-er-3.hal:15: scorbot-er-3 exited without becoming ready
1381
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Thu Oct 3 11:36:34 AM EDT 2024
            UTC Date: Thu Oct 3 03:36:34 PM UTC 2024
        this program: /usr/bin/linuxcnc_infError report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.2
Machine configuration directory is '/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3'
Machine configuration file is 'scorbot-er-3.ini'
INIFILE=/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/scorbot-er-3.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=scorbot-kins
PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z A B
KINEMATICS=scorbot-kins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./scorbot-er-3.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
  File "/usr/bin/scorbot-er-3", line 68, in <module>
    serial_write('X')
  File "/usr/bin/scorbot-er-3", line 40, in serial_write
    serial.write(data)
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
    d = to_bytes(data)
        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
    raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'X'
./scorbot-er-3.hal:15: waitpid failed scorbot-er-3 scorbot-er-3
./scorbot-er-3.hal:15: scorbot-er-3 exited without becoming ready
1381
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Thu Oct 3 11:36:34 AM EDT 2024
            UTC Date: Thu Oct 3 03:36:34 PM UTC 2024
        this program: /usr/bin/linuxcnc_info
              uptime: 11:36:34 up 7 min, 1 user, load average: 0.45, 0.63, 0.39
     lsb_release -sa: Debian Debian GNU/Linux 12 (bookworm) 12 bookworm
            linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3
                USER: robocidalmaniac
             LOGNAME: robocidalmaniac
                HOME: /home/robocidalmaniac
              EDITOR:
              VISUAL:
            LANGUAGE:
                TERM: dumb
           COLORTERM:
             DISPLAY: :0.0
             DESKTOP: lightdm-xsession
        display size: 1280x1024 pixels (338x270 millimeters)
                PATH: /usr/bin:/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
         nodename -n: debian
      kernel-name -s: Linux
      kernel-vers -v: #1 SMP PREEMPT_RT Debian 6.1.76-1 (2024-02-01)
          machine -m: x86_64
        processor -p: unknown
         platform -i: unknown
      oper system -o: GNU/Linux

/proc items:
             cmdline: BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-rt-amd64 root=UUID=2a785ebd-a07c-4f37-b8c8-be78eb505b68 ro initrd=/install/gtk/initrd.gz quiet
          model name: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
               cores: 4
             cpu MHz: 3607.748
             parport: 0000-0000 : parport0
              serial: 0000-0000 : serial

Versions:
                 gcc: gcc (Debian 12.2.0-14) 12.2.0
              python: Python 3.11.2
                 git: not_in_PATH
          git commit: NA
                 tcl: 8.6
                  tk: 8.6
               glade: not_in_PATH

linuxcnc_var all:
o
              uptime: 11:36:34 up 7 min, 1 user, load average: 0.45, 0.63, 0.39
     lsb_release -sa: Debian Debian GNU/Linux 12 (bookworm) 12 bookworm
            linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3
                USER: robocidalmaniac
             LOGNAME: robocidalmaniac
                HOME: /home/robocidalmaniac
              EDITOR:
              VISUAL:
            LANGUAGE:
                TERM: dumb
           COLORTERM:
             DISPLAY: :0.0
             DESKTOP: lightdm-xsession
        display size: 1280x1024 pixels (338x270 millimeters)
                PATH: /usr/bin:/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
         nodename -n: debian
      kernel-name -s: Linux
      kernel-vers -v: #1 SMP PREEMPT_RT Debian 6.1.76-1 (2024-02-01)
          machine -m: x86_64
        processor -p: unknown
         platform -i: unknown
      oper system -o: GNU/Linux

/proc items:
             cmdline: BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-rt-amd64 root=UUID=2a785ebd-a07c-4f37-b8c8-be78eb505b68 ro initrd=/install/gtk/initrd.gz quiet
          model name: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
               cores: 4
             cpu MHz: 3607.748Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.2
Machine configuration directory is '/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3'
Machine configuration file is 'scorbot-er-3.ini'
INIFILE=/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/scorbot-er-3.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=scorbot-kins
PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z A B
KINEMATICS=scorbot-kins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./scorbot-er-3.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
  File "/usr/bin/scorbot-er-3", line 68, in <module>
    serial_write('X')
  File "/usr/bin/scorbot-er-3", line 40, in serial_write
    serial.write(data)
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
    d = to_bytes(data)
        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
    raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'X'
./scorbot-er-3.hal:15: waitpid failed scorbot-er-3 scorbot-er-3
./scorbot-er-3.hal:15: scorbot-er-3 exited without becoming ready
1381
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Thu Oct 3 11:36:34 AM EDT 2024
            UTC Date: Thu Oct 3 03:36:34 PM UTC 2024
        this program: /usr/bin/linuxcnc_info
              uptime: 11:36:34 up 7 min, 1 user, load average: 0.45, 0.63, 0.39
     lsb_release -sa: Debian Debian GNU/Linux 12 (bookworm) 12 bookworm
            linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3
                USER: robocidalmaniac
             LOGNAME: robocidalmaniac
                HOME: /home/robocidalmaniac
              EDITOR:
              VISUAL:
            LANGUAGE:
                TERM: dumb
           COLORTERM:
             DISPLAY: :0.0
             DESKTOP: lightdm-xsession
        display size: 1280x1024 pixels (338x270 millimeters)
                PATH: /usr/bin:/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
         nodename -n: debian
      kernel-name -s: Linux
      kernel-vers -v: #1 SMP PREEMPT_RT Debian 6.1.76-1 (2024-02-01)
          machine -m: x86_64
        processor -p: unknown
         platform -i: unknown
      oper system -o: GNU/Linux

/proc items:
             cmdline: BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-rt-amd64 root=UUID=2a785ebd-a07c-4f37-b8c8-be78eb505b68 ro initrd=/install/gtk/initrd.gz quiet
          model name: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
               cores: 4
             cpu MHz: 3607.748
             parport: 0000-0000 : parport0
              serial: 0000-0000 : serial

Versions:
                 gcc: gcc (Debian 12.2.0-14) 12.2.0
              python: Python 3.11.2
                 git: not_in_PATH
          git commit: NA
                 tcl: 8.6
                  tk: 8.6
               glade: not_in_PATH

linuxcnc_var all:

             parport: 0000-0000 : parport0
              serial: 0000-0000 : serial

Versions:
                 gcc: gcc (Debian 12.2.0-14) 12.2.0
              python: Python 3.11.2
                 git: not_in_PATH
          git commit: NA
                 tcl: 8.6
                  tk: 8.6
               glade: not_in_PATH

linuxcnc_var all:

     LINUXCNCVERSION: 2.9.2
LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcncError report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.2
Machine configuration directory is '/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3'
Machine configuration file is 'scorbot-er-3.ini'
INIFILE=/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/scorbot-er-3.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=scorbot-kins
PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z A B
KINEMATICS=scorbot-kins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./scorbot-er-3.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
  File "/usr/bin/scorbot-er-3", line 68, in <module>
    serial_write('X')
  File "/usr/bin/scorbot-er-3", line 40, in serial_write
    serial.write(data)
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
    d = to_bytes(data)
        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
    raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'X'
./scorbot-er-3.hal:15: waitpid failed scorbot-er-3 scorbot-er-3
./scorbot-er-3.hal:15: scorbot-er-3 exited without becoming ready
1381
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Thu Oct 3 11:36:34 AM EDT 2024
            UTC Date: Thu Oct 3 03:36:34 PM UTC 2024
        this program: /usr/bin/linuxcnc_info
              uptime: 11:36:34 up 7 min, 1 user, load average: 0.45, 0.63, 0.39
     lsb_release -sa: Debian Debian GNU/Linux 12 (bookworm) 12 bookworm
            linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3
                USER: robocidalmaniac
             LOGNAME: robocidalmaniac
                HOME: /home/robocidalmaniac
              EDITOR:
              VISUAL:
            LANGUAGE:
                TERM: dumb
           COLORTERM:
             DISPLAY: :0.0
             DESKTOP: lightdm-xsession
        display size: 1280x1024 pixels (338x270 millimeters)
                PATH: /usr/bin:/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
         nodename -n: debian
      kernel-name -s: Linux
      kernel-vers -v: #1 SMP PREEMPT_RT Debian 6.1.76-1 (2024-02-01)
          machine -m: x86_64
        processor -p: unknown
         platform -i: unknown
      oper system -o: GNU/Linux

/proc items:
             cmdline: BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-rt-amd64 root=UUID=2a785ebd-a07c-4f37-b8c8-be78eb505b68 ro initrd=/install/gtk/initrd.gz quiet
          model name: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
               cores: 4
             cpu MHz: 3607.748
             parport: 0000-0000 : parport0
              serial: 0000-0000 : serial

Versions:
                 gcc: gcc (Debian 12.2.0-14) 12.2.0
              python: Python 3.11.2
                 git: not_in_PATH
          git commit: NA
                 tcl: 8.6
                  tk: 8.6
               glade: not_in_PATH

linuxcnc_var all:
/aux_gladevcp
LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples
            REALTIME: /usr/lib/linuxcnc/realtime
                 RTS: uspace
          HALLIB_DIR: /usr/share/linuxcnc/hallib
              PYTHON: /usr/bin/python3

dpkg -l '*linuxcnc*':
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version      Architecture Description
+++-===================-============-============-=====================================================================
un  linuxcnc            <none>       <none>       (no description available)
un  linuxcnc-dev        <none>       <none>       (no description available)
un  linuxcnc-doc        <none>       <none>       (no description available)
ii  linuxcnc-doc-de     1:2.9.2      all          motion controller for CNC machines and robots (German documentation)
ii  linuxcnc-doc-en     1:2.9.2      all          motion controller for CNC machines and robots (English documentation)
ii  linuxcnc-doc-es     1:2.9.2      all          motion controller for CNC machines and robots (Spanish documentation)
ii  linuxcnc-doc-fr     1:2.9.2      all          motion controller for CNC machines and robots (French documentation)
un  linuxcnc-sim        <none>       <none>       (no description available)
un  linuxcnc-sim-dev    <none>       <none>       (no description available)
ii  linuxcnc-uspace     1:2.9.2      amd64        motion controller for CNC machines and robots
ii  linuxcnc-uspace-dev 1:2.9.2      amd64        PC based motion controller for real-time Linux


 

Please Log in or Create an account to join the conversation.

More
2 years 4 weeks ago - 2 years 4 weeks ago #311326 by Aciera
Replied by Aciera on topic scorbot-er-3
looks like '/src/hal/user_comps/scorbot-er-3.py' has not been completely updated to python3 (which might not be an easy task for somebody without the scorbot hardware).

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
  File "/usr/bin/scorbot-er-3", line 68, in <module>
    serial_write('X')
  File "/usr/bin/scorbot-er-3", line 40, in serial_write
    serial.write(data)
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
    d = to_bytes(data)
        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
    raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))



Maybe this could give you an idea about how to fix this particular issue (although there might be others after that):
stackoverflow.com/questions/35642855/pyt...ted-please-encode-to
Last edit: 2 years 4 weeks ago by Aciera.

Please Log in or Create an account to join the conversation.

More
2 years 4 weeks ago #311327 by Aciera
Replied by Aciera on topic scorbot-er-3
_might_ be as simple as changing "/usr/bin/scorbot-er-3", line 40 from this:
Code:
serial.write(data)

to:
Code:
serial.write(data.encode())
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
2 years 3 weeks ago #311443 by robocidalmaniac
Replied by robocidalmaniac on topic scorbot-er-3
I do not have write access to that file
when i use HALRUN I get the same following error:
~$ halrun
halcmd: loadusr -W scorbot-er-3
Traceback (most recent call last):
File "/usr/bin/scorbot-er-3", line 68, in <module>
serial_write('X')
File "/usr/bin/scorbot-er-3", line 40, in serial_write
serial.write(data)
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
d = to_bytes(data)
^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'X'
<stdin>:1: waitpid failed scorbot-er-3 scorbot-er-3
<stdin>:1: scorbot-er-3 exited without becoming ready

I believe I am also having Python issues please can you tell me when the first LinuxCNC with Scorbot-er-3 version was?

Please Log in or Create an account to join the conversation.

More
2 years 3 weeks ago #311474 by Aciera
Replied by Aciera on topic scorbot-er-3

I do not have write access to that file

Try:
Code:
sudo nano /usr/bin/scorbot-er-3

please can you tell me when the first LinuxCNC with Scorbot-er-3 version was?

Seems to have been added in Version 2.8

Please Log in or Create an account to join the conversation.

Time to create page: 0.344 seconds
Powered by Kunena Forum