Mesa Confguration Tool Update

More
25 Sep 2022 19:14 #252727 by HansU
Replied by HansU on topic Mesa Confguration Tool Update
when I try to run the version from master or ini2 branch under Ubuntu, I get this error:
File startup.py line 45, in function setup
Error: list index out of range
['IndexError: list index out of range\n']

An earlier version started under Ubuntu, but I get this when trying to execute readhmid:
File card.py line 115, in function readhmid
Error: __init__() got an unexpected keyword argument 'text'
["TypeError: __init__() got an unexpected keyword argument 'text'\n"]

Please Log in or Create an account to join the conversation.

More
25 Sep 2022 22:56 - 25 Sep 2022 22:57 #252743 by JT
Replied by JT on topic Mesa Confguration Tool Update
For the first error do you have LinuxCNC installed?

What does apt-cache policy linuxcnc-uspace return on Ubuntu?

JT
Last edit: 25 Sep 2022 22:57 by JT.

Please Log in or Create an account to join the conversation.

More
26 Sep 2022 17:30 #252789 by HansU
Replied by HansU on topic Mesa Confguration Tool Update
No, not on this installation, but I have mesaflash and the 5i25 installed. I thought it shouldn't bee needed to generate the config.
I think it will be good if it could run completely without Mesa HW.
$ apt-cache policy linuxcnc-uspace
N: Paket linuxcnc-uspace kann nicht gefunden werden.
$ LANG=en_US.utf8
$ apt-cache policy linuxcnc-uspace
N: Unable to locate package linuxcnc-uspace
 

Please Log in or Create an account to join the conversation.

More
28 Sep 2022 12:14 - 28 Sep 2022 12:24 #252931 by JT
Replied by JT on topic Mesa Confguration Tool Update
The first issue has been fixed.

What version of Python do you have installed?

Hmm, Debian 9 is Python3.5 and Debian 10 is Python 3.7...

JT
Last edit: 28 Sep 2022 12:24 by JT.

Please Log in or Create an account to join the conversation.

More
28 Sep 2022 13:01 #252935 by HansU
Replied by HansU on topic Mesa Confguration Tool Update
Nice, thanks!

I have Python 3.6.9 installed on this machine.

Please Log in or Create an account to join the conversation.

More
28 Sep 2022 13:16 - 28 Sep 2022 13:18 #252936 by JT
Replied by JT on topic Mesa Confguration Tool Update
A little searching and the text=True option for Popen was not added until Python 3.7... I think I can use subprocess.run instead but I need to put a PCIe card in this PC to test with.

On another note I just finished the new ini2 branch and you can add new comments, sections and key/value pairs and they will be retained the next time you open the ini file. Comments can be indented and use either # or ; at the start of the comment.

A big thanks to Tom L on the IRC for helping me test this out.

JT
Last edit: 28 Sep 2022 13:18 by JT.

Please Log in or Create an account to join the conversation.

More
28 Sep 2022 19:53 #252967 by HansU
Replied by HansU on topic Mesa Confguration Tool Update
Great and great teamwork :-)
Sometimes it happened that the comment is moved some lines (to the beginning of the section I guess), but I couldn't really reproduce it reliably. 


But other that that it works very well :-)

And have you this still in mind?: forum.linuxcnc.org/27-driver-boards/4679...tool?start=10#252202

Another thing I noticed: When I load a config from another drive, here: /media/hans/Debian/home/cnc/linuxcnc/configs/siegx1-mesa,
it shows /home/hans/linuxcnc/configs/siegx1-mesa as Directory Path and also generates the config to this folder.
Not a real problem, but a weird one.


 
Attachments:

Please Log in or Create an account to join the conversation.

More
29 Sep 2022 10:39 #253018 by JT
Replied by JT on topic Mesa Confguration Tool Update
I'm working on a bug that if a comment is on the line before a section the rest of the comments get out of place because the configparser puts a blank line before each section and that throws the position off for following comments.

Boolean values can be any of 1, true, True, yes, Yes or 0, false, False, no, No even though the docs fail to mention that.

JT

Please Log in or Create an account to join the conversation.

More
29 Sep 2022 11:03 #253019 by JT
Replied by JT on topic Mesa Confguration Tool Update

And have you this still in mind?: forum.linuxcnc.org/27-driver-boards/4679...tool?start=10#252202
Furthermore in [DISPLAY] isn't "MIN_VELOCITY" kind of deprecated and should be replaced by" MIN_LINEAR_VELOCITY" ?

Another thing I noticed: When I load a config from another drive, here: /media/hans/Debian/home/cnc/linuxcnc/configs/siegx1-mesa,
it shows /home/hans/linuxcnc/configs/siegx1-mesa as Directory Path and also generates the config to this folder.
Not a real problem, but a weird one.
 

MIN_VELOCITY and MIN_LINEAR_VELOCITY were introduced in EMC 2.3 and I've not heard of anyone wanting to depreciate MIN_VELOCITY. Having said that MIN_LINEAR_VELOCITY is more descriptive of what the key is.

JT

Please Log in or Create an account to join the conversation.

More
29 Sep 2022 11:12 #253020 by JT
Replied by JT on topic Mesa Confguration Tool Update
The configuration tool will now load any valid boolean value for a checkbox but will write back True/False because that is the value returned from .isChecked().

JT
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.264 seconds
Powered by Kunena Forum