Re: [Emc-users] Problem upgrading from 2.7.4

2016-10-13 Thread Russell Brown
Quoth andy pugh.
>On 12 October 2016 at 17:00, Russell Brown  wrote:
>> Somethings very broken with 2.7.5+ on lucid :-(
>
>Can you clarify? Originally you said "Debian Wheezy" and now you are
>saying "Lucid"

Bah.  T'was lucid (I typed wheezy because I'm an idiot :-().

But I've bitten the bullet, installed jessie and linuxcnc 2.8 (the
attempted upgrade from lucid to precise didn't go well).

Not seen it move anything yet (I'm doing the install/setup from my desk
rather than in the workshop) but everything seems to be coming alive.

Not really a solution to the problem I was getting but most certainly a
'work around' :-)


-- 
 Regards,
 Russell
 
| Russell Brown  | MAIL: russ...@lls.com PHONE: 01780 471800 |
| Lady Lodge Systems | WWW Work: http://www.lls.com  |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk |
 

--
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


Re: [Emc-users] Problem upgrading from 2.7.4

2016-10-13 Thread andy pugh
On 12 October 2016 at 17:00, Russell Brown  wrote:
> Somethings very broken with 2.7.5+ on lucid :-(


Can you clarify? Originally you said "Debian Wheezy" and now you are
saying "Lucid"

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
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


Re: [Emc-users] Problem upgrading from 2.7.4

2016-10-12 Thread Gregg Eshelman
The gcode file for the universe is larger than the universe...
 
  From: andy pugh <bodge...@gmail.com>
 To: Enhanced Machine Controller (EMC) <emc-users@lists.sourceforge.net> 
 Sent: Wednesday, October 12, 2016 3:10 AM
 Subject: Re: [Emc-users] Problem upgrading from 2.7.4
   
On 12 October 2016 at 08:49, Russell Brown <russ...@lls.lls.com> wrote:
> If I click 'OK' linuxcnc loads but the initial X & Y show as 4.23e+289
> and 2.95e+240 and axis.ngc is not showing in the display.

Is this one of them "Universal" milling machines, for milling entire universes?
   
 
--
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


Re: [Emc-users] Problem upgrading from 2.7.4

2016-10-12 Thread Chris Albertson
On Wed, Oct 12, 2016 at 12:49 AM, Russell Brown  wrote:
>
> I tried upgrading from 2.7.4 to 2.7.7 (debian wheezy, apt-get) but when
> I fire linuxcnc up I get a popup error message:
>
>>G-Code error in axis.ngc
>>
>>Near line 12 of /usr/share/axis/images/axis.ngc:
>>Bad character 'z' used
>
> If I click 'OK' linuxcnc loads but the initial X & Y show as 4.23e+289
> and 2.95e+240 and axis.ngc is not showing in the display.

Have you looks at the file "axis.ngc:" using a text editor or using
"less" in a terminal?  What do you see near line number 12?  The first
thing to do is always assume the r=error message is literally true.

Perhaps what has happened is that a number in the file has been wrong
all along and now the newer software does a better job of catching
errors in the files it reads.  The problem be syntactical or logical

One other debug method I use that works with open source software is
to search for the error string in the source code.  Then it is pretty
easy to see the condition that would cause it to be printed.



-- 

Chris Albertson
Redondo Beach, California

--
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


Re: [Emc-users] Problem upgrading from 2.7.4

2016-10-12 Thread andy pugh
On 12 October 2016 at 08:49, Russell Brown  wrote:
> A possible contributor to the problem is that I tried installing
> NativeCAM but ran into problems

Maybe try things in a different order? (LinuxCNC then NativeCAM?)

I think that a lot of the NativeCAM examples assume 2.8 / JA which was
maybe something of an error.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
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


Re: [Emc-users] Problem upgrading from 2.7.4

2016-10-12 Thread Peter Blodow
Am 12.10.2016 22:00, schrieb andy pugh:
> On 12 October 2016 at 20:44, Russell Brown  wrote:
>> What version of python do you have on that?
> I would go and look, but it's raining and that machine isn't set up
> for wake-on-lan.
>
At least you have a sound reason for not going.
Peter

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


--
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


Re: [Emc-users] Problem upgrading from 2.7.4

2016-10-12 Thread andy pugh
On 12 October 2016 at 20:44, Russell Brown  wrote:
> What version of python do you have on that?

I would go and look, but it's raining and that machine isn't set up
for wake-on-lan.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
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


Re: [Emc-users] Problem upgrading from 2.7.4

2016-10-12 Thread Russell Brown
Quoth andy pugh.
>> So...  am I stuck on 2.7.4 ?
>
>I am fairly sure not, as I am running 10.04 on my milling machine, and
>that is on 2.8-ja1.
>
>Unfortunately I can't recall how I got there, but probably via the buildbot.

What version of python do you have on that?

I did a google for upgrading python on lucid to 2.7 (needed to build
linuxcnc from git) and found dire warnings about breaking things.

I might just try an upgrade to precise...  can always restore my current
setup from backup if it goes titsup.com

-- 
 Regards,
 Russell
 
| Russell Brown  | MAIL: russ...@lls.com PHONE: 01780 471800 |
| Lady Lodge Systems | WWW Work: http://www.lls.com  |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk |
 

--
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


Re: [Emc-users] Problem upgrading from 2.7.4

2016-10-12 Thread andy pugh
On 12 October 2016 at 17:00, Russell Brown  wrote:
> Somethings very broken with 2.7.5+ on lucid :-(
>
> So...  am I stuck on 2.7.4 ?

I am fairly sure not, as I am running 10.04 on my milling machine, and
that is on 2.8-ja1.

Unfortunately I can't recall how I got there, but probably via the buildbot.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
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


Re: [Emc-users] Problem upgrading from 2.7.4

2016-10-12 Thread Russell Brown
Quoth John Alexander Stewart.
>Russell - is there a "z" axis on your machine?

Yes.  It's a mill.

-- 
 Regards,
 Russell
 
| Russell Brown  | MAIL: russ...@lls.com PHONE: 01780 471800 |
| Lady Lodge Systems | WWW Work: http://www.lls.com  |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk |
 

--
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


Re: [Emc-users] Problem upgrading from 2.7.4

2016-10-12 Thread John Alexander Stewart
Russell - is there a "z" axis on your machine?

John.

On Wed, Oct 12, 2016 at 12:00 PM, Russell Brown  wrote:

> Quoth andy pugh.
> >On 12 October 2016 at 08:49, Russell Brown  wrote:
> >> If I click 'OK' linuxcnc loads but the initial X & Y show as 4.23e+289
> >> and 2.95e+240 and axis.ngc is not showing in the display.
> >
> >Is this one of them "Universal" milling machines, for milling entire
> universes?
>
> The heating's come on today so it's probably expanded a bit but not that
> much :-)
>
>
> >It might be as simple as a position.txt file with bad numbers in it?
>
> Hm.
>
> A) that doesn't explain the weird error message about axis.ngc.
> B) the same position.txt works with 2.7.4
> C) deleting position.txt doesn't fix either problem.
>
> FWIW, position.txt contains:
>
> 211.51237592697140144
> -82.01800169944763752
> 99.75883250664918478
> 0.0
> 0.0
> 0.0
> 0.0
> 0.0
> 0.0
>
> I've just tried sim axis_mm.ini with 2.7.7 and it also generates the
> spurious popup about "Bad character 'z' used" in axis.ngc :-(
>
> Created a new user (to avoid config issues), logged in, ran 2.7.7 and
> picked sim.axis/axis_mm..  same popup error message about "Bad
> character 'z'" near line 12 in /usr/share/axis/images/axis.ngc.
>
> If I try to open "/usr/share/axis/images/axis.ngc" from the File menu I
> again get the error message.
>
> If I try to open a previously used simple .ngc file, linuxcnc complains
> that the tool (tool 1) isn't found in the tool table  even though
> tool 1 *is* plainly there if I edit the tooltable.
>
> If I try to 'cut' axis.ngc, it wants me to home; I do that but X & Y go
> from 0 to X -1.26e+58 and Y 3.11e+231.  Click run again and it pauses.
> When I click pause to continue, I get the error "can't do that
> (EMC_TRAJ_SET_TELEOP_ENABLE) in auto mode with the interpreter idle".
>
> Uninstalled 2.7.7 (apt-get remove --purge linuxcnc), reinstalled 2.7.4
> (apt-get install linuxcnc=1:2.7.4) and, still as my new test user, fired
> up linuxcnc with sim/axis_mm.ini.
>
> No complaints about bad characters, no silly numbers on homing and the
> sim happily 'cut' LinuxCNC as expected.
>
> Just for fun, I tried 2.7.5 and it's borked in the same way as 2.7.7.
>
> Tried building a git pull of linuxcnc-dev but configure fails saying
> python is too old (2.7 needed; lucid has 2.6.5).
>
> Somethings very broken with 2.7.5+ on lucid :-(
>
> So...  am I stuck on 2.7.4 ?
>
> --
>  Regards,
>  Russell
>  
> | Russell Brown  | MAIL: russ...@lls.com PHONE: 01780 471800 |
> | Lady Lodge Systems | WWW Work: http://www.lls.com  |
> | Peterborough, England  | WWW Play: http://www.ruffle.me.uk |
>  
>
> 
> --
> 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
>
--
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


Re: [Emc-users] Problem upgrading from 2.7.4

2016-10-12 Thread Russell Brown
Quoth andy pugh.
>On 12 October 2016 at 08:49, Russell Brown  wrote:
>> If I click 'OK' linuxcnc loads but the initial X & Y show as 4.23e+289
>> and 2.95e+240 and axis.ngc is not showing in the display.
>
>Is this one of them "Universal" milling machines, for milling entire universes?

The heating's come on today so it's probably expanded a bit but not that
much :-)


>It might be as simple as a position.txt file with bad numbers in it?

Hm.

A) that doesn't explain the weird error message about axis.ngc.
B) the same position.txt works with 2.7.4
C) deleting position.txt doesn't fix either problem.

