× Forum Header

mach3 to cnc xml file

More
14 Aug 2019 20:37 - 14 Aug 2019 20:40 #142158 by Clive S
I see in stepconf the is an option to convert a xml file to linuxcnc.

What is the procedure to achieve this. I have put the xml file in the config folder and selected the option in stepconf to import but is does not seem to import it . It just seems to hang for a short while.

Using version 2.9
Last edit: 14 Aug 2019 20:40 by Clive S.

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

More
14 Aug 2019 20:48 #142162 by andypugh
Replied by andypugh on topic mach3 to cnc xml file
I haven't tried this, but if you then press the "forward" button is there any sign that any field have been pre-filled from the XML?

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

More
14 Aug 2019 21:57 #142165 by Clive S
Replied by Clive S on topic mach3 to cnc xml file

I haven't tried this, but if you then press the "forward" button is there any sign that any field have been pre-filled from the XML?


When the forward button is pressed it just hangs.

The xml is called Mach3Turn.xml I was wondering if the name is wrong, I mean the wrong format for linuxcnc

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

More
15 Aug 2019 01:33 #142181 by cmorley
Replied by cmorley on topic mach3 to cnc xml file
Stepconf should open a dialog to select a Mach config.
What distribution of linux are you using?

Chris
The following user(s) said Thank You: Clive S

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

More
15 Aug 2019 01:35 #142182 by cmorley
Replied by cmorley on topic mach3 to cnc xml file
I see that stepconf now uses GTK3 and the mach import script use GTK2.
So that is probably the bases of the problem - maybe gtk2 is not installed?

Chris
The following user(s) said Thank You: Clive S

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

More
15 Aug 2019 07:36 #142199 by Clive S
Replied by Clive S on topic mach3 to cnc xml file

Stepconf should open a dialog to select a Mach config.
What distribution of linux are you using?

Chris


Thanks. Ok update. I have a few version of linuxcnc so I tried it on V 2.7.14 and it all went ok no prob.

I then moved the config folder to the V 2.9 machine and it converted it to the correct format (joints etc).

I do have a problem with the 2.9 version in that when linuxcnc closes it give an error message


I think I have read about this before . but I cannot find the cure.
Attachments:

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

More
15 Aug 2019 07:38 #142200 by Clive S
Replied by Clive S on topic mach3 to cnc xml file

I see that stepconf now uses GTK3 and the mach import script use GTK2.
So that is probably the bases of the problem - maybe gtk2 is not installed?

Chris


Thanks . What would be the procedure to install GTK2 on V2.9

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

More
15 Aug 2019 08:12 #142205 by tommylight
Replied by tommylight on topic mach3 to cnc xml file
The closing issue is fixed in the later versions of Linuxcnc, just upgrade to a new build.
The following user(s) said Thank You: Clive S

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

More
31 Oct 2019 02:43 #149253 by Bats
Replied by Bats on topic mach3 to cnc xml file
I'm not sure what the proper protocol for reporting bugs 'round these parts is, but I just got bitten by this one too (in 2.9.0-pre0.770.0.ga48d613fb, specifically, running on testing-stretch-rtpreempt ). I was about to open a new thread about it, but this certainly looks like the same issue - and it does indeed seem to be a problem with GTK.

Running stepconf from the command line, selecting "Import a Mach file" and clicking Forward gave me this:
Import Mach config
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/stepconf/pages.py", line 73, in on_button_fwd_clicked
    if not self['%s_finish'%cur_name]():
  File "/usr/lib/python2.7/dist-packages/stepconf/pages.py", line 207, in start_finish
    from stepconf import import_mach
  File "/usr/lib/python2.7/dist-packages/stepconf/import_mach.py", line 28, in <module>
    filter = gtk.FileFilter()
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 64, in __getattr__
    raise AttributeError(_static_binding_error)
AttributeError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183

Needless to say, just changing the import line to "from gi.repository import Gtk" & changing some capitalization to match isn't enough to do the job, but that's about the point where my rusty Python and nonexistent grasp of GTK libs ran dry.

It's not critical for me right now (it just would've - might've - been a shortcut in something I was trying to puzzle out), but it seemed like the sort of thing that should be reported, as it's likely of interest to the people who're interested in reports about this sort of thing.

-Bats

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

More
31 Oct 2019 02:52 #149254 by cmorley
Replied by cmorley on topic mach3 to cnc xml file
Looks like it has not been fix - mach_import still uses gtk2
It will never work until that is changed to gtk3

Chris

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

Time to create page: 0.266 seconds
Powered by Kunena Forum