qt-Dragon HD Qtvcp error
- cspice
- Offline
- New Member
- 
				  
		Less
		More
		
			
	
		- Posts: 4
- Thank you received: 0
			
	
						01 Oct 2022 02:03				#253135
		by cspice
	
	
		
			
	
			
			 		
													
	
				qt-Dragon HD Qtvcp error was created by cspice			
			
				Hello,
I updated linuxcnc to version: 2.9.0-pre0-7921-gfdda9b21a
Now my qtDragonHD configuration does not load anymore, even if I try the sim version of QtDragon_hd it gets a Qtcvp error, the only version of qtDragon that works are the non hd sim versions.
Below is the QTvcp error message, what can be the cause of this error message?
Traceback (most recent call last):
File "/usr/bin/qtvcp", line 511, in <module>
APP = QTVCP()
File "/usr/bin/qtvcp", line 277, in __init__
window.load_extension(opts.usermod)
File "/usr/lib/python3/dist-packages/qtvcp/qt_makegui.py", line 265, in load_extension
methods, self[obj].handler_module, self[obj].handler_instance = self._load_handlers([handlerpath], self.halcomp, self[obj])
File "/usr/lib/python3/dist-packages/qtvcp/qt_makegui.py", line 293, in _load_handlers
mod = __import__(basename)
File "/usr/share/qtvcp/screens/qtdragon_hd/qtdragon_hd_handler.py", line 18, in <module>
from math import dist, ceil
ImportError: cannot import name 'dist' from 'math' (unknown location)
 			
					I updated linuxcnc to version: 2.9.0-pre0-7921-gfdda9b21a
Now my qtDragonHD configuration does not load anymore, even if I try the sim version of QtDragon_hd it gets a Qtcvp error, the only version of qtDragon that works are the non hd sim versions.
Below is the QTvcp error message, what can be the cause of this error message?
Traceback (most recent call last):
File "/usr/bin/qtvcp", line 511, in <module>
APP = QTVCP()
File "/usr/bin/qtvcp", line 277, in __init__
window.load_extension(opts.usermod)
File "/usr/lib/python3/dist-packages/qtvcp/qt_makegui.py", line 265, in load_extension
methods, self[obj].handler_module, self[obj].handler_instance = self._load_handlers([handlerpath], self.halcomp, self[obj])
File "/usr/lib/python3/dist-packages/qtvcp/qt_makegui.py", line 293, in _load_handlers
mod = __import__(basename)
File "/usr/share/qtvcp/screens/qtdragon_hd/qtdragon_hd_handler.py", line 18, in <module>
from math import dist, ceil
ImportError: cannot import name 'dist' from 'math' (unknown location)
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						01 Oct 2022 02:13				#253136
		by cmorley
	
	
		
			
	
	
			 		
													
	
				Replied by cmorley on topic qt-Dragon HD Qtvcp error			
			
				It cant find a math library.
run this in a terminal:
sudo apt install python3-distutils
					run this in a terminal:
sudo apt install python3-distutils
		The following user(s) said Thank You: cspice 	
			Please Log in or Create an account to join the conversation.
- cspice
- Offline
- New Member
- 
				  
		Less
		More
		
			
	
		- Posts: 4
- Thank you received: 0
			
	
						01 Oct 2022 12:14				#253169
		by cspice
	
	
		
			
	
			
			 		
													
	
				Replied by cspice on topic qt-Dragon HD Qtvcp error			
			
				I tried it but python3-distutils is already installed.			
					Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						01 Oct 2022 15:35				#253181
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic qt-Dragon HD Qtvcp error			
			
				Can you tell us about your linux system?
Can you yell us the python version number?
					Can you yell us the python version number?
Please Log in or Create an account to join the conversation.
- cspice
- Offline
- New Member
- 
				  
		Less
		More
		
			
	
		- Posts: 4
- Thank you received: 0
			
	
						03 Oct 2022 20:51				#253384
		by cspice
	
	
		
			
	
			
			 		
													
	
				Replied by cspice on topic qt-Dragon HD Qtvcp error			
			
				Hello sorry for the late reply, My linux system details are,
