Error when trying to open Gmoccapy confiuration.
- Dougal9887
- Offline
- Junior Member
Less
More
- Posts: 22
- Thank you received: 3
12 Nov 2024 20:26 - 12 Nov 2024 20:29 #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:
Attachments:
Last edit: 12 Nov 2024 20:29 by Dougal9887. Reason: typos
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19408
- Thank you received: 6507
12 Nov 2024 20:54 #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 or Create an account to join the conversation.
- Dougal9887
- Offline
- Junior Member
Less
More
- Posts: 22
- Thank you received: 3
12 Nov 2024 21:09 #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 or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 3946
- Thank you received: 1705
13 Nov 2024 06:22 - 13 Nov 2024 06:37 #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
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
Last edit: 13 Nov 2024 06:37 by Aciera.
Please Log in or Create an account to join the conversation.
- Dougal9887
- Offline
- Junior Member
Less
More
- Posts: 22
- Thank you received: 3
13 Nov 2024 06:50 - 13 Nov 2024 06:57 #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?
Last edit: 13 Nov 2024 06:57 by Dougal9887.
Please Log in or Create an account to join the conversation.
- Dougal9887
- Offline
- Junior Member
Less
More
- Posts: 22
- Thank you received: 3
13 Nov 2024 06:53 #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 or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
Less
More
- Posts: 2075
- Thank you received: 406
14 Nov 2024 06:15 #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 or Create an account to join the conversation.
- Dougal9887
- Offline
- Junior Member
Less
More
- Posts: 22
- Thank you received: 3
14 Nov 2024 20:51 #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!
Attachments:
Please Log in or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 3946
- Thank you received: 1705
15 Nov 2024 06:05 #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 or Create an account to join the conversation.
- Dougal9887
- Offline
- Junior Member
Less
More
- Posts: 22
- Thank you received: 3
15 Nov 2024 07:41 #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 or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.082 seconds