- Posts: 22
- Thank you received: 0
Error when trying to open Gmoccapy confiuration.
- Dougal9887
- Topic Author
- Offline
- Junior Member
-
Less
More
1 year 11 months ago #314340
by Dougal9887
Error when trying to open Gmoccapy confiuration. was created by Dougal9887
Hi,
I am moving an existing working configuration to a new computer running Debian 12 and a newly downloaded version of LinuxCNC.
The Gmoccapy sims open fine, but I get an error attempting to open my configuration.
The message appears to reference Python, so I have attached copies of the .py files from the configuration Python folder and a copy of the report (linuxcnc.txt). I have also attached a copy of the .hal and.ini files in case they are relevant.
I wonder if perhaps there is a mismatch of the old Python files and the new LinuxCNC?
I would be most grateful if someone could please take a look as this is out of my depth!
Many thanks,
Dougal.
Attached files:
I am moving an existing working configuration to a new computer running Debian 12 and a newly downloaded version of LinuxCNC.
The Gmoccapy sims open fine, but I get an error attempting to open my configuration.
The message appears to reference Python, so I have attached copies of the .py files from the configuration Python folder and a copy of the report (linuxcnc.txt). I have also attached a copy of the .hal and.ini files in case they are relevant.
I wonder if perhaps there is a mismatch of the old Python files and the new LinuxCNC?
I would be most grateful if someone could please take a look as this is out of my depth!
Many thanks,
Dougal.
Attached files:
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
1 year 11 months ago #314343
by tommylight
Replied by tommylight on topic Error when trying to open Gmoccapy confiuration.
There is something terribly wrong there, buffer overflow detected, several segmentation faults, and multiple core dumps.
Try runing one of the included configs for parallel port from config picker, see if that works with Axis gui.
Try runing one of the included configs for parallel port from config picker, see if that works with Axis gui.
Please Log in to join the conversation.
- Dougal9887
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
1 year 11 months ago #314345
by Dougal9887
Replied by Dougal9887 on topic Error when trying to open Gmoccapy confiuration.
Yes. I chose parport/stepper config. That opened fine.
Please Log in to join the conversation.
1 year 11 months ago #314366
by Aciera
Replied by Aciera on topic Error when trying to open Gmoccapy confiuration.
Seems to be a problem with python2/gtk2 vs python3/gtk3. With version 2.9 Linuxcnc no longer supports python2/gtk2 so 'stdglue.py' , 'probe_screen.py'/'probe_screen.glade' and possibly 'spindle_button.glade' would need to be updated.
[Edit]
This might be of interest:
github.com/verser-git/probe_screen_v2.9
Code:
EMBED_TAB_NAME=Probe Screen
EMBED_TAB_LOCATION = ntb_user_tabs
EMBED_TAB_COMMAND = gladevcp -x {XID} -u python/probe_screen.py probe_icons/probe_screen.glade
EMBED_TAB_NAME = Spindle Button
EMBED_TAB_LOCATION = box_custom_4
EMBED_TAB_COMMAND = gladevcp -x {XID} -H spindle_button.hal spindle_button.glade
[Edit]
This might be of interest:
github.com/verser-git/probe_screen_v2.9
Please Log in to join the conversation.
- Dougal9887
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
1 year 11 months ago #314367
by Dougal9887
Replied by Dougal9887 on topic Error when trying to open Gmoccapy confiuration.
Thanks, I will have a look at those lines tonight.
Also, Tommylight's reply appears to raise concerns re the parallel port. Is the below possibly relevant?
Also, Tommylight's reply appears to raise concerns re the parallel port. Is the below possibly relevant?
- Make sure LinuxCNC does not prevent the Linux parport_pc driver from loading. Older versions of LinuxCNC would blacklist parport_pc in /etc/modprobe.d/linuxcnc.conf (or /etc/modprobe.d/emc2.conf for even older versions of LinuxCNC). Comment out any lines in either of those files that looks like this:
install parport_pc /bin/true - Make sure your Hal configuration does not have loadrt probe_parport in any .hal file.
And possibly this is also a problem now?
"Joints_axes updates
When you update LinuxCNC, the update_ini script will automatically convert your user configurations. If the script detects that your configuration needs to be updated, it will offer to edit your user files and create an updated configuration. "
If there are multiple more problems, maybe I should have/still could try to update my old computer Linuxcnc (not sure of version offhand but c.2007) before copy over the linuxcnc folder?
Please Log in to join the conversation.
- Dougal9887
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
1 year 11 months ago #314368
by Dougal9887
Replied by Dougal9887 on topic Error when trying to open Gmoccapy confiuration.
And thanks for the pointer to the probe update.
Please Log in to join the conversation.
1 year 11 months ago #314422
by newbynobi
Replied by newbynobi on topic Error when trying to open Gmoccapy confiuration.
Sorry for jumping in so late. print "change_prolog: Toolchanger soft fault %d" % int(self.params[5601])
That is The main error. Several files are from python using print "" instead of print("") as function.
You will need to update all old python files to fit the python 3 needs.
I suggest to uncomment the embedded taps in your INI file and try starting your config.
If it starts, try with one embedded tab and check again, repair the bugs and go on.
Norbert
That is The main error. Several files are from python using print "" instead of print("") as function.
You will need to update all old python files to fit the python 3 needs.
I suggest to uncomment the embedded taps in your INI file and try starting your config.
If it starts, try with one embedded tab and check again, repair the bugs and go on.
Norbert
Please Log in to join the conversation.
- Dougal9887
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
1 year 11 months ago #314483
by Dougal9887
Replied by Dougal9887 on topic Error when trying to open Gmoccapy confiuration.
I have now parenthesized print. in stdglue.py and that error has disappeared from the log.
The python error now showing looks like a similar error regarding exception. I have added parentheses to the except lines but must still have the syntax wrong as the same error persists.
I have attached the error log and the stdglue.py file and would be most grateful for some more help!
The python error now showing looks like a similar error regarding exception. I have added parentheses to the except lines but must still have the syntax wrong as the same error persists.
I have attached the error log and the stdglue.py file and would be most grateful for some more help!
Attachment not found
Attachment not found
Please Log in to join the conversation.
1 year 11 months ago #314506
by Aciera
Replied by Aciera on topic Error when trying to open Gmoccapy confiuration.
Maybe a look at the current version of 'stdglue' helps:
github.com/LinuxCNC/linuxcnc/blob/master...n-stdglue/stdglue.py
github.com/LinuxCNC/linuxcnc/blob/master...n-stdglue/stdglue.py
Please Log in to join the conversation.
- Dougal9887
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
1 year 11 months ago #314510
by Dougal9887
Replied by Dougal9887 on topic Error when trying to open Gmoccapy confiuration.
One difference stands out immediately.
My file uses syntax
" except Exception, e"
New version uses
"except Exception as e"
I'm beginning to think that I would be better to start with a new configuration. As you point out, probe screen has an updated version. That would just leave the spindle speed buttons to fix......
My file uses syntax
" except Exception, e"
New version uses
"except Exception as e"
I'm beginning to think that I would be better to start with a new configuration. As you point out, probe screen has an updated version. That would just leave the spindle speed buttons to fix......
Please Log in to join the conversation.
Time to create page: 0.138 seconds
