- Posts: 60
- Thank you received: 0
Vanilla dev installation fails at 'yapps'
8 years 8 months ago #106081
by GaryLa
Vanilla dev installation fails at 'yapps' was created 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
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.
8 years 8 months ago #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
You might try the IRC - Jeff Eppler would be the guy to ask.
Chris M
Please Log in to join the conversation.
8 years 8 months ago #106131
by dgarrett
Replied by dgarrett on topic Vanilla dev installation fails at 'yapps'
recent commits to the master branch:
github.com/LinuxCNC/linuxcnc/commit/fc6e...d21e2182a0bc4cfc8748
github.com/LinuxCNC/linuxcnc/commit/b37e...433ad53fbfa1abfa2c69
github.com/LinuxCNC/linuxcnc/commit/be22...ed380e67a76a8a9f619f
So, install yapps2 with synaptic or from command line:
github.com/LinuxCNC/linuxcnc/commit/fc6e...d21e2182a0bc4cfc8748
github.com/LinuxCNC/linuxcnc/commit/b37e...433ad53fbfa1abfa2c69
github.com/LinuxCNC/linuxcnc/commit/be22...ed380e67a76a8a9f619f
So, install yapps2 with synaptic or from command line:
Code:
sudo apt-get install yapps2
Please Log in to join the conversation.
8 years 8 months ago #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 to join the conversation.
8 years 8 months ago #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 to join the conversation.
8 years 8 months ago #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
The 'which' command will show (or not) if you have an executable
named yapps (a proper link will work too)
'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.
8 years 8 months ago #106513
by allistar
Replied by allistar on topic Vanilla dev installation fails at 'yapps'
On my platform it's called "yapps2":
which is a symlink:
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:
This is an error when parsing halcompile.py, not when running it. My python version is:
Any ideas on how to correct the syntax of the offending piece of code?
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.
8 years 8 months ago #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:
Code:
from __future__ import print_function
Please Log in to join the conversation.
5 years 10 months ago #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'
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
