[SOLVED] Axis python posting issue

More
19 Nov 2010 16:59 - 23 Nov 2010 22:45 #5442 by Pentax
ok, so i've modded a bunch of py sripts for axis. axis opens them fine, and the python part runs fine, but when i click quit (or whatever widgit is used to close the py script) i get a blank py file in the tmp folder and axis complains about it?

surely i am not the first this has happend to.... easy fix?

thanks,
A
Attachments:
Last edit: 23 Nov 2010 22:45 by Pentax.

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

More
19 Nov 2010 23:44 #5455 by BigJohnT
Did you base your programs on the simple G-Code generators on the wiki site?

John

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

More
22 Nov 2010 16:29 #5539 by Pentax
Replied by Pentax on topic Re:Axis python posting issue
its those that give me this message.

at first, i thought it was a permissions error, but then there would be no file, not a blank file.

?

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

More
23 Nov 2010 19:11 #5571 by Pentax
Replied by Pentax on topic Re:Axis python posting issue
hmmmm. ok, so i tried to follow the python chain, to see exactly what its steps are.

my local bin directory had no python in it, even though i had python installed....

to save myself time and my eyesight, i'm just going to flash the lucid emc live image, and see if that puts things where they need to be...

A.

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

More
23 Nov 2010 21:24 #5575 by Pentax
Replied by Pentax on topic Re:Axis python posting issue
ok, well, that didn't solve anything.

i even tried the stock ini's and still, no avail. though, i must say that the stock ini doesn't have a python section

i guess i'll track down the passing off of the files in python until i see exactly where the problem is.

using the stock programs off of the basic gcode generators, and using the stock emc2 live setup, yeilds no results. still the same error.

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

More
23 Nov 2010 23:25 #5578 by Pentax
Replied by Pentax on topic Re:Axis python posting issue
well, John, your code works. Its just, most of the programs on:

wiki.linuxcnc.org/emcinfo.pl?Simple_EMC_G-Code_Generators

however, don't.

I took the facing code that you wrote, stole the address for python, (line 1), and changed the quit, write to axis command, and suddenly all my scripts worked just great with axis. (but shouldn't line 1 be irrelevant given the #?, i think its just the command that needed fixing for me)

as long as the subject is here, I must say that using python was a great idea. it can run on cell phones, any os, and is easy to write/distribute. I can use the programs i write for emc, to aid with me with other machines, just because of the output it can create.

thanks,
A

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

More
24 Nov 2010 10:28 #5584 by andypugh
Pentax wrote:

shouldn't line 1 be irrelevant given the #?


The #! sequence at the beginning of a file is a cue to Linux that the file is an executable script, and that what follows is the path to the interpreter or whatever that knows how to deal with it.

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

More
24 Nov 2010 17:43 #5590 by Pentax
Replied by Pentax on topic Re:Axis python posting issue
oh, well there it is. thanks for the info. that clears things up a bit more....

A.

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

Time to create page: 0.266 seconds
Powered by Kunena Forum