Python Version On AXIS
- grokhehe
- Topic Author
- Visitor
23 Jan 2012 04:11 #17033
by grokhehe
Python Version On AXIS was created by grokhehe
Hi,
I'm using Linux 10.04 LTS that I've downloaded from this site
Can I know which Python version used in AXIS?
Because I using library such as import xml.etree.ElementTree.SubElement and it can't work because it was implemented in Python 2.7
Can I change the Python version ?
How ?
Thanks
I'm using Linux 10.04 LTS that I've downloaded from this site
Can I know which Python version used in AXIS?
Because I using library such as import xml.etree.ElementTree.SubElement and it can't work because it was implemented in Python 2.7
Can I change the Python version ?
How ?
Thanks
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7106
- Thank you received: 1177
23 Jan 2012 11:34 #17039
by BigJohnT
Replied by BigJohnT on topic Re:Python Version On AXIS
Well you just open a terminal and say
python --version
to see the current version. In my case it is 2.6.5. I don't know if 2.7 is supported by Ubuntu 10.04 but you might check on the Ubuntu web site.
John
python --version
to see the current version. In my case it is 2.6.5. I don't know if 2.7 is supported by Ubuntu 10.04 but you might check on the Ubuntu web site.
John
Please Log in or Create an account to join the conversation.
- swtswt
- Visitor
23 Jan 2012 13:36 #17045
by swtswt
Replied by swtswt on topic Re:Python Version On AXIS
Hi,
I've already change the Python version to 2.7.2
I also have a file Test.py
When in Terminal, I write this"python Test.py" and it run well
But when I place a button pyvcp on the right side of AXIS and call M101 that has a code Test.py, the code can't run..
Do you know the cause?
Thanks
I've already change the Python version to 2.7.2
I also have a file Test.py
When in Terminal, I write this"python Test.py" and it run well
But when I place a button pyvcp on the right side of AXIS and call M101 that has a code Test.py, the code can't run..
Do you know the cause?
Thanks
Please Log in or Create an account to join the conversation.
- swtswt
- Visitor
23 Jan 2012 13:37 #17046
by swtswt
Replied by swtswt on topic Re:Python Version On AXIS
Btw, why I can't login with same account ?
I've already registered "grokhehe" 2x because when I want to login as "grokhehe" it always says wrong username / password
Thanks
I've already registered "grokhehe" 2x because when I want to login as "grokhehe" it always says wrong username / password
Thanks
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7106
- Thank you received: 1177
23 Jan 2012 14:04 #17049
by BigJohnT
Replied by BigJohnT on topic Re:Python Version On AXIS
When you register with the same first and last name you appear to be a spammer and that registration is rejected. Your user name can be almost anything but you must register with your real first and last name.
John
John
Please Log in or Create an account to join the conversation.
- grokhehe
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
23 Jan 2012 14:42 #17052
by grokhehe
Replied by grokhehe on topic Re:Python Version On AXIS
Hi BigJohnT,
I've already using my real name..
Please don't block my IP...
Now I have a problem with ngcgui, could you please help me?
Because I can't run that..
I've downloaded and extract..
I write on Terminal like this : "emc ngcgui.ini"
But it show error like this :
Machine configuration file is 'ngcgui.ini'
Starting EMC2...
Could not open command file 'core_sim.hal'
Shutting down and cleaning up EMC2...
Cleanup done
EMC terminated with an error. You can find more information in the log:
/root/emc_debug.txt
and
/root/emc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
Thanks
I've already using my real name..
Please don't block my IP...
Now I have a problem with ngcgui, could you please help me?
Because I can't run that..
I've downloaded and extract..
I write on Terminal like this : "emc ngcgui.ini"
But it show error like this :
Machine configuration file is 'ngcgui.ini'
Starting EMC2...
Could not open command file 'core_sim.hal'
Shutting down and cleaning up EMC2...
Cleanup done
EMC terminated with an error. You can find more information in the log:
/root/emc_debug.txt
and
/root/emc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
Thanks
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7106
- Thank you received: 1177
23 Jan 2012 14:47 #17053
by BigJohnT
Replied by BigJohnT on topic Re:Python Version On AXIS
Ok, I've unblocked your IP address.
Have you followed the instructions in the Subroutines sections on getting and installing ngcgui?
linuxcnc.org/index.php/english/component...unc=showcat&catid=40
John
Have you followed the instructions in the Subroutines sections on getting and installing ngcgui?
linuxcnc.org/index.php/english/component...unc=showcat&catid=40
John
Please Log in or Create an account to join the conversation.
- grokhehe
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
23 Jan 2012 15:01 #17054
by grokhehe
Replied by grokhehe on topic Re:Python Version On AXIS
Yes, I've already followed the instructions but
tkapp.py (2.4 only) => Can't find this file on zipped file
ngcgui_app.tcl => Can't find this file on zipped file
ngcgui.tcl
ngcgui_ttt.tcl
I'm using EMC 2.4.3
And another question, Can i clear the preview frame with M Code?
Thanks..
tkapp.py (2.4 only) => Can't find this file on zipped file
ngcgui_app.tcl => Can't find this file on zipped file
ngcgui.tcl
ngcgui_ttt.tcl
I'm using EMC 2.4.3
And another question, Can i clear the preview frame with M Code?
Thanks..
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 761
23 Jan 2012 16:09 #17056
by ArcEye
Yes
Write a user M code script which calls axis-remote -c
regards
Replied by ArcEye on topic Re:Python Version On AXIS
And another question, Can i clear the preview frame with M Code?
Yes
Write a user M code script which calls axis-remote -c
regards
Please Log in or Create an account to join the conversation.
- grokhehe
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
23 Jan 2012 16:29 #17057
by grokhehe
Replied by grokhehe on topic Re:Python Version On AXIS
Thanks for the reply, actually i want to do like this :
1. Clear the AXIS preview frame
2. Run my G-Code because if i'm not clear the AXIS preview frame it'll be write on previous picture on that frame
Could you please show me sample code to do that?
And please provide me with simple G-Code like drawing line after clear the AXIS preview frame
Thanks
1. Clear the AXIS preview frame
2. Run my G-Code because if i'm not clear the AXIS preview frame it'll be write on previous picture on that frame
Could you please show me sample code to do that?
And please provide me with simple G-Code like drawing line after clear the AXIS preview frame
Thanks
Please Log in or Create an account to join the conversation.
Time to create page: 0.073 seconds