FlexGui -Touch off
- MaHa
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 464
- Thank you received: 196
			
	
						16 Sep 2025 09:23		 -  16 Sep 2025 11:13		#335058
		by MaHa
	
	
		
			
	
	
			 		
													
	
				FlexGui -Touch off was created by MaHa			
			
				It seems i am attracting 'touch off' troubles. Still working on my UI. After run from terminal,homing,loading a g-code file and then press touch off button (touchoff_selected_pb) , linuxcnc shuts down with an error. At least there is some info printed in the terminal. This is from the flex_examples axis:
	
		
			
		
		
			
				
Found file(REL): ./main.hal
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PyQt6/uic/ui_file.py", line 35, in __init__
document = ElementTree.parse(ui_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^
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] Datei oder Verzeichnis nicht gefunden: '/home/miller/linuxcnc/configs/flex_examples/touchoff.ui'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/libflexgui/dialogs.py", line 70, in touchoff_selected
to = touchoff.app()
^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/libflexgui/touchoff.py", line 22, in __init__
loadUi(to_ui_path, self)
File "/usr/lib/python3/dist-packages/PyQt6/uic/load_ui.py", line 86, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/PyQt6/uic/Loader/loader.py", line 62, in loadUi
return self.parse(filename)
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/PyQt6/uic/uiparser.py", line 995, in parse
ui_file = UIFile(filename)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/PyQt6/uic/ui_file.py", line 37, in __init__
self._raise_exception("invalid Qt Designer file", detail=str(e))
File "/usr/lib/python3/dist-packages/PyQt6/uic/ui_file.py", line 92, in _raise_exception
raise UIFileException(self._ui_file, message, detail=detail)
PyQt6.uic.exceptions.UIFileException: /home/miller/linuxcnc/configs/flex_examples/touchoff.ui: invalid Qt Designer file: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/home/miller/linuxcnc/configs/flex_examples/touchoff.ui'
/usr/bin/linuxcnc: Zeile 977: 2156382 Abgebrochen $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
Shutting down and cleaning up LinuxCNC...
			
		
	
 			
					
			Warning: Spoiler!		
		Found file(REL): ./main.hal
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PyQt6/uic/ui_file.py", line 35, in __init__
document = ElementTree.parse(ui_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^
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] Datei oder Verzeichnis nicht gefunden: '/home/miller/linuxcnc/configs/flex_examples/touchoff.ui'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/libflexgui/dialogs.py", line 70, in touchoff_selected
to = touchoff.app()
^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/libflexgui/touchoff.py", line 22, in __init__
loadUi(to_ui_path, self)
File "/usr/lib/python3/dist-packages/PyQt6/uic/load_ui.py", line 86, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/PyQt6/uic/Loader/loader.py", line 62, in loadUi
return self.parse(filename)
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/PyQt6/uic/uiparser.py", line 995, in parse
ui_file = UIFile(filename)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/PyQt6/uic/ui_file.py", line 37, in __init__
self._raise_exception("invalid Qt Designer file", detail=str(e))
File "/usr/lib/python3/dist-packages/PyQt6/uic/ui_file.py", line 92, in _raise_exception
raise UIFileException(self._ui_file, message, detail=detail)
PyQt6.uic.exceptions.UIFileException: /home/miller/linuxcnc/configs/flex_examples/touchoff.ui: invalid Qt Designer file: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/home/miller/linuxcnc/configs/flex_examples/touchoff.ui'
/usr/bin/linuxcnc: Zeile 977: 2156382 Abgebrochen $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
Shutting down and cleaning up LinuxCNC...
		Last edit: 16 Sep 2025 11:13  by MaHa.		Reason: typos	
	
		The following user(s) said Thank You: JT 	
			Please Log in or Create an account to join the conversation.
- JT
- 
				  
- Away
- Administrator
- 
				  
		Less
		More
		
			
	
		- Posts: 1032
- Thank you received: 536
			
	
						20 Sep 2025 21:14				#335222
		by JT
	
	
		
			
				
FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/home/miller/linuxcnc/configs/flex_examples/touchoff.ui'
That is an installed file not one that is in the configs directory so it makes me think your not running flex from linuxcnc.
JT
					
	
			
			 		
													
	
				Replied by JT on topic FlexGui -Touch off			
			By run from terminal do you mean you launched flexgui from a terminal or linuxcnc?It seems i am attracting 'touch off' troubles. Still working on my UI. After run from terminal,homing,loading a g-code file and then press touch off button (touchoff_selected_pb) , linuxcnc shuts down with an error. At least there is some info printed in the terminal. This is from the flex_examples axis:
