Machine from LinuxCNC 2.8.4 to LinuxCNC 2.9.8 not working anymore

  • tincho80
  • tincho80's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
18 Jan 2026 23:41 #341558 by tincho80
Hello,
I try to use a machine, which was flawlessly working under LinuxCNC 2.8.4 (LinuxMint 19.3), in LinuxCNC 2.9.8 (LMDE6), but no success.
It is a basic Milling Machine (GMOCCAPY), with added support for VistaCNC-P4S and some python scripts and macros for tool touch off.

I tried the full featured ISO for Debian 13 Trixie with LinuxCNC 2.9.8, getting the exact same result (error).
I tried setting up a new machine using PNCconf, wich works fine. As soon as I add the necessary lines for either the VistaCNC-pendant OR the lines for the touch off, I am getting the attached error down below.
while starting the machine, I can hear the relais clicking, but the GUI never shows, the error prompts before.
I tried using the the new python scripts from the sim directory, but no success.

Can somebody sparky shine a light here? what exactly changed between LinuxCNC 2.8 and 2.9 to make those machines incompatible?
uname -a
Linux cncpc 6.1.0-42-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.159-1 (2025-12-30) x86_64 GNU/Linux

My Installation:
-LMDE6-ISO, checksum checked.
-sudo apt-get update / upgrade
-sudo apt install linuxcnc-uspace -> gave me 2.9.0 wich threw the same error and was not wanted.
-downloaded linuxcnc-uspace_2.9.8_amd64.deb from linxCNC.org
-sudo apt install mesaflash
-copying files for VistaCNC-P4S and "make install".

Any help appreciated! Many thanks!
Cheers.
Martin.

 

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

More
19 Jan 2026 01:37 #341560 by rodw
Your errors show that there are some missing file paths. There are probably defined in your ini file.
The most likely issue is you are using a new user name.

However, also Python V 2.7 used in 2.8 was deprecated. Later versions of Debian use Python 3
I thought there was also a python syntax error so you may need to convert your script to Python 3.
The following user(s) said Thank You: tincho80

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
19 Jan 2026 03:00 #341561 by tommylight
Rod seems on the right track, there are several missing files that might be there but will not be found as it seems the user name and subsequently the file path was different.
Old user name was
cncmrue
The following user(s) said Thank You: rodw, tincho80

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

  • tincho80
  • tincho80's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
19 Jan 2026 10:28 #341573 by tincho80
Thank you very much for your quick reply Rod and Tommy!
unfortunately the error message seams to be misleading here. username, machine name, computer name, paths all is the same and double checked.
so I bet it must be an issue with the syntax change. I remember at some point I got the message: "did you mean print (...)"
how do I change the syntax from python2.7 to python3? could you give me a starting point? hint? tool? using AI?

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

  • tincho80
  • tincho80's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
19 Jan 2026 12:10 #341574 by tincho80
APPLIED SOLUTION:
folders "macros" and folder "python" must be located within the machine folder, although in MyMachine.ini absolute paths to "home/user/linuxcnc/configs/macros and .../python are referenced! That must have changed some where along the way from 2.8.4 to 2.9.8 - I dont know...

MyMachine.ini must contain the following lines in addition, coming from version LinuxCNC 2.8.4 under DISPLAY:
[DISPLAY]
...
CYCLE_TIME = 100
...
DEFAULT_SPINDLE_SPEED   = 500
DEFAULT_SPINDLE_0_SPEED = 500
MIN_SPINDLE_0_SPEED     = 0
MAX_SPINDLE_0_SPEED     = 3000
MAX_SPINDLE_0_OVERRIDE  = 1.2
MIN_SPINDLE_0_OVERRIDE  = 0.5

File vc-postgui.hal must have uncommented lines, which are unused, like following:
net     axis_0_max_vel     vc-p4s.ini.0.max.vel => ini.0.max_velocity
net     axis_1_max_vel    vc-p4s.ini.1.max.vel => ini.1.max_velocity
net     axis_2_max_vel     vc-p4s.ini.2.max.vel => ini.2.max_velocity
#net     axis_3_max_vel    vc-p4s.ini.3.max.vel => ini.3.max_velocity
#net     axis_4_max_vel    vc-p4s.ini.4.max.vel => ini.4.max_velocity
#net     axis_5_max_vel     vc-p4s.ini.5.max.vel => ini.5.max_velocity

now it works!
NO syntax change necessary! just raw and stupid line by line debugging...
many thanks anyway!!!

 
The following user(s) said Thank You: tommylight

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

Time to create page: 0.091 seconds
Powered by Kunena Forum