Error when trying to open Gmoccapy confiuration.

More
12 Nov 2024 20:26 - 12 Nov 2024 20:29 #314340 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:
 

File Attachment:

File Name: probe_screen.py
File Size:88 KB

 

File Attachment:

File Name: remap.py
File Size:1 KB

 

File Attachment:

File Name: stdglue.py
File Size:8 KB

 

File Attachment:

File Name: toplevel.py
File Size:1 KB

 

File Attachment:

File Name: starmill.hal
File Size:4 KB

 

File Attachment:

File Name: starmill.ini
File Size:4 KB

 

File Attachment:

File Name: linuxcnc.txt
File Size:14 KB

 
Attachments:
Last edit: 12 Nov 2024 20:29 by Dougal9887. Reason: typos

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

More
12 Nov 2024 20:54 #314343 by tommylight
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.

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

More
12 Nov 2024 21:09 #314345 by Dougal9887
Yes. I chose parport/stepper config. That opened fine.

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

More
13 Nov 2024 06:22 - 13 Nov 2024 06:37 #314366 by Aciera
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.

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.

More
13 Nov 2024 06:50 - 13 Nov 2024 06:57 #314367 by Dougal9887
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?
  • 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?
Edit: I did originally consider updating linuxcnc first but believe my version of Debian is too old for that, so probably not a route I can go down.
Last edit: 13 Nov 2024 06:57 by Dougal9887.

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

More
13 Nov 2024 06:53 #314368 by Dougal9887
And thanks for the pointer to the probe update.

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

More
14 Nov 2024 06:15 #314422 by newbynobi
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

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

More
14 Nov 2024 20:51 #314483 by Dougal9887
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!

 

File Attachment:

File Name: linuxcnc_2...1-14.txt
File Size:8 KB
 
 

File Attachment:

File Name: stdglue_2024-11-14.py
File Size:8 KB
Attachments:

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

More
15 Nov 2024 06:05 #314506 by Aciera
Maybe a look at the current version of 'stdglue' helps:
github.com/LinuxCNC/linuxcnc/blob/master...n-stdglue/stdglue.py

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

More
15 Nov 2024 07:41 #314510 by Dougal9887
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......

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

Moderators: newbynobiHansU
Time to create page: 0.131 seconds
Powered by Kunena Forum