On Monday 03 April 2017 09:06:08 Todd Zuercher wrote: > Thanks Gene, > > i had switched from Pyvcp to Gladevcp a little while ago because I > could do a couple of things with Gladevcp that I couldn't make work > with Pyvcp. > > The problem apparently was because of a fix that was made for > NativeCAM, but broke Gladevcp for Lucid. Dewy Garret was kind enough > to push a fix for us Lucid holdouts. And all is better now. > https://forum.linuxcnc.org/48-gladevcp/32552-gladevcp-problem > > Once you figure it out, I think setting up a basic Gladevcp is > actually simpler than Pyvcp and certainly way more powerful/flexible. > For a basic screen that only uses hal wigits I don't even think you > need to set up much if any of a python helper file. In that way JT's > tutorials may go into a little more depth than is necessary, and might > muddy the waters a bit. That said, setting up Linuxcnc with working > Gladevcp for Jessie might not be very easy, and could be fraught with > dependency problems. > It is on both wheezy and jessie, no gtk2 stuffs are available in the repo's. And what gtk3 wigits there is available has been emasculated, with zero thoughts of updateing to include wigits similar to what gtk2 had on the menu. So until that occurs, here its tcl/tk wrapped in pyvcp to the rescue. The gfx are of a coarser grained construction to be sure, but they _still_ work. One thing I have yet to add to the latest gui additions are some background colorizations to indicate state/mode of the dials. I'd like to have 3 colors, yellow for jog size setting mode, green for dial active, and red for disabled. I have some 2 color setups elsewhere, but haven't tried for 3 in one box yet. But since the label is a box, and the value is a box below, I may have to settle for 2 different colors of each to get all states/modes accounted for.
> ----- Original Message ----- > From: "Gene Heskett" <ghesk...@shentel.net> > To: emc-users@lists.sourceforge.net > Sent: Monday, April 3, 2017 2:04:38 AM > Subject: Re: [Emc-users] [SPAM] Gladevcp Problem? > > On Tuesday 28 March 2017 10:36:50 Todd Zuercher wrote: > > This morning one of the machine operators ran an update on a machine > > that had been working fine yesterday. The machine is an older Lucid > > install with Linuxcnc 2.7.8. > > It looks to me like the problem has something to do with the > > Gladevcp, but it had been working before. Anyone know what the > > update might have broken, or how to fix it? An older version of this > > config that has a Pyvcp instead of aGladevcp starts and runs fine. > > I have given up on glade, Todd. Even with John Thornton's excellent > tutorial I have never succeeded in making anything work on these > wheezy/jessie installs. > > pyvcp OTOH Just Works once I had begun to understand how it works, > with a bit of excellent help from Sarah A. > > gtk3 elided 90% of the widgit kit that gtk2 had that worked fairly > well. Some fussing about that on the debian list seems to have been > routed to /dev/null. > > When I just this past couple of weeks added independent jog dials to > this lathe I am re-building, adding 2 labels and two variable tallies > to the gui to report the jog step size variable was only about 20 > minutes work once I had begun to understand pyvcp. This is a jessie > install on a raspberry pi-3b, and the pi is loafing. I'd post a > snapshot but I've not figured out how to snapshot the pi's own screen > from an ssh login from here in the house. > > That said, apt keeps a history file, and from that one might be able > of identify a suspect. > > > Here is what is spit out when trying to start from the command line: > > linuxcnc > > LINUXCNC - 2.7.8-70-g94e0c5c > > Machine configuration directory is > > '/home/digital4/linuxcnc/configs/Digital_4g' Machine configuration > > file is 'Digital_4w.ini' > > Starting LinuxCNC... > > Found file(REL): ./Digital_4w.hal > > Traceback (most recent call last): > > File "/usr/bin/gladevcp", line 45, in <module> > > import gladevcp.makepins > > File "/usr/lib/pymodules/python2.6/gladevcp/__init__.py", line 5, > > in <module> import os,sys,glob,importlib,subprocess > > ImportError: No module named importlib > > <commandline>:0: waitpid failed gladevcp gladevcp > > <commandline>:0: gladevcp exited without becoming ready > > Embeded tab command "halcmd loadusr -Wn gladevcp gladevcp -c > > gladevcp -x 69206176 -u dig4.py dig4.glade" exited with error: 1 > > Shutting down and cleaning up LinuxCNC... > > task: 281 cycles, min=0.000035, max=0.022022, avg=0.009583, 0 > > latency excursions (> 10x expected cycle time of 0.010000s) LinuxCNC > > terminated with an error. You can find more information in the log: > > /home/digital4/linuxcnc_debug.txt > > and > > /home/digital4/linuxcnc_print.txt > > as well as in the output of the shell command 'dmesg' and in the > > terminal digital4@digital4-cnc:~$ > > That smells like a python update might be something to look at. But > I'm not a python expert, nor do I have a lucid install left alive. > Sorry. > > Cheers, Gene Heskett Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users