ODroid as raplacement for Raspberry Pi

More
3 years 7 months ago #266245 by CarterKraft
installed pyqt5 different error 

 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.0~pre1+git20230208.f1270d6ed7
Machine configuration directory is '/home/ckcplasmaodroid/linuxcnc/configs/sim.qtplasmac'
Machine configuration file is 'qtplasmac_l_imperial.ini.expanded'
INIFILE=/home/ckcplasmaodroid/linuxcnc/configs/sim.qtplasmac/qtplasmac_l_imperial.ini.expanded
VERSION=1.1
PARAMETER_FILE=imperial_parameters.txt
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=qtvcp qtplasmac
COORDINATES=XYYZ
KINEMATICS=trivkins coordinates=xyyz
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
twopass:invoked with <> options
twopass:found ./sim_no_stepgen.tcl
twopass:found /usr/share/linuxcnc/hallib/qtplasmac_comp.hal
twopass:found ./custom.hal
Starting TASK program: milltask
Starting DISPLAY program: qtvcp
Qtvcp Error with loading webView - is python3-pyqt5.qtwebengine installed?
Shutting down and cleaning up LinuxCNC...
task: 1784 cycles, min=0.000009, max=0.010452, avg=0.009921, 0 latency excursions (> 10x expected cycle time of 0.010000s)

identityKinematicsSetup: coordinates:xyyz
   Joint 0 ==> Axis X
   Joint 1 ==> Axis Y
   Joint 2 ==> Axis Y
   Joint 3 ==> Axis Z
identityKinematicsSetup: Recommend: kinstype=both

Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Can not find -sec DISPLAY -var INTRO_GRAPHIC -num 1
Can not find -sec DISPLAY -var INTRO_TIME -num 1
Note: Using POSIX realtime
[QTvcp.QTVCP.WIDGETS.MACRO_WIDGET][[41mCRITICAL[0m]  Qtvcp error with macro_widget - is package python3-pyqt5.qtsvg installed? (macro_widget.py:45)
[QTvcp][[41mCRITICAL[0m]  Aborted from Error Dialog
 Qtvcp encountered an error.  The following information may be useful in troubleshooting:
LinuxCNC Version  : 2.9.0~pre1+git20230208.f1270d6ed7

Traceback (most recent call last):
  File "/usr/bin/qtvcp", line 508, in <module>
    _qtvcp = QTVCP()
             ^^^^^^^
  File "/usr/bin/qtvcp", line 117, in __init__
    from qtvcp import qt_makepins, qt_makegui
  File "/usr/lib/python3/dist-packages/qtvcp/qt_makepins.py", line 22, in <module>
    from qtvcp.widgets.screen_options import ScreenOptions
  File "/usr/lib/python3/dist-packages/qtvcp/widgets/screen_options.py", line 24, in <module>
    from qtvcp.lib.message import Message
  File "/usr/lib/python3/dist-packages/qtvcp/lib/message.py", line 5, in <module>
    from qtvcp.widgets.dialog_widget import LcncDialog
  File "/usr/lib/python3/dist-packages/qtvcp/widgets/dialog_widget.py", line 32, in <module>
    from qtvcp.widgets.macro_widget import MacroTab
  File "/usr/lib/python3/dist-packages/qtvcp/widgets/macro_widget.py", line 87, in <module>
    class CustomSVG(QtSvg.QSvgWidget):
                    ^^^^^
NameError: name 'QtSvg' is not defined

 (qtvcp:464)
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/bin/qtvcp", line 465, in excepthook
    self.shutdown()
  File "/usr/bin/qtvcp", line 428, in shutdown
    HAL.exit()
    ^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'exit'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/qtvcp", line 508, in <module>
    _qtvcp = QTVCP()
             ^^^^^^^
  File "/usr/bin/qtvcp", line 117, in __init__
    from qtvcp import qt_makepins, qt_makegui
  File "/usr/lib/python3/dist-packages/qtvcp/qt_makepins.py", line 22, in <module>
    from qtvcp.widgets.screen_options import ScreenOptions
  File "/usr/lib/python3/dist-packages/qtvcp/widgets/screen_options.py", line 24, in <module>
    from qtvcp.lib.message import Message
  File "/usr/lib/python3/dist-packages/qtvcp/lib/message.py", line 5, in <module>
    from qtvcp.widgets.dialog_widget import LcncDialog
  File "/usr/lib/python3/dist-packages/qtvcp/widgets/dialog_widget.py", line 32, in <module>
    from qtvcp.widgets.macro_widget import MacroTab
  File "/usr/lib/python3/dist-packages/qtvcp/widgets/macro_widget.py", line 87, in <module>
    class CustomSVG(QtSvg.QSvgWidget):
                    ^^^^^
NameError: name 'QtSvg' is not defined
5697
5728
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

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

More
3 years 7 months ago #266246 by rodw
Looks like you have not installed the debs I shared. Its trying to load RTAPI
What does uname -v say? needs to say PREEMPT_RT.

Also in the plasmac docs it refers to a script for  QTVCP dependencies.. Run it and it should come up when you sort out the kernel

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

More
3 years 7 months ago #266249 by CarterKraft

Looks like you have not installed the debs I shared. Its trying to load RTAPI
What does uname -v say? needs to say PREEMPT_RT.

Also in the plasmac docs it refers to a script for  QTVCP dependencies.. Run it and it should come up when you sort out the kernel
 
#Armbian.23.02.0 SMP PREEMPT_RT Sat Feb 25 12:29:31 UTC 2023

I did do the .debs upload I will try again.

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

More
3 years 7 months ago - 3 years 7 months ago #266253 by rodw
Just wondering if you built linuxcnc from source or not? If configure was wrong, it might grab RATPI
I used the Bookworm debs...
Last edit: 3 years 7 months ago by rodw.

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

More
3 years 7 months ago #266286 by CarterKraft
I used the image in your drive.

I re-installed the ,debs with sudo dpkg -i file name/path
All 4 seemed to work

I am sorry I am of no help.
The following user(s) said Thank You: rodw

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

More
3 years 7 months ago #267466 by rodw
For those following along here, we have made some progress and have been creating a PREEMPT_RT image but I am not ready to share yet.
I have had linuxcnc up and running on Debian Bookworm along with probe-basic, qtpyvcp, ethercat and a Mesa card.
Latency seems to be very good and well improved on previous runs.
I've had some issues with building a image with the a Graphical environment. It seems OK until i add isolcpus to the boot process and then it hangs fairly regularly. Installing XFCE from the Debian Bookworm repositories solves it. So there is a bit more experimenting to do around that and then I need to learn a bit more about the Armbian build environment extensions which should allow me to include all of the extras I listed above in the boot image preinstalled.
 
The following user(s) said Thank You: JohnnyCNC, benguru, CarterKraft

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

Time to create page: 0.114 seconds
Powered by Kunena Forum