how to make my own custom page for qtdragon_hd?
25 Apr 2023 06:57 #269818
by cmorley
Replied by cmorley on topic how to make my own custom page for qtdragon_hd?
Did you do .scripts/rip etc?
Please Log in or Create an account to join the conversation.
25 Apr 2023 07:37 #269821
by rodw
I'm building the debs now so I'll apt remove the existing bookworm packages and install these.
I'll report back.
Replied by rodw on topic how to make my own custom page for qtdragon_hd?
Yeh I do the rip-environment thing. I have now cloned the source onto another PC, checked out 2.9 and built a RIP and still no good.Did you do .scripts/rip etc?
I'm building the debs now so I'll apt remove the existing bookworm packages and install these.
I'll report back.
Please Log in or Create an account to join the conversation.
25 Apr 2023 08:11 #269824
by rodw
Replied by rodw on topic how to make my own custom page for qtdragon_hd?
Odd. This is a RIP system on Bullseye. I don't have a full desktop on my chromebook so I can't install from debs.
I'll try building it on a real PC.
That worked!
Thanks Chris. It was worth perservering with to nail another bug.
Attachments:
Please Log in or Create an account to join the conversation.
25 Apr 2023 12:39 #269856
by rodw
Replied by rodw on topic how to make my own custom page for qtdragon_hd?
This one is a bit of an aside, but there are 3 warnings on startup I can't resolve
I couid not find reference to them in the docs.
I also noticed that the NGCGUI_LIB path was wrong in the ini file (needed linuxcnc in it). I changed it to:I'm happy with the first draft of my new panel. Still ahev a lot to learn to lay it out better.
I know you have put so much work into this and with a final bit of polish its definitely the first kid on the block!
Warning: Spoiler!
[QTvcp.QTVCP.WIDGETS.STATUS_LABEL][WARNING] lbl_maxv_percent : no option recognised (status_label.py:162)
[QTvcp.QTVCP.WIDGETS.STATUS_LABEL][WARNING] lbl_max_rapid : no option recognised (status_label.py:162)
[QTvcp.QTVCP.WIDGETS.STATUS_LABEL][WARNING] lbl_runtime : no option recognised (status_label.py:162)
I couid not find reference to them in the docs.
I also noticed that the NGCGUI_LIB path was wrong in the ini file (needed linuxcnc in it). I changed it to:
NGCGUI_SUBFILE_PATH = ../../../linuxcnc/nc_files/ngcgui_lib/
I know you have put so much work into this and with a final bit of polish its definitely the first kid on the block!
Please Log in or Create an account to join the conversation.
26 Apr 2023 00:21 #269926
by rodw
Replied by rodw on topic how to make my own custom page for qtdragon_hd?
Well this is strange. Went to put this on my mill now I'm at work and it fails with a different error
Debian Bullseye, latest debs compiled from source and QTdragon_HD. Also tried Sebs buildbot too.
[/code][/code]
Debian Bullseye, latest debs compiled from source and QTdragon_HD. Also tried Sebs buildbot too.
Warning: Spoiler!
Traceback (most recent call last):
File "/usr/bin/qtvcp", line 518, in <module>
_qtvcp = QTVCP()
File "/usr/bin/qtvcp", line 288, in __init__
self.panel = qt_makepins.QTPanel(self.hal, self.PATH, window, opts.debug)
File "/usr/lib/python3/dist-packages/qtvcp/qt_makepins.py", line 99, in __init__
window[pName].instance(uipath)
File "/usr/lib/python3/dist-packages/qtvcp/qt_makegui.py", line 382, in instance
instance = uic.loadUi(filename, self)
File "/usr/lib/python3/dist-packages/PyQt5/uic/__init__.py", line 238, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
File "/usr/lib/python3/dist-packages/PyQt5/uic/Loader/loader.py", line 66, in loadUi
return self.parse(filename, resource_suffix)
File "/usr/lib/python3/dist-packages/PyQt5/uic/uiparser.py", line 1020, in parse
document = parse(filename)
File "/usr/lib/python3.9/xml/etree/ElementTree.py", line 1229, in parse
tree.parse(source, parser)
File "/usr/lib/python3.9/xml/etree/ElementTree.py", line 569, in parse
source = open(source, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'True'
[code][code][/spoiler]
At home I was using qtdragon, not the HD version and I was running it on bullseye there too.
Please Log in or Create an account to join the conversation.
26 Apr 2023 00:23 #269928
by rodw
Replied by rodw on topic how to make my own custom page for qtdragon_hd?
More of the error as there was supposed to be toop many links for the forum to accept
Warning: Spoiler!
[QTvcp.QTVCP.QT_PSTAT][INFO] (embed) No handler file found. (qt_pstat.py:400)
[QTvcp.QTVCP.QT_PSTAT][DEBUG] (embed) Checking for .ui in: /home/mill2/linuxcnc/configs/VMNmillQT/qtvcp/panels/belts/belts.ui (qt_pstat.py:357)
[QTvcp.QTVCP.QT_PSTAT][DEBUG] (embed) Checking for .ui in: /home/mill2/linuxcnc/configs/VMNmillQT/belts.ui (qt_pstat.py:357)
[QTvcp.QTVCP.QT_PSTAT][DEBUG] (embed) Checking for .ui in: /usr/share/qtvcp/panels/belts/belts.ui (qt_pstat.py:364)
[QTvcp.QTVCP.QT_PSTAT][CRITICAL] (embed) No UI file found - Did you add the .ui name/path? (qt_pstat.py:371)
qt.qpa.xcb: QXcbConnection: XCB error: 5 (BadAtom), sequence: 1263, resource id: 0, major code: 20 (GetProperty), minor code: 0
[QTvcp][CRITICAL] Aborted from Error Dialog
Qtvcp encountered an error. The following information may be useful in troubleshooting:
LinuxCNC Version : 2.9.0~pre1
[/spoiler]
Please Log in or Create an account to join the conversation.
26 Apr 2023 02:52 #269939
by cmorley
Replied by cmorley on topic how to make my own custom page for qtdragon_hd?
Says it can't find belts.ui
What is the path to belts.ui?
What is the path to belts.ui?
Please Log in or Create an account to join the conversation.
26 Apr 2023 03:05 #269941
by cmorley
Replied by cmorley on topic how to make my own custom page for qtdragon_hd?
This is the three locations it looks at:
QTvcp.QTVCP.QT_PSTAT][DEBUG] (embed) Checking for .ui in: /home/mill2/linuxcnc/configs/VMNmillQT/qtvcp/panels/belts/belts.ui (qt_pstat.py:357)
[QTvcp.QTVCP.QT_PSTAT][DEBUG] (embed) Checking for .ui in: /home/mill2/linuxcnc/configs/VMNmillQT/belts.ui (qt_pstat.py:357)
[QTvcp.QTVCP.QT_PSTAT][DEBUG] (embed) Checking for .ui in: /usr/share/qtvcp/panels/belts/belts.ui (qt_pstat.py:364)
QTvcp.QTVCP.QT_PSTAT][DEBUG] (embed) Checking for .ui in: /home/mill2/linuxcnc/configs/VMNmillQT/qtvcp/panels/belts/belts.ui (qt_pstat.py:357)
[QTvcp.QTVCP.QT_PSTAT][DEBUG] (embed) Checking for .ui in: /home/mill2/linuxcnc/configs/VMNmillQT/belts.ui (qt_pstat.py:357)
[QTvcp.QTVCP.QT_PSTAT][DEBUG] (embed) Checking for .ui in: /usr/share/qtvcp/panels/belts/belts.ui (qt_pstat.py:364)
Please Log in or Create an account to join the conversation.
26 Apr 2023 03:23 #269943
by rodw
Replied by rodw on topic how to make my own custom page for qtdragon_hd?
Yeh, everything seems good. Very odd.
I touched up permissions just in case but it made no difference.
Its like there is an odd character in the path or something
This opens the panel
Wierd
I touched up permissions just in case but it made no difference.
mill2@mill2:~$ ls /home/mill2/linuxcnc/configs/VMNmillQT/qtvcp/belts/*.ui
/home/mill2/linuxcnc/configs/VMNmillQT/qtvcp/belts/belts.ui
mill2@mill2:~$
EMBED_TAB_NAME = Spindle Extras
EMBED_TAB_COMMAND = qtvcp belts
EMBED_TAB_LOCATION = tabWidget_utilities
Its like there is an odd character in the path or something
This opens the panel
mill2@mill2:~$ qtvcp /home/mill2/linuxcnc/configs/VMNmillQT/qtvcp/belts/belts.ui
Wierd
Please Log in or Create an account to join the conversation.
26 Apr 2023 03:38 #269945
by cmorley
Replied by cmorley on topic how to make my own custom page for qtdragon_hd?
Qtvcp/panels/belts/
Not
Qtvcp/belts/
Not
Qtvcp/belts/
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.135 seconds