Debian 10
Kernel : Linux cnc-plasma 5.10.0-0.deb10.17-rt-amd64
Linuxcnc Version : 2.9.0-pre0-7939-g600ba1a08
Python 2 : Python 2.7.16 (default, Oct 10 2019, 22:02:15)
Python 3 : Python 3.7.3 (default, Jan 22 2021, 20:04:44)
python3-distutils version (3.7.3-1)
I missed out a part of the error message on my first post,
I don't understand why it asks me to install python3-distutils even though it is installed, is it a missing dependency?
Traceback (most recent call last):
File "/usr/share/qtvcp/screens/qtdragon_hd/qtdragon_hd_handler.py", line 19, in <module>
from math import dist, ceil
ImportError: cannot import name 'dist' from 'math' (unknown location)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/qtvcp", line 511, in <module>
APP = QTVCP()
File "/usr/bin/qtvcp", line 277, in __init__
window.load_extension(opts.usermod)
File "/usr/lib/python3/dist-packages/qtvcp/qt_makegui.py", line 265, in load_extension
methods, self[obj].handler_module, self[obj].handler_instance = self._load_handlers([handlerpath], self.halcomp, self[obj])
File "/usr/lib/python3/dist-packages/qtvcp/qt_makegui.py", line 293, in _load_handlers
mod = __import__(basename)
File "/usr/share/qtvcp/screens/qtdragon_hd/qtdragon_hd_handler.py", line 21, in <module>
LOG.error('Is python distutils installed? (sudo apt install python3-distutils')
NameError: name 'LOG' is not defined
					Debian 10
Kernel : Linux cnc-plasma 5.10.0-0.deb10.17-rt-amd64
Linuxcnc Version : 2.9.0-pre0-7939-g600ba1a08
Python 2 : Python 2.7.16 (default, Oct 10 2019, 22:02:15)
Python 3 : Python 3.7.3 (default, Jan 22 2021, 20:04:44)
python3-distutils version (3.7.3-1)
I missed out a part of the error message on my first post,
I don't understand why it asks me to install python3-distutils even though it is installed, is it a missing dependency?
Traceback (most recent call last):
File "/usr/share/qtvcp/screens/qtdragon_hd/qtdragon_hd_handler.py", line 19, in <module>
from math import dist, ceil
ImportError: cannot import name 'dist' from 'math' (unknown location)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/qtvcp", line 511, in <module>
APP = QTVCP()
File "/usr/bin/qtvcp", line 277, in __init__
window.load_extension(opts.usermod)
File "/usr/lib/python3/dist-packages/qtvcp/qt_makegui.py", line 265, in load_extension
methods, self[obj].handler_module, self[obj].handler_instance = self._load_handlers([handlerpath], self.halcomp, self[obj])
File "/usr/lib/python3/dist-packages/qtvcp/qt_makegui.py", line 293, in _load_handlers
mod = __import__(basename)
File "/usr/share/qtvcp/screens/qtdragon_hd/qtdragon_hd_handler.py", line 21, in <module>
LOG.error('Is python distutils installed? (sudo apt install python3-distutils')
NameError: name 'LOG' is not defined
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						04 Oct 2022 01:09				#253400
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic qt-Dragon HD Qtvcp error			
			
				can you open a terminal type:
python3
then:
from math import dist, ceil
and see if you get an error.
					python3
then:
from math import dist, ceil
and see if you get an error.
Please Log in or Create an account to join the conversation.
- cspice
- Offline
- New Member
- 
				  
		Less
		More
		
			
	
		- Posts: 4
- Thank you received: 0
			
	
						04 Oct 2022 12:18				#253440
		by cspice
	
	
		
			
	
			
			 		
													
	
				Replied by cspice on topic qt-Dragon HD Qtvcp error			
			
				Yes I get an error.
>>> from math import dist, ceil
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'dist' from 'math' (unknown location)
>>>
					>>> from math import dist, ceil
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'dist' from 'math' (unknown location)
>>>
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						04 Oct 2022 12:59				#253442
		by cmorley
	
	
		
			
	
			
			 		
													
	
				Replied by cmorley on topic qt-Dragon HD Qtvcp error			
			
				Hmm well I have no answers for you. I googled the error and never got a great answer.
I did read that the modules was changed a lot at one point, but didn't elaborate more.
If HD is important to you, I could probably write a work around.
dist is used to calculate time to do a probe move.
Chris
					I did read that the modules was changed a lot at one point, but didn't elaborate more.
If HD is important to you, I could probably write a work around.
dist is used to calculate time to do a probe move.
Chris
Please Log in or Create an account to join the conversation.
- jb
- Offline
- New Member
- 
				  
		Less
		More
		
			
	
		- Posts: 2
- Thank you received: 1
			
	
						10 Oct 2022 10:55				#253859
		by jb
	
	
		
			
	
	
			 		
													
	
				Replied by jb on topic qt-Dragon HD Qtvcp error			
			
				Hello, there is a fix in master for this. github.com/LinuxCNC/linuxcnc/pull/2083
Sorry for the inconvenience.
					Sorry for the inconvenience.
		The following user(s) said Thank You: cspice 	
			Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 7230
- Thank you received: 2106
			
	
						10 Oct 2022 12:57				#253879
		by cmorley
	
	
		
			
	
	
			 		
													
	
				Replied by cmorley on topic qt-Dragon HD Qtvcp error			
			
				Thanks for the fix - sorry for not figuring it out myself 
Chris
					
Chris
		The following user(s) said Thank You: tommylight, cspice 	
			Please Log in or Create an account to join the conversation.
		Moderators: cmorley	
		Time to create page: 0.201 seconds	
