qtplasmac_gcode.py: not found after upgrade

More
15 Jan 2023 15:12 #262044 by Howlingg
I have just upgraded my system using sudo apt update and sudo apt-dist-upgrade and the version has updated to the latest but now when I try to open a file I get the error as above:  qtplasmac_gcode.py: not found

Luckily I did a disk image before starting so I can go back to the old version if needed but would like to resolve if possible.  Any ideas?

Many thanks

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

More
15 Jan 2023 17:43 #262051 by snowgoer540
I am not sure as it appears to be fine over here on 2.10 (master) on both a RIP version and a Package version.

It would be helpful to know exactly what version of linuxcnc you are running. 2.9 or 2.10? What does the entire window title say when you run QtPlasmaC? It should say <config_name> - QtPlasmaC vx.xxx.xxx, powered by QtVCP on LinuxCNC v2.x.x-prexxxxxxxxxxxxxxxxx need to know all of the x's :)

If you aren't completely sure, would you be able to post a backup of your config here?

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

More
16 Jan 2023 15:20 - 16 Jan 2023 15:21 #262132 by Howlingg
Thanks for the reply - just to be sure I restored from my original disk image and started again with the same results.  Attached are my backup files from before and after the upgrade.

The full error is:"The filter program 'qtplasmac_gcode.py' that was filtering 'filename.ngc' exited with an error.  The error messages it produced are shown below:
sh: 1: ./qtplasmac/qtplasmac_gcode.py: not found"

File Attachment:

File Name: plasma_V1....0.tar.gz
File Size:14 KB

File Attachment:

File Name: plasma_V1....2.tar.gz
File Size:12 KB
Attachments:
Last edit: 16 Jan 2023 15:21 by Howlingg. Reason: correction

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

More
16 Jan 2023 15:50 - 16 Jan 2023 16:36 #262135 by snowgoer540
In your INI file, change this section:

[FILTER]
PROGRAM_EXTENSION = .ngc,.nc,.tap GCode File (*.ngc, *.nc, *.tap)
ngc = ./qtplasmac/qtplasmac_gcode.py
nc = ./qtplasmac/qtplasmac_gcode.py
tap = ./qtplasmac/qtplasmac_gcode.py

to this:

[FILTER]
PROGRAM_EXTENSION = .ngc,.nc,.tap GCode File (*.ngc, *.nc, *.tap)
ngc = qtplasmac_gcode
nc = qtplasmac_gcode
tap = qtplasmac_gcode

You also need to change this:

FROM:
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
RS274NGC_STARTUP_CODE = G21 G40 G49 G80 G90 G92.1 G94 G97 M52P1
SUBROUTINE_PATH = ./:./qtplasmac:../../nc_files/subroutines
USER_M_PATH = ./:./qtplasmac


TO:
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
RS274NGC_STARTUP_CODE = G21 G40 G49 G80 G90 G92.1 G94 G97 M52P1
SUBROUTINE_PATH = ./:../../nc_files/subroutines
USER_M_PATH = ./


Then delete the qtplasmac symlink from your config folder.

I attached your ini file with the updates as well.

It should work after the aforementioned changes
Attachments:
Last edit: 16 Jan 2023 16:36 by snowgoer540. Reason: combine posts and add updated ini file

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

More
16 Jan 2023 16:19 #262139 by snowgoer540
Looking at this closer, you have two configs in the latest version backup you attached.  Looks like one is under "Normal" and one under "Sushi".

I assume you are trying to run the config in "Normal".  

At any rate, I see why your config did not update the way it should have.   I will push a change once I run it past Phill.

Thanks for the inadvertent bug report :) 

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

More
16 Jan 2023 16:56 #262143 by Howlingg
Many thanks - this is working perfectly now, I appreciate the rapid response!

You are right about the user - I have no idea who "Sushi" might be!!

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

More
16 Jan 2023 17:08 #262144 by tommylight

You are right about the user - I have no idea who "Sushi" might be!!

Sushi =
forum.linuxcnc.org/plasmac/47726-qtplasm...ble-full-thc?start=0
The following user(s) said Thank You: snowgoer540

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

More
16 Jan 2023 17:10 #262145 by snowgoer540

Many thanks - this is working perfectly now, I appreciate the rapid response!

You are right about the user - I have no idea who "Sushi" might be!!

Glad to hear it!

Oops yea when I extracted your file it must have combined with an old one. Sushi was another I looked into recently. My fault :blush:
The following user(s) said Thank You: Howlingg

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

More
17 Jan 2023 13:28 #262234 by snowgoer540
I'm reasonably sure your config (INI file) didn't update correctly because the symlink in your folder would have been broken due to us moving the simulation configuration to a different folder.  I am making an assumption about how frequently you update.  If you hadn't updated in a while, then I'm even more sure.  If you update daily then I've no idea :laugh:

At any rate, I updated the updater for future folks who may run into the same thing (if they don't update frequently)...a broken symlink to 'qtplamac' will not stop the update from occurring now.

Thanks again for the feedback.
The following user(s) said Thank You: Clive S

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

More
18 Jan 2023 09:27 #262326 by Howlingg
Funnily enough I hadn't ever updated since installing and getting a working system as I was too scared I would break something!

Now that I am up to date and know how easy it is to update I promise I will do it more often!!

Many thanks again for your help.
The following user(s) said Thank You: snowgoer540

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

Moderators: snowgoer540
Time to create page: 0.233 seconds
Powered by Kunena Forum