Warning: Spoiler!
Found file(REL): ./main.hal
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PyQt6/uic/ui_file.py", line 35, in __init__
document = ElementTree.parse(ui_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^
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] Datei oder Verzeichnis nicht gefunden: '/home/miller/linuxcnc/configs/flex_examples/touchoff.ui'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/libflexgui/dialogs.py", line 70, in touchoff_selected
to = touchoff.app()
^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/libflexgui/touchoff.py", line 22, in __init__
loadUi(to_ui_path, self)
File "/usr/lib/python3/dist-packages/PyQt6/uic/load_ui.py", line 86, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/PyQt6/uic/Loader/loader.py", line 62, in loadUi
return self.parse(filename)
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/PyQt6/uic/uiparser.py", line 995, in parse
ui_file = UIFile(filename)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/PyQt6/uic/ui_file.py", line 37, in __init__
self._raise_exception("invalid Qt Designer file", detail=str(e))
File "/usr/lib/python3/dist-packages/PyQt6/uic/ui_file.py", line 92, in _raise_exception
raise UIFileException(self._ui_file, message, detail=detail)
PyQt6.uic.exceptions.UIFileException: /home/miller/linuxcnc/configs/flex_examples/touchoff.ui: invalid Qt Designer file: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/home/miller/linuxcnc/configs/flex_examples/touchoff.ui'
/usr/bin/linuxcnc: Zeile 977: 2156382 Abgebrochen $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
Shutting down and cleaning up LinuxCNC...
FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/home/miller/linuxcnc/configs/flex_examples/touchoff.ui'
That is an installed file not one that is in the configs directory so it makes me think your not running flex from linuxcnc.
JT
Please Log in or Create an account to join the conversation.
- MaHa
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 464
- Thank you received: 196
			
	
						20 Sep 2025 23:45				#335229
		by MaHa
	
	
		
			
	
			
			 		
													
	
				Replied by MaHa on topic FlexGui -Touch off			
			
				I start linuxcnc from terminal, then select the ui to start. I just tested again. Running a program with subroutine or without.
after finish, use the jog buttons to move xyz position. Then touch off button shuts down linuxcnc with this error.
This happens only when jog to another position and trying to touch off,after a gcode was running. On a new started ui is no problem
					after finish, use the jog buttons to move xyz position. Then touch off button shuts down linuxcnc with this error.
This happens only when jog to another position and trying to touch off,after a gcode was running. On a new started ui is no problem
Please Log in or Create an account to join the conversation.
- MaHa
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 464
- Thank you received: 196
			
	
						21 Sep 2025 21:25		 -  21 Sep 2025 21:51		#335252
		by MaHa
	
	
		
			
	
	
			 		
													
	
				Replied by MaHa on topic FlexGui -Touch off			
			
				I had time for some investigation. When touchof before running a gcode, (self.gui_path) in the file touchoff.py  leads to /usr/lib/libflexgui. but after running a gcode (self.gui_path) contains /home/miller/linuxcnc/configs.
Toolchange popup is affected also the same way.
					Toolchange popup is affected also the same way.
		Last edit: 21 Sep 2025 21:51  by MaHa.			
	
		The following user(s) said Thank You: JT 	
			Please Log in or Create an account to join the conversation.
- JT
- 
				  
- Away
- Administrator
- 
				  
		Less
		More
		
			
	
		- Posts: 1032
- Thank you received: 536
			
	
						22 Sep 2025 19:13				#335301
		by JT
	
	
		
			
				
JT
					
	
	
			 		
													
	
				Replied by JT on topic FlexGui -Touch off			
			Thanks for investigating this, this is a big help. I'll get this fixed ASAP.I had time for some investigation. When touchof before running a gcode, (self.gui_path) in the file touchoff.py leads to /usr/lib/libflexgui. but after running a gcode (self.gui_path) contains /home/miller/linuxcnc/configs.
Toolchange popup is affected also the same way.
JT
		The following user(s) said Thank You: MaHa 	
			Please Log in or Create an account to join the conversation.
		Time to create page: 0.155 seconds	
