Vanilla dev installation fails at 'yapps'

More
17 Feb 2018 18:41 #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 or Create an account to join the conversation.

More
17 Feb 2018 18:56 #106086 by cmorley
Replied by cmorley on topic Vanilla dev installation fails at 'yapps'
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 or Create an account to join the conversation.

More
18 Feb 2018 13:46 #106131 by dgarrett
The following user(s) said Thank You: Mike_Eitel, GaryLa

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

More
18 Feb 2018 14:04 #106133 by GaryLa
Replied by GaryLa on topic Vanilla dev installation fails at 'yapps'
Thanks. For whatever reason, my yapps was named yapps2. All working now.

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

More
25 Feb 2018 11:56 #106480 by allistar
Replied by allistar on topic Vanilla dev installation fails at 'yapps'
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 or Create an account to join the conversation.

More
25 Feb 2018 13:34 - 25 Feb 2018 13:36 #106489 by dgarrett
Replied by dgarrett on topic Vanilla dev installation fails at 'yapps'
The makefile requirement is that there is an executable named
'yapps' in the PATH
$ 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)
$ which yapps
/usr/bin/yapps

$ ls -lL $(which yapps)
-rwxr-xr-x 1 root root 4130 Nov  8  2016 /usr/bin/yapps
Last edit: 25 Feb 2018 13:36 by dgarrett.

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

More
25 Feb 2018 20:21 #106513 by allistar
Replied by allistar on topic Vanilla dev installation fails at 'yapps'
On my platform it's called "yapps2":
$ which yapps2
/usr/bin/yapps2

which is a symlink:
$ 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:
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:
python --version
Python 2.7.14

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

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

More
25 Feb 2018 20:30 - 25 Feb 2018 20:30 #106514 by allistar
Replied by allistar on topic Vanilla dev installation fails at 'yapps'
I fixed this by commenting out this line of code at the top of halcompile.py:
from __future__ import print_function
Last edit: 25 Feb 2018 20:30 by allistar.

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

More
23 Dec 2020 20:11 #193015 by frequency
Replied by frequency on topic Vanilla dev installation fails at 'yapps'
Hi!

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

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

Time to create page: 0.075 seconds
Powered by Kunena Forum