issues with cio dio24h board

More
17 Aug 2011 22:35 #12557 by patburden
Replied by patburden on topic Re:issues with cio dio24h board
yes I read it I tried the .comp but it acted like it could'nt find it

mill-desktop:~$ sudo comp --install pcl720.comp
[sudo] password for mill:
Traceback (most recent call last):
File "/usr/bin/comp", line 1297, in <module>
main()
File "/usr/bin/comp", line 1266, in main
process(f, mode, outfile)
File "/usr/bin/comp", line 1140, in process
a, b = parse(filename)
File "/usr/bin/comp", line 386, in parse
f = open(filename).read()
IOError: [Errno 2] No such file or directory: 'pcl720.comp'

it kinda ran "home to momma" and read a file called comp
so I tried the .c and got what you see above

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

More
17 Aug 2011 22:39 - 17 Aug 2011 22:40 #12558 by btvpimill
Replied by btvpimill on topic Re:issues with cio dio24h board
I find it easiest to run the install command from the directory where the comp file is. Have you tried that? Or I guess include the entire path with the filename
Last edit: 17 Aug 2011 22:40 by btvpimill.

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

More
17 Aug 2011 22:44 #12559 by BigJohnT
Replied by BigJohnT on topic Re:issues with cio dio24h board
Does your file follow the format for comp as outlined in the manual?

John

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

More
17 Aug 2011 22:48 #12560 by patburden
Replied by patburden on topic Re:issues with cio dio24h board
btvpimill wrote:

I find it easiest to run the install command from the directory where the comp file is. Have you tried that? Or I guess include the entire path with the filename



ok tried this and got something different

mill-desktop:~$ sudo comp --install /usr/bin/pcl720.comp
Traceback (most recent call last):
File "/usr/bin/comp", line 1297, in <module>
main()
File "/usr/bin/comp", line 1266, in main
process(f, mode, outfile)
File "/usr/bin/comp", line 1140, in process
a, b = parse(filename)
File "/usr/bin/comp", line 387, in parse
a, b = f.split("\n;;\n", 1)
ValueError: need more than 1 value to unpack

I think it is still reading the same file

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

More
17 Aug 2011 22:51 #12561 by btvpimill
Replied by btvpimill on topic Re:issues with cio dio24h board
Sorry Pat, I now become an observer. my bag of knowledge is all used up - Not too big a bag really.

@John, I think he is using the file Andy posted for him.

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

More
17 Aug 2011 22:56 #12562 by BigJohnT
Replied by BigJohnT on topic Re:issues with cio dio24h board
Your comp file should not be in the upper directories but rather in your home directory or below so super user rights are not needed... Comp will install the successful file in the proper place...

John

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

More
17 Aug 2011 23:02 - 17 Aug 2011 23:08 #12563 by patburden
Replied by patburden on topic Re:issues with cio dio24h board
btvpimill wrote:

Sorry Pat, I now become an observer. my bag of knowledge is all used up


Thanks anyway this is a real learning experience for me.
THANKS

I think I better spend a few hours learning basic linux commands
Last edit: 17 Aug 2011 23:08 by BigJohnT. Reason: fix quote

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

More
17 Aug 2011 23:04 #12564 by BigJohnT
Replied by BigJohnT on topic Re:issues with cio dio24h board
Can you copy one of the example comps from the manual to a directory and get that to compile?

www.linuxcnc.org/docview/html/hal_comp.html

John

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

More
17 Aug 2011 23:14 - 17 Aug 2011 23:15 #12565 by andypugh
Replied by andypugh on topic Re:issues with cio dio24h board
I wonder if it is funky line-endings from the forum?

I have attached the current version of the driver (which I pushed to the main branch a few days ago, so I hope it works)

File Attachment:

File Name: pcl720-b84...e3b.comp
File Size:4 KB
Attachments:
Last edit: 17 Aug 2011 23:15 by andypugh.

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

More
17 Aug 2011 23:16 #12566 by patburden
Replied by patburden on topic Re:issues with cio dio24h board
BigJohnT wrote:

Can you copy one of the example comps from the manual to a directory and get that to compile?

www.linuxcnc.org/docview/html/hal_comp.html

John


I will read thru all this and give it a try
I read in another thread that I should add it to my Hal file
I haven't quite figured that out yet but I am still reading and making progress
Thanks for the help.

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

Moderators: PCWjmelson
Time to create page: 0.088 seconds
Powered by Kunena Forum