attempted pyVCP panel and now Error on startup

  • Beezerlm
  • Beezerlm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
27 Jun 2017 18:10 - 27 Jun 2017 18:36 #95065 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:
<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:

File Attachment:

File Name: EMC2_Error.txt
File Size:4 KB


*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.
Attachments:
Last edit: 27 Jun 2017 18:36 by Beezerlm.

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

  • Beezerlm
  • Beezerlm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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:
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.

  • Beezerlm
  • Beezerlm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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.

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

  • Beezerlm
  • Beezerlm's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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.079 seconds
Powered by Kunena Forum