configurator.py throws error when clicking on "create"
- Christoph
 - Offline
 - New Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 9
 - Thank you received: 0
 
			
	
						03 Mar 2020 15:37				#159081
		by Christoph
	
	
		
			
	
	
		
			
			 		
													
	
				configurator.py throws error when clicking on "create" was created by Christoph			
			
				Hi,
I tried to run ~/linuxcnc-dev/configs/by_machine/plasmac/configurator.py on linuxcnc 2.9. It shows the dialog, I choose "new" and fill out the dialog as in this picture:
But when I click "create", it throws this error in the command line window:
Traceback (most recent call last):
File "/home/pi/linuxcnc-dev/configs/by_machine/plasmac/configurator.py", line 544, in on_create_clicked
if not self.get_kins_info(self.readIniFile): return
File "/home/pi/linuxcnc-dev/configs/by_machine/plasmac/configurator.py", line 1209, in get_kins_info
a,b = line.lower().strip().replace(' ','').split('coordinates=')
ValueError: need more than 1 value to unpack
And nothing more happens. There are no new files in the folder /home/pi/linuxcnc/configs/Plasmacutter except _original_custom.ini and _original_custom.hal, which are safety copies I think.
I think my ini and hal file is fine, the config is working...
 
Best,
Christoph
					I tried to run ~/linuxcnc-dev/configs/by_machine/plasmac/configurator.py on linuxcnc 2.9. It shows the dialog, I choose "new" and fill out the dialog as in this picture:
But when I click "create", it throws this error in the command line window:
Traceback (most recent call last):
File "/home/pi/linuxcnc-dev/configs/by_machine/plasmac/configurator.py", line 544, in on_create_clicked
if not self.get_kins_info(self.readIniFile): return
File "/home/pi/linuxcnc-dev/configs/by_machine/plasmac/configurator.py", line 1209, in get_kins_info
a,b = line.lower().strip().replace(' ','').split('coordinates=')
ValueError: need more than 1 value to unpack
And nothing more happens. There are no new files in the folder /home/pi/linuxcnc/configs/Plasmacutter except _original_custom.ini and _original_custom.hal, which are safety copies I think.
I think my ini and hal file is fine, the config is working...
Best,
Christoph
Attachments:
Please Log in or Create an account to join the conversation.
- phillc54
 - 
				
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 5711
 - Thank you received: 2093
 
			
	
						03 Mar 2020 21:37				#159113
		by phillc54
	
	
		
			
	
			
			 		
													
	
				Replied by phillc54 on topic configurator.py throws error when clicking on "create"			
			
				In your ini file you have:
It is looking for something like:
More info here linuxcnc.org/docs/devel/html/man/man9/kins.9.html
					[KINS]
KINEMATICS = trivkins
JOINTS = 3It is looking for something like:
[KINS]
KINEMATICS = trivkins coordinates=xyz
JOINTS = 3More info here linuxcnc.org/docs/devel/html/man/man9/kins.9.html
Please Log in or Create an account to join the conversation.
- phillc54
 - 
				
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 5711
 - Thank you received: 2093
 
			
	
						04 Mar 2020 03:04				#159141
		by phillc54
	
	
		
			
	
			
			 		
													
	
				Replied by phillc54 on topic configurator.py throws error when clicking on "create"			
			
				I have pushed a fix for this.			
					Please Log in or Create an account to join the conversation.
		Moderators: snowgoer540	
		Time to create page: 0.083 seconds