Vanilla dev installation fails at 'yapps'

More
8 years 8 months ago #106081 by GaryLa
When using make, I get plenty of normal compiler and linker output, followed by:

Compiling hal/user_comps/xhc-hb04.cc
Linking xhc-hb04
make: yapps: Command not found
make: *** [objects/hal/utils/halcompile.py] Error 127

Does anyone know what this is? I have yapps installed, and I cannot find yapps referenced in the makefile or the makefile.inc

Please Log in to join the conversation.

More
8 years 8 months ago #106086 by cmorley
I know there was recent changes regarding yapps.
You might try the IRC - Jeff Eppler would be the guy to ask.

Chris M

Please Log in to join the conversation.

More
8 years 8 months ago #106131 by dgarrett

Please Log in to join the conversation.

More
8 years 8 months ago #106133 by GaryLa
Thanks. For whatever reason, my yapps was named yapps2. All working now.

Please Log in to join the conversation.

More
8 years 8 months ago #106480 by allistar
I'm using Gentoo with a RT kernel and it's failing to make linuxcnc at the same place. I have yapps2 installed but that is called yapps2, not yapps2. I have tried symlinking yapps2 to yapps, copying it with the new name yet the make still fails. How did you workaround the yapps vs yapps2 name difference?

Please Log in to join the conversation.

More
8 years 8 months ago #106489 by dgarrett
The makefile requirement is that there is an executable named
'yapps' in the PATH
Code:
$ find src -type f -iname '*akefile*' -exec grep -H yapp {} \; src/hal/utils/Submakefile: $(Q)yapps $< $@


The 'which' command will show (or not) if you have an executable
named yapps (a proper link will work too)
Code:
$ which yapps /usr/bin/yapps $ ls -lL $(which yapps) -rwxr-xr-x 1 root root 4130 Nov 8 2016 /usr/bin/yapps

Please Log in to join the conversation.

More
8 years 8 months ago #106513 by allistar
On my platform it's called "yapps2":
Code:
$ which yapps2 /usr/bin/yapps2

which is a symlink:
Code:
$ ls -la /usr/bin/yapps2 lrwxrwxrwx 1 root root 31 Feb 25 23:58 /usr/bin/yapps2 -> ../lib/python-exec/python-exec2

I have tried symlinking a "yapps" to "yapps" but that doesn't work. I have symlinked "yapps" to ../lib/python-exec/python-exec2 and copied /usr/lib/python-exec/python2.7/yapps2 to /usr/lib/python-exec/python2.7/yapps. Now I can run yapps from the command line (it gives the same error about no input as yapps2).
Make now has this at the end:
Code:
Syntax checking python script halcompile Traceback (most recent call last): File "<string>", line 1, in <module> File "objects/hal/utils/halcompile.py", line 1307 """ % {'name': os.path.basename(sys.argv[0])} ^ SyntaxError: invalid syntax make: *** [hal/utils/Submakefile:89: ../bin/halcompile] Error 1

This is an error when parsing halcompile.py, not when running it. My python version is:
Code:
python --version Python 2.7.14

Any ideas on how to correct the syntax of the offending piece of code?

Please Log in to join the conversation.

More
8 years 8 months ago #106514 by allistar
I fixed this by commenting out this line of code at the top of halcompile.py:
Code:
from __future__ import print_function

Please Log in to join the conversation.

More
5 years 10 months ago #193015 by frequency
Hi!

I fixed this with:
$ pip install 'git+https://github.com/mk-fg/yapps.git#egg=yapps'

Please Log in to join the conversation.

Time to create page: 0.558 seconds
Powered by Kunena Forum