QTDesigner PATH issue
- gardenweazel
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 8
03 Jan 2025 22:05 #317973
by gardenweazel
QTDesigner PATH issue was created by gardenweazel
Something tells me that this python reference to the os.path is incorrect?
Qtvcp python plugin found: /home/andy/.designer/plugins/python/qtvcp_plugin.py
Traceback (most recent call last):
File "/home/andy/.designer/plugins/python/qtvcp_plugin.py", line 49, in <module>
from qtvcp.plugins.dialog_plugin import *
File "/home/andy/linuxcnc-dev/lib/python/qtvcp/plugins/dialog_plugin.py", line 5, in <module>
from qtvcp.widgets.dialog_widget import *
File "/home/andy/linuxcnc-dev/lib/python/qtvcp/widgets/dialog_widget.py", line 33, in <module>
from qtvcp.widgets.versa_probe import VersaProbe
File "/home/andy/linuxcnc-dev/lib/python/qtvcp/widgets/versa_probe.py", line 47, in <module>
ICONPATH = os.path.join(PATH.find_image_path(), 'probe_icons')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen posixpath>", line 76, in join
TypeError: expected str, bytes or os.PathLike object, not NoneType
Since OS is already included. Or perhaps the var isn't already defined?
Qtvcp python plugin found: /home/andy/.designer/plugins/python/qtvcp_plugin.py
Traceback (most recent call last):
File "/home/andy/.designer/plugins/python/qtvcp_plugin.py", line 49, in <module>
from qtvcp.plugins.dialog_plugin import *
File "/home/andy/linuxcnc-dev/lib/python/qtvcp/plugins/dialog_plugin.py", line 5, in <module>
from qtvcp.widgets.dialog_widget import *
File "/home/andy/linuxcnc-dev/lib/python/qtvcp/widgets/dialog_widget.py", line 33, in <module>
from qtvcp.widgets.versa_probe import VersaProbe
File "/home/andy/linuxcnc-dev/lib/python/qtvcp/widgets/versa_probe.py", line 47, in <module>
ICONPATH = os.path.join(PATH.find_image_path(), 'probe_icons')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen posixpath>", line 76, in join
TypeError: expected str, bytes or os.PathLike object, not NoneType
Since OS is already included. Or perhaps the var isn't already defined?
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7797
- Thank you received: 2080
04 Jan 2025 05:08 - 04 Jan 2025 05:08 #318025
by cmorley
Replied by cmorley on topic QTDesigner PATH issue
This will because PATH.find_image_path() returned nothing.
Can you give any more information?
Can you give any more information?
Last edit: 04 Jan 2025 05:08 by cmorley.
The following user(s) said Thank You: gardenweazel
Please Log in or Create an account to join the conversation.
- gardenweazel
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 8
05 Jan 2025 15:38 #318161
by gardenweazel
Replied by gardenweazel on topic QTDesigner PATH issue
That's all that was returned. The GUI started but, without the Linuxcnc plugins.
It appears as if the ICONPATH either defaults to NONE or has been defined as NONE.
The frozen posixpath is referring to the built-in OS lib.
Should this line be:
ICONPATH = os.path.join(INFO.LIB_PATH, 'images/probe_icons')
instead of:
ICONPATH = os.path.join(PATH.find_image_path(), 'probe_icons')
I just haven't had time to fully test. I'll look into it later the afternoon if I get a chance.
It appears as if the ICONPATH either defaults to NONE or has been defined as NONE.
The frozen posixpath is referring to the built-in OS lib.
Should this line be:
ICONPATH = os.path.join(INFO.LIB_PATH, 'images/probe_icons')
instead of:
ICONPATH = os.path.join(PATH.find_image_path(), 'probe_icons')
I just haven't had time to fully test. I'll look into it later the afternoon if I get a chance.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7797
- Thank you received: 2080
06 Jan 2025 03:01 #318184
by cmorley
Replied by cmorley on topic QTDesigner PATH issue
is this a dev version? Did you run the . /scripts/rip before?
The following user(s) said Thank You: gardenweazel
Please Log in or Create an account to join the conversation.
- gardenweazel
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 8
06 Jan 2025 04:41 #318190
by gardenweazel
Replied by gardenweazel on topic QTDesigner PATH issue
Yes and yes.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7797
- Thank you received: 2080
06 Jan 2025 07:18 #318201
by cmorley
Replied by cmorley on topic QTDesigner PATH issue
ok find the file qt_pstat.py
change the line to:
# Force the log level for this module
LOG.setLevel(logger.VERBOSE) # One of DEBUG, INFO, WARNING, ERROR, CRITICAL
and try again - should print more info to the terminal.
change the line to:
# Force the log level for this module
LOG.setLevel(logger.VERBOSE) # One of DEBUG, INFO, WARNING, ERROR, CRITICAL
and try again - should print more info to the terminal.
The following user(s) said Thank You: gardenweazel
Please Log in or Create an account to join the conversation.
- gardenweazel
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 8
06 Jan 2025 22:09 #318267
by gardenweazel
Replied by gardenweazel on topic QTDesigner PATH issue
I get the same error as I initially reported.
It's also reporting:
WARNING: Recursive promotion of "IndicatedPushButton" to "ActionButton" . A plugin is missing.
for each of the plugins used by qtvcp.
andy@file03:~/linuxcnc-dev/lib/python/qtvcp/plugins$ ls -la
total 244
drwxr-xr-x 3 andy andy 4096 Jan 6 15:57 .
drwxr-xr-x 7 andy andy 4096 Oct 19 14:09 ..
-rw-r--r-- 1 andy andy 52049 Oct 29 2023 actionbutton_plugin.py
-rw-r--r-- 1 andy andy 1193 Oct 29 2023 bar_plugin.py
-rw-r--r-- 1 andy andy 1249 Oct 29 2023 basic_probe_plugin.py
-rw-r--r-- 1 andy andy 1329 Oct 29 2023 camview_plugin.py
-rw-r--r-- 1 andy andy 2611 Oct 29 2023 container_plugin.py
-rw-r--r-- 1 andy andy 1319 Oct 29 2023 detach_tabs_plugin.py
-rw-r--r-- 1 andy andy 12231 Oct 29 2023 dialog_plugin.py
-rw-r--r-- 1 andy andy 1281 Oct 29 2023 graphics_plugin.py
-rw-r--r-- 1 andy andy 1234 Oct 29 2023 hal_label_plugin.py
-rw-r--r-- 1 andy andy 201 Oct 29 2023 __init__.py
-rw-r--r-- 1 andy andy 1377 Oct 29 2023 jogincrements_plugin.py
-rw-r--r-- 1 andy andy 2228 Oct 29 2023 joypad_plugin.py
-rw-r--r-- 1 andy andy 1289 Oct 29 2023 led_plugin.py
-rw-r--r-- 1 andy andy 1279 Oct 29 2023 nurbs_editor_plugin.py
-rw-r--r-- 1 andy andy 1368 Oct 29 2023 overlay_plugin.py
drwxr-xr-x 2 andy andy 4096 Jan 6 15:57 __pycache__
-rw-r--r-- 1 andy andy 2846 Sep 22 17:17 qtvcp_plugin.py
-rw-r--r-- 1 andy andy 1305 Oct 29 2023 round_gauge_plugin.py
-rw-r--r-- 1 andy andy 1495 Oct 29 2023 round_progress_bar_plugin.py
-rw-r--r-- 1 andy andy 6151 Oct 29 2023 screenoptions_plugin.py
-rw-r--r-- 1 andy andy 24049 Oct 29 2023 simplewidgets_plugin.py
-rw-r--r-- 1 andy andy 1359 Oct 29 2023 state_label_plugin.py
-rw-r--r-- 1 andy andy 1329 Oct 29 2023 state_led_plugin.py
-rw-r--r-- 1 andy andy 1490 Oct 29 2023 status_adjustment_bar_plugin.py
-rw-r--r-- 1 andy andy 19973 Oct 29 2023 status_label_plugin.py
-rw-r--r-- 1 andy andy 1379 Oct 29 2023 status_slider_plugin.py
-rw-r--r-- 1 andy andy 1746 Oct 29 2023 tab_widget_plugin.py
-rw-r--r-- 1 andy andy 2525 Oct 29 2023 toolbutton_plugin.py
-rw-r--r-- 1 andy andy 1249 Oct 29 2023 versa_probe_plugin.py
-rw-r--r-- 1 andy andy 1316 Oct 29 2023 virtualkeyboard_plugin.py
-rw-r--r-- 1 andy andy 1155 Oct 29 2023 web_widget_plugin.py
-rw-r--r-- 1 andy andy 13469 Oct 29 2023 widgets_plugin.py
It's also reporting:
WARNING: Recursive promotion of "IndicatedPushButton" to "ActionButton" . A plugin is missing.
for each of the plugins used by qtvcp.
andy@file03:~/linuxcnc-dev/lib/python/qtvcp/plugins$ ls -la
total 244
drwxr-xr-x 3 andy andy 4096 Jan 6 15:57 .
drwxr-xr-x 7 andy andy 4096 Oct 19 14:09 ..
-rw-r--r-- 1 andy andy 52049 Oct 29 2023 actionbutton_plugin.py
-rw-r--r-- 1 andy andy 1193 Oct 29 2023 bar_plugin.py
-rw-r--r-- 1 andy andy 1249 Oct 29 2023 basic_probe_plugin.py
-rw-r--r-- 1 andy andy 1329 Oct 29 2023 camview_plugin.py
-rw-r--r-- 1 andy andy 2611 Oct 29 2023 container_plugin.py
-rw-r--r-- 1 andy andy 1319 Oct 29 2023 detach_tabs_plugin.py
-rw-r--r-- 1 andy andy 12231 Oct 29 2023 dialog_plugin.py
-rw-r--r-- 1 andy andy 1281 Oct 29 2023 graphics_plugin.py
-rw-r--r-- 1 andy andy 1234 Oct 29 2023 hal_label_plugin.py
-rw-r--r-- 1 andy andy 201 Oct 29 2023 __init__.py
-rw-r--r-- 1 andy andy 1377 Oct 29 2023 jogincrements_plugin.py
-rw-r--r-- 1 andy andy 2228 Oct 29 2023 joypad_plugin.py
-rw-r--r-- 1 andy andy 1289 Oct 29 2023 led_plugin.py
-rw-r--r-- 1 andy andy 1279 Oct 29 2023 nurbs_editor_plugin.py
-rw-r--r-- 1 andy andy 1368 Oct 29 2023 overlay_plugin.py
drwxr-xr-x 2 andy andy 4096 Jan 6 15:57 __pycache__
-rw-r--r-- 1 andy andy 2846 Sep 22 17:17 qtvcp_plugin.py
-rw-r--r-- 1 andy andy 1305 Oct 29 2023 round_gauge_plugin.py
-rw-r--r-- 1 andy andy 1495 Oct 29 2023 round_progress_bar_plugin.py
-rw-r--r-- 1 andy andy 6151 Oct 29 2023 screenoptions_plugin.py
-rw-r--r-- 1 andy andy 24049 Oct 29 2023 simplewidgets_plugin.py
-rw-r--r-- 1 andy andy 1359 Oct 29 2023 state_label_plugin.py
-rw-r--r-- 1 andy andy 1329 Oct 29 2023 state_led_plugin.py
-rw-r--r-- 1 andy andy 1490 Oct 29 2023 status_adjustment_bar_plugin.py
-rw-r--r-- 1 andy andy 19973 Oct 29 2023 status_label_plugin.py
-rw-r--r-- 1 andy andy 1379 Oct 29 2023 status_slider_plugin.py
-rw-r--r-- 1 andy andy 1746 Oct 29 2023 tab_widget_plugin.py
-rw-r--r-- 1 andy andy 2525 Oct 29 2023 toolbutton_plugin.py
-rw-r--r-- 1 andy andy 1249 Oct 29 2023 versa_probe_plugin.py
-rw-r--r-- 1 andy andy 1316 Oct 29 2023 virtualkeyboard_plugin.py
-rw-r--r-- 1 andy andy 1155 Oct 29 2023 web_widget_plugin.py
-rw-r--r-- 1 andy andy 13469 Oct 29 2023 widgets_plugin.py
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7797
- Thank you received: 2080
07 Jan 2025 02:07 #318276
by cmorley
Replied by cmorley on topic QTDesigner PATH issue
There was nothing else printed in the terminal after the code change?
Can you give more background? Has this ever worked?
Can you give more background? Has this ever worked?
The following user(s) said Thank You: gardenweazel
Please Log in or Create an account to join the conversation.
- gardenweazel
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 8
07 Jan 2025 23:07 #318359
by gardenweazel
Replied by gardenweazel on topic QTDesigner PATH issue
Designer used to run error free. I had a uspace install that I didn't realize existed. I suspect that once I removed
the uspace install, it may have impacted my RIP install.
I saw mention of QT needing some of the files that were in the DEB's.
I actually hard coded am abspath and that allowed me to get past the path issue.
However once I tried it from the local term I got these errors which don't exist, again the path and files don't exist:
Qtvcp python plugin found: /home/andy/.designer/plugins/python/qtvcp_plugin.py
[DEFAULT.QTVCP.WIDGETS.IMAGE_SWITCHER][DEBUG] No Path: /usr/share/qtvcp/images/applet-critical.png (image_switcher.py:102)
[DEFAULT.QTVCP.WIDGETS.IMAGE_SWITCHER][DEBUG] No Path: /usr/share/qtvcp/images/applet-critical.png (image_switcher.py:102)
Traceback (most recent call last):
File "/home/andy/linuxcnc-dev/lib/python/qtvcp/plugins/nurbs_editor_plugin.py", line 27, in createWidget
return NurbsEditor(parent)
^^^^^^^^^^^^^^^^^^^
File "/home/andy/linuxcnc-dev/lib/python/qtvcp/widgets/nurbs_editor.py", line 71, in __init__
self.instance = uic.loadUi(self.filename, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andy/.local/lib/python3.11/site-packages/PyQt5/uic/__init__.py", line 241, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andy/.local/lib/python3.11/site-packages/PyQt5/uic/Loader/loader.py", line 66, in loadUi
return self.parse(filename, resource_suffix)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andy/.local/lib/python3.11/site-packages/PyQt5/uic/uiparser.py", line 1020, in parse
document = parse(filename)
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/xml/etree/ElementTree.py", line 1218, in parse
tree.parse(source, parser)
File "/usr/lib/python3.11/xml/etree/ElementTree.py", line 569, in parse
source = open(source, "rb")
^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/qtvcp/widgets_ui/nurbs_editor.ui'
Where are the files coming from in /usr/share/qtvcp???
the uspace install, it may have impacted my RIP install.
I saw mention of QT needing some of the files that were in the DEB's.
I actually hard coded am abspath and that allowed me to get past the path issue.
However once I tried it from the local term I got these errors which don't exist, again the path and files don't exist:
Qtvcp python plugin found: /home/andy/.designer/plugins/python/qtvcp_plugin.py
[DEFAULT.QTVCP.WIDGETS.IMAGE_SWITCHER][DEBUG] No Path: /usr/share/qtvcp/images/applet-critical.png (image_switcher.py:102)
[DEFAULT.QTVCP.WIDGETS.IMAGE_SWITCHER][DEBUG] No Path: /usr/share/qtvcp/images/applet-critical.png (image_switcher.py:102)
Traceback (most recent call last):
File "/home/andy/linuxcnc-dev/lib/python/qtvcp/plugins/nurbs_editor_plugin.py", line 27, in createWidget
return NurbsEditor(parent)
^^^^^^^^^^^^^^^^^^^
File "/home/andy/linuxcnc-dev/lib/python/qtvcp/widgets/nurbs_editor.py", line 71, in __init__
self.instance = uic.loadUi(self.filename, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andy/.local/lib/python3.11/site-packages/PyQt5/uic/__init__.py", line 241, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andy/.local/lib/python3.11/site-packages/PyQt5/uic/Loader/loader.py", line 66, in loadUi
return self.parse(filename, resource_suffix)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/andy/.local/lib/python3.11/site-packages/PyQt5/uic/uiparser.py", line 1020, in parse
document = parse(filename)
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/xml/etree/ElementTree.py", line 1218, in parse
tree.parse(source, parser)
File "/usr/lib/python3.11/xml/etree/ElementTree.py", line 569, in parse
source = open(source, "rb")
^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/qtvcp/widgets_ui/nurbs_editor.ui'
Where are the files coming from in /usr/share/qtvcp???
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7797
- Thank you received: 2080
08 Jan 2025 06:10 #318378
by cmorley
Replied by cmorley on topic QTDesigner PATH issue
My guess is from these lines in pstat.py:
most every file uses SHAREDIR as a base.
If you open a terminal and type:
printenv LINUXCNC_HOME
does it return anything?
Somehow Qtvcp thinks that linuxcnc is installed rather then RIP.
# share directory moves when using RIP vrs installed
home = os.environ.get('LINUXCNC_HOME', '/usr')
if home is not None:
self.SHAREDIR = os.path.join(home,"share", "qtvcp")
most every file uses SHAREDIR as a base.
If you open a terminal and type:
printenv LINUXCNC_HOME
does it return anything?
Somehow Qtvcp thinks that linuxcnc is installed rather then RIP.
The following user(s) said Thank You: gardenweazel
Please Log in or Create an account to join the conversation.
Time to create page: 0.076 seconds