Pathpilot Glade idiots guide
06 May 2020 23:21 #166906
by Dorro1971
Pathpilot Glade idiots guide was created by Dorro1971
Hi Folks,
Is there an idiots guide for Pathpilot with Glade?..
I have Pathpilot 2.4 installed and working I even managed to create a custom bitfile for my 7i92.
I'm just getting nosy and would like to poke around the GUI a little bit.
I have installed gtksourceview as it didn't seem to be part of the install but it looks like the gui was created with Glade 2.16.0 as it complains about the current version (3) and some widgets are deprecated when i analyse it.
I edited the source to change requirements to Glade3 but the deprecated widgets are still not present..
I also tried installing Glade 2.16.0 with some success but now gtksourcview catalogs are unavailable and the gui cannot be loaded.
I'm a little stuck from here and also pretty new to linux so any help would be great.
On the plus side, my lathe is fully functional have simulated a tool turret and with a little arduino work that will be my next project.
I have fitted Baumer MY-Com switches to the x and z axis and now homes perfectly to a micron or 3 every time.
Anyhow, thanks for a great forum..and any help ...
Dorro
Is there an idiots guide for Pathpilot with Glade?..
I have Pathpilot 2.4 installed and working I even managed to create a custom bitfile for my 7i92.
I'm just getting nosy and would like to poke around the GUI a little bit.
I have installed gtksourceview as it didn't seem to be part of the install but it looks like the gui was created with Glade 2.16.0 as it complains about the current version (3) and some widgets are deprecated when i analyse it.
I edited the source to change requirements to Glade3 but the deprecated widgets are still not present..
I also tried installing Glade 2.16.0 with some success but now gtksourcview catalogs are unavailable and the gui cannot be loaded.
I'm a little stuck from here and also pretty new to linux so any help would be great.
On the plus side, my lathe is fully functional have simulated a tool turret and with a little arduino work that will be my next project.
I have fitted Baumer MY-Com switches to the x and z axis and now homes perfectly to a micron or 3 every time.
Anyhow, thanks for a great forum..and any help ...
Dorro
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
07 May 2020 00:06 #166910
by tommylight
Replied by tommylight on topic Pathpilot Glade idiots guide
I could have sworn that i have already read this post earlier today ........................
Please Log in or Create an account to join the conversation.
07 May 2020 10:07 #166949
by Dorro1971
Replied by Dorro1971 on topic Pathpilot Glade idiots guide
Lol.. sorry I posted it on the wrong section and moved it!...
My apologies!
My apologies!
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
07 May 2020 10:09 #166950
by tommylight
Replied by tommylight on topic Pathpilot Glade idiots guide
Was thinking i am seeing things before they happen !Lol.. sorry I posted it on the wrong section and moved it!...
My apologies!
Please Log in or Create an account to join the conversation.
07 May 2020 23:26 #166991
by Dorro1971
Replied by Dorro1971 on topic Pathpilot Glade idiots guide
Nope...just me being a spanner!
Please Log in or Create an account to join the conversation.
10 May 2020 15:21 - 10 May 2020 15:28 #167274
by smgvbest
Replied by smgvbest on topic Pathpilot Glade idiots guide
when you edit the glade file, glade doesn't know about the PP environment yet.
to let it know and before running glade run ~tmc/scripts/rip-environment.sh
then run glade. i suggest running glade from cmdline
so
~tmc/scripts/rip-environment.sh
glade ~/tmc/python/images/tormach_mill_ui.glade
see if that helps
if you run into this error
./rip-environment.sh: line 146: /home/operator/tmc/scripts/venv/bin/activate: No such file or directory
edit rip-environment.sh and find activate
comment it out
it should work fine even if you don't but if you want to get rid of the error
so change this
# must activate virtualenv for python packages
source $EMC2_HOME/venv/bin/activate
to this
# must activate virtualenv for python packages
# source $EMC2_HOME/venv/bin/activate
to let it know and before running glade run ~tmc/scripts/rip-environment.sh
then run glade. i suggest running glade from cmdline
so
~tmc/scripts/rip-environment.sh
glade ~/tmc/python/images/tormach_mill_ui.glade
see if that helps
if you run into this error
./rip-environment.sh: line 146: /home/operator/tmc/scripts/venv/bin/activate: No such file or directory
edit rip-environment.sh and find activate
comment it out
it should work fine even if you don't but if you want to get rid of the error
so change this
# must activate virtualenv for python packages
source $EMC2_HOME/venv/bin/activate
to this
# must activate virtualenv for python packages
# source $EMC2_HOME/venv/bin/activate
Last edit: 10 May 2020 15:28 by smgvbest.
Please Log in or Create an account to join the conversation.
11 May 2020 18:37 #167406
by Dorro1971
Replied by Dorro1971 on topic Pathpilot Glade idiots guide
Thank you so much smgvbest.
I tried your advice but got an error at line 82 "cannot return from a function"
so i commented out the return statement...and then the whole case condition
along with line 146.
Sadly i still get "Failed to load /home/operator/v2.4.3/python/images/tormach_mill_ui.glade.
The following required catalogs are unavailable: gtksourceview"
I can install gtksourceview but then some widgets are depracted.
I can install an earlier version of glade but then gtksourceview is missing.
I thought it might simply be a case of opening the file with glade but it seems not..I don't really get all the commands that i need to enter just top open a file so i think i will continue editing the xml file.
Like I mentioned I have my machine running after building a custom bitfile and modifying hal so I'm just being nosey, that and my display is 1360X768 so i thought i could "stretch it" lol.
Thank you once again for your time, I think i need to build a gui from scratch to understand what's going on.......
Cheers, Ian
I tried your advice but got an error at line 82 "cannot return from a function"
so i commented out the return statement...and then the whole case condition
along with line 146.
Sadly i still get "Failed to load /home/operator/v2.4.3/python/images/tormach_mill_ui.glade.
The following required catalogs are unavailable: gtksourceview"
I can install gtksourceview but then some widgets are depracted.
I can install an earlier version of glade but then gtksourceview is missing.
I thought it might simply be a case of opening the file with glade but it seems not..I don't really get all the commands that i need to enter just top open a file so i think i will continue editing the xml file.
Like I mentioned I have my machine running after building a custom bitfile and modifying hal so I'm just being nosey, that and my display is 1360X768 so i thought i could "stretch it" lol.
Thank you once again for your time, I think i need to build a gui from scratch to understand what's going on.......
Cheers, Ian
Please Log in or Create an account to join the conversation.
22 Jun 2020 14:34 #172344
by gerritv
Replied by gerritv on topic Pathpilot Glade idiots guide
I'm not sure what the repurcussions are but by deleting the line in .glade that says gtksourceview required I can now load the tormach-mill file. I installed glade 2.4, run it using glade-gtk2.
The following user(s) said Thank You: Dorro1971
Please Log in or Create an account to join the conversation.
22 Jun 2020 19:22 #172381
by Dorro1971
Replied by Dorro1971 on topic Pathpilot Glade idiots guide
Thank you, I'll gove it a try when I'm next in the shop....
Please Log in or Create an account to join the conversation.
08 Dec 2020 23:15 - 08 Dec 2020 23:15 #191447
by gerritv
Replied by gerritv on topic Pathpilot Glade idiots guide
I found the catalog file! opensuse.pkgs.org/tumbleweed/gnome-next-...1.17.x86_64.rpm.html .
I extracted the catalog file using zstd, it is attached for your viewing pleasure.
sudo cp the file to /usr/glade3/catalogs and you are set to go. As before use glade-gtk2 to edit the gui.
Gerrit
I extracted the catalog file using zstd, it is attached for your viewing pleasure.
sudo cp the file to /usr/glade3/catalogs and you are set to go. As before use glade-gtk2 to edit the gui.
Gerrit
Attachments:
Last edit: 08 Dec 2020 23:15 by gerritv.
The following user(s) said Thank You: snowgoer540, Dorro1971
Please Log in or Create an account to join the conversation.
Moderators: cncbasher
Time to create page: 0.086 seconds