Configurator Error
I'm using linuxcnc 2.9.0-pre0-... from buildbot master.
All I've done for config so far is use the Sample Configurations -> by_machine -> plasmac -> gmoccapy -> imperial_plasmac
This runs fine for the simulator. However I don't have the shapes stuff in the extras tab. So I attempted to run the configurator on this imperial_plasmac.ini
Python throws the following error after hitting upgrade:
Ugrading from v0.3 to v0.6
Traceback (most recent call last):
File "configurator.py", line 452, in on_create_clicked
self.upgrade_ini_file(version,display)
File "configurator.py", line 791, in upgrade_ini_file
buttons[n][0] = line
IndexError: list index out of range
Also, just an FYI, I noticed that if the user closes the file picker dialog box without picking a file then python throws an error and then freezes. I just wanted to mention it in case you wanted to throw in some error handling there.
Please Log in or Create an account to join the conversation.
I have never tried to upgrade a sample config because I only use Run In Place and it doesn't copy the sample config over. I will give it a try.
Error checking is the bane of my life...
Please Log in or Create an account to join the conversation.
All I've done for config so far is use the Sample Configurations -> by_machine -> plasmac -> gmoccapy -> imperial_plasmac
Edit: I have pushed what I "think" is a fix for these issues.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
- Posts: 18562
- Thank you received: 6218
A professor of electronics in Germany told a friend of mine:
Error checking is the bane of my life...
Electronics is 10% work, 90% troubleshooting that same work !
Luckily i had it in reverse! But then there is reverse engineering of electronics........... spent the day doing just that !
Please Log in or Create an account to join the conversation.
I think it might be a similar ratio for software, at least it seems it is for me.A professor of electronics in Germany told a friend of mine:
Electronics is 10% work, 90% troubleshooting that same work !
Please Log in or Create an account to join the conversation.
forum.linuxcnc.org/9-installing-linuxcnc/38051-plasmac
Why does python rely on indentation levels anyway? Never understood that...
Please Log in or Create an account to join the conversation.
Thanks Kyle, I have just pushed the fixes.Heads up Phill, looks like a recent update messed up some of the indention in the configurator.py around line #801.
forum.linuxcnc.org/9-installing-linuxcnc/38051-plasmac
I think it is supposed to be easier to spot errors if it is nice and tidy, but that obviously doesn't help me.Why does python rely on indentation levels anyway? Never understood that...
![:( :(](/media/kunena/emoticons/sad.png)
Please Log in or Create an account to join the conversation.
Why does python rely on indentation levels anyway? Never understood that...
I think its supposed to save some keystrokes for developers becasue it gets away from {} and if..end
But generally if you open a file in a different editor it breaks the indentation...
Please Log in or Create an account to join the conversation.
- snowgoer540
-
- Offline
- Moderator
-
- Posts: 2362
- Thank you received: 763
To replicate: Run configurator, click "Reconfigure", change radio button for THC Modes. Error results.
Maybe I did something wrong?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.