attempted pyVCP panel and now Error on startup
27 Jun 2017 18:10 - 27 Jun 2017 18:36 #95065
by Beezerlm
attempted pyVCP panel and now Error on startup was created by Beezerlm
I just tried the "This is a LED indicator" example from the pyVCP manual and it seems I broke something.
Created a file called tiny.xml wich contained the following:
Then I ran this command from terminal:
here is the output from terminal:
And now I get an error when I boot and I don't know where to go from here. Any help would be appreciated. File attached:
*update* - LinuxCNC will start on second attempt. Perhaps the tiny.xml file should be in a different folder? I put it in the ~Emc2/configs/HEALD folder.
Created a file called tiny.xml wich contained the following:
<pyvcp>
<label text="This is a LED indicator"/>
<led/>
</pyvcp>
Then I ran this command from terminal:
halrun -I loadusr pyvcp -c mypanel tiny.xml
here is the output from terminal:
halcmd: Traceback (most recent call last):
File "/usr/bin/pyvcp", line 99, in <module>
main()
File "/usr/bin/pyvcp", line 87, in main
pycomp=vcpparse.create_vcp(compname=component_name, master=pyvcp0)
File "debian/tmp/usr/lib/python2.6/dist-packages/vcpparse.py", line 177, in create_vcp
File "debian/tmp/usr/lib/python2.6/dist-packages/vcpparse.py", line 47, in read_file
File "/usr/lib/python2.6/xml/dom/minidom.py", line 1918, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 922, in parse
fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory: 'tiny.xml'
And now I get an error when I boot and I don't know where to go from here. Any help would be appreciated. File attached:
*update* - LinuxCNC will start on second attempt. Perhaps the tiny.xml file should be in a different folder? I put it in the ~Emc2/configs/HEALD folder.
Last edit: 27 Jun 2017 18:36 by Beezerlm.
Please Log in or Create an account to join the conversation.
27 Jun 2017 18:51 - 27 Jun 2017 18:53 #95068
by Beezerlm
Replied by Beezerlm on topic attempted pyVCP panel and now Error on startup
Ok. so I added this to the .ini file:
And the AXIS GUI will load with the led indicator in the top right corner (I didn't hook up hal pins yet)
My questions are: What do the error messages mean? Do you have to run the "halrun -I loadusr pyvcp -c mypanel tiny.xml" command if you are making a panel to run within AXIS?
PYVCP = tiny.xml
And the AXIS GUI will load with the led indicator in the top right corner (I didn't hook up hal pins yet)
My questions are: What do the error messages mean? Do you have to run the "halrun -I loadusr pyvcp -c mypanel tiny.xml" command if you are making a panel to run within AXIS?
Last edit: 27 Jun 2017 18:53 by Beezerlm.
Please Log in or Create an account to join the conversation.
27 Jun 2017 19:07 - 27 Jun 2017 19:08 #95069
by Beezerlm
Replied by Beezerlm on topic attempted pyVCP panel and now Error on startup
Just tested it out and it appears you do not need the aforementioned Terminal command for creating a panel within AXIS.
Last edit: 27 Jun 2017 19:08 by Beezerlm.
Please Log in or Create an account to join the conversation.
27 Jun 2017 21:52 #95076
by andypugh
Replied by andypugh on topic attempted pyVCP panel and now Error on startup
Are you OK now. or are there still problems?
Please Log in or Create an account to join the conversation.
28 Jun 2017 02:36 #95091
by Beezerlm
Replied by Beezerlm on topic attempted pyVCP panel and now Error on startup
All is good and working as intended. I thought I made a mess of things when I got the error messages, but everything ended up working out fine.
Please Log in or Create an account to join the conversation.
Time to create page: 0.087 seconds