component compile problem

More
8 years 6 months ago #109431 by Skidloaders1
Thanks Andy

Unfortunatly
github.com/LinuxCNC/linuxcnc/blob/master...onents/carousel.comp

=> This webpage is not available

Even if i could have downloaded it, not sure where to insert it :(
but we want give up

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

More
8 years 6 months ago #109442 by andypugh
Replied by andypugh on topic component compile problem
Odd, the link works for me.
But I have attached the file.
Code:
sudo halcpmpile --install carousel.comp
Should install the new version on your system.

(But you will need to figure out your halcompile problems first)

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

More
8 years 6 months ago #109493 by Skidloaders1
Tx Andy Link is working now. Halcompile is still not.

must the .comp file be compiled from a specific folder ?

rgds Wilfried

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

More
8 years 6 months ago #109500 by andypugh
Replied by andypugh on topic component compile problem
No, halcompile can be run from anywhere. But the comp file must be in the path from where the command is run.

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

More
8 years 6 months ago #109502 by andypugh
Replied by andypugh on topic component compile problem
Code:
a, b = f.split("\n;;\n", 1) ValueError: need more than 1 value to unpack

Seems to show that Halcompile is running, but is not able to split the .comp file into two parts at the ";;" token.

Is it possible that something in your toolchain is inserting DOS or Mac style line endings? it is looking for the character sequence "\n;;\n" which is 0A 3B 3B 0A and (for some reason) is not finding it.
docs.python.org/3/library/stdtypes.html#str.split

It could, possibly, be a localisation issue. Perhaps your system is using . as an item separator and , as a decimal separator? Though this would probably give a different error.

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

More
8 years 6 months ago #109796 by Skidloaders1
Thanks Andy for your great "carousel" script.

Only managed to compile some files so far.

HAL component generator examples working =
atanxy.comp - ddt - arraydemo - rand
also
oracchanger.comp from ArcEye
triacchanger.comp from ArcEye

HAL component generator examples NOT working with the usuall errors
out8.comp constant.comp
many others of various sources.

I took working files as an examples - copied and pasted all sort of lines to the ones not working.
rewrote portions etc.. on 3 different machines of mine

still have no clue what's going on

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

Time to create page: 0.470 seconds
Powered by Kunena Forum