Vanilla dev installation fails at 'yapps'

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 or Create an account to join the conversation.

More
8 years 8 months ago - 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
Last edit: 8 years 8 months ago by allistar.

Please Log in or Create an account 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 or Create an account to join the conversation.

Time to create page: 0.135 seconds
Powered by Kunena Forum