FWIW, position.txt contains:

211.51237592697140144
-82.01800169944763752
99.75883250664918478
0.0
0.0
0.0
0.0
0.0
0.0

I've just tried sim axis_mm.ini with 2.7.7 and it also generates the
spurious popup about "Bad character 'z' used" in axis.ngc :-(

Created a new user (to avoid config issues), logged in, ran 2.7.7 and
picked sim.axis/axis_mm..  same popup error message about "Bad
character 'z'" near line 12 in /usr/share/axis/images/axis.ngc.

If I try to open "/usr/share/axis/images/axis.ngc" from the File menu I
again get the error message.

If I try to open a previously used simple .ngc file, linuxcnc complains
that the tool (tool 1) isn't found in the tool table  even though
tool 1 *is* plainly there if I edit the tooltable.

If I try to 'cut' axis.ngc, it wants me to home; I do that but X & Y go
from 0 to X -1.26e+58 and Y 3.11e+231.  Click run again and it pauses.
When I click pause to continue, I get the error "can't do that
(EMC_TRAJ_SET_TELEOP_ENABLE) in auto mode with the interpreter idle".

Uninstalled 2.7.7 (apt-get remove --purge linuxcnc), reinstalled 2.7.4
(apt-get install linuxcnc=1:2.7.4) and, still as my new test user, fired
up linuxcnc with sim/axis_mm.ini.

No complaints about bad characters, no silly numbers on homing and the
sim happily 'cut' LinuxCNC as expected.

Just for fun, I tried 2.7.5 and it's borked in the same way as 2.7.7.

Tried building a git pull of linuxcnc-dev but configure fails saying
python is too old (2.7 needed; lucid has 2.6.5).

Somethings very broken with 2.7.5+ on lucid :-(

So...  am I stuck on 2.7.4 ?

-- 
 Regards,
 Russell
 
| Russell Brown  | MAIL: russ...@lls.com PHONE: 01780 471800 |
| Lady Lodge Systems | WWW Work: http://www.lls.com  |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk |
 

--
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


Re: [Emc-users] Problem upgrading from 2.7.4

2016-10-12 Thread andy pugh
On 12 October 2016 at 08:49, Russell Brown  wrote:
> If I click 'OK' linuxcnc loads but the initial X & Y show as 4.23e+289
> and 2.95e+240 and axis.ngc is not showing in the display.

Is this one of them "Universal" milling machines, for milling entire universes?

At a guess, the problem is the exponent notation, it tends to get sent
into python as text, then into G-code where the "E" words confuse
matters.

It might be as simple as a position.txt file with bad numbers in it?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
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


[Emc-users] Problem upgrading from 2.7.4

2016-10-12 Thread Russell Brown

I tried upgrading from 2.7.4 to 2.7.7 (debian wheezy, apt-get) but when
I fire linuxcnc up I get a popup error message:

>G-Code error in axis.ngc
>
>Near line 12 of /usr/share/axis/images/axis.ngc:
>Bad character 'z' used

If I click 'OK' linuxcnc loads but the initial X & Y show as 4.23e+289
and 2.95e+240 and axis.ngc is not showing in the display.

I then tried 2.7.5 and get the same thing.  Downgrade to 2.7.4 and
everything's back to normal.

axis.ngc sums as 16239 (same as my backups) so I don't think it's that.

A possible contributor to the problem is that I tried installing
NativeCAM but ran into problems as I already use gladevcp for a probe
screen (I'll go back to that once 2.7.7 is working).  I ran "setup.py c"
clear NativeCAM for now.

Any ideas?



(my .ini is here http://ruffle.me.uk/Mesa_Mill.ini.expanded)

linuxcnc prints

>russell@cnc:~$ linuxcnc
>/home/russell/linuxcnc/configs/Mesa_Mill/Mesa_Mill.ini
>LINUXCNC - 2.7.7
>Machine configuration directory is
>'/home/russell/linuxcnc/configs/Mesa_Mill'
>Machine configuration file is 'Mesa_Mill.ini.expanded'
>Starting LinuxCNC...
>Found file(REL): ./Mesa_Mill.hal
>Found file(REL): ./custom.hal
>INFO CLASSICLADDER-   No ladder GUI requested-Realtime runs till HAL
>closes.
>Found file(lib): /usr/share/linuxcnc/hallib/xhc-hb04.tcl
>xhc-hb04: waiting for XHC-HB04 device
>xhc-hb04: found XHC-HB04 device
>xhc-hb04.tcl: using std_start_pause_button
>APP: xhc-hb04-accels found: 
>APP: monitor-xhc-hb04 found: 

then pops the G-Code error box, click OK and it continues

>Waiting for component 'gladevcp' to become
>ready.../usr/bin/gladevcp:185: GtkWarning: GtkSpinButton: setting an
>adjustment with non-zero page size is deprecated
>  builder.add_from_file(xmlname)
>    probe_screen GETINIINFO  
>   Preference file path:
>   /home/russell/linuxcnc/configs/Mesa_Mill/Mesa_Mill.pref
>   .Xlib.protocol.request.QueryExtension
>   Xlib.protocol.request.QueryExtension
>
>   /usr/bin/gladevcp:295: GtkWarning: gtk_widget_size_allocate():
>   attempt to allocate widget with width -5 and height 19
> gtk.main()

Not sure about those Gtk warnings... they might have been around forever
as I normally fire up LinuxCNC from an icon.

-- 
 Regards,
 Russell
 
| Russell Brown  | MAIL: russ...@lls.com PHONE: 01780 471800 |
| Lady Lodge Systems | WWW Work: http://www.lls.com  |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk |
 

--
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