lclarkmichalek / archey3

Simple python script to print the Archlinux logo with basic system information.
http://bluepeppers.github.com/archey3
Other
62 stars 27 forks source link

Syntax Error #20

Closed tiemay closed 9 years ago

tiemay commented 10 years ago

After installing, I get this error trying to run it:

$ archey3
  File "/usr/bin/archey3", line 149
    self.arg1, self.arg2, self.arg3, *_ = tuple(args) + ('', '', '')
                                     ^
SyntaxError: invalid syntax
tiemay commented 10 years ago

I sort of figured it out, archey was being run with python2 rather then python3. I'm not sure how to fix this, but I worked around it by doing:

# Rename archey3 to archey_script
mv "${pkgdir}"/usr/bin/archey3 "${pkgdir}"/usr/bin/archey3_script

# Install bash script which launches archey_script via python3
install -Dm755 "${srcdir}"/archey3.sh "${pkgdir}"/usr/bin/archey3

# Create link to bash launcher so archey can be run via archey or archey3
ln -s "${pkgdir}"/usr/bin/archey3 "${pkgdir}"/usr/bin/archey

archey3.sh simply does python3 /usr/bin/archey3_script

tiemay commented 10 years ago

oh, but with this workaround I can't pass any options to archey, hmm....

lclarkmichalek commented 9 years ago

This is a packaging issue, and seeing as archey3 is in community (last time I checked), I'm closing with a healthy dose of "not my problem"