View Single Post
Old 06-08-2018, 12:54 PM   #1
willbontrager
Junior Member
willbontrager began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2018
Device: Various
Linux download "SyntaxError: invalid syntax"

My server is CentOS 6 - x86_64 (64-bit)

From the calibre-ebook.com/download_linux page, is this:

You can also do an "isolated" install that only touches files inside the installation directory and does not need to be run as root, like this:
wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin install_dir=~/calibre-bin isolated=y

When I connect with SSH through Mac OS Terminal, this is the response to the command:

______@bontragerconnection.com [~]# wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin install_dir=~/calibre-bin isolated=y
2018-06-08 11:34:48 URL:https://download.calibre-ebook.com/linux-installer.sh [30829/30829] -> "-" [1]
Using python executable: /usr/bin/python2
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 760
return x.lower() in {'y', 'yes', '1', 'true'}
^
SyntaxError: invalid syntax
______@bontragerconnection.com [~]#


How can I get past that?

Thank you!

Will
willbontrager is offline   Reply With Quote