cedadev / extra-sci-packages

A set of RPM packages to supplement Jaspy to provide an scientific analysis environment for CentOS7
1 stars 0 forks source link

"diffuse" script needs explicit python version #8

Closed alaniwi closed 3 years ago

alaniwi commented 3 years ago

diffuse is breaking when Jaspy for Python 3 is loaded.

Gives the following:

  File "/opt/rh/jasmin-sci/root/usr/bin/diffuse", line 74
    print codecs.encode(unicode(s, 'utf_8'), sys.getfilesystemencoding())
               ^
SyntaxError: invalid syntax

Need to change the

#!/usr/bin/env python

to

#!/usr/bin/env python2.7
alaniwi commented 3 years ago

Did check if a later source version was available but latest (at http://diffuse.sourceforge.net/download.html) is still 0.4.8, so made this change as described above. Now ready to deploy.