Diaoul / nautilus-subliminal

Subliminal integration within Nautilus file manager
MIT License
34 stars 10 forks source link

Installation fails with wget and curl, installing manually does not work either #13

Open jjnilton opened 7 years ago

jjnilton commented 7 years ago

I tried to install with wget and curl but it did not work. Manually it seems that the install worked normally but no option was showed of subliminal. I'm on Ubuntu GNOME 16.04 64-bit.

Trying to install with wget:

$ wget https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh -O - | sudo sh
--2017-02-28 19:02:42--  https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.56.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.56.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2457 (2,4K) [text/plain]
Saving to: ‘STDOUT’

-                   100%[===================>]   2,40K  --.-KB/s    in 0s      

2017-02-28 19:02:42 (92,9 MB/s) - written to stdout [2457/2457]

Installing necessary packages...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
git is already the newest version (1:2.7.4-0ubuntu1).
python-nautilus is already the newest version (1.1-4).
python-pip is already the newest version (8.1.1-2ubuntu0.4).
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-headers-4.4.0-57
  linux-headers-4.4.0-57-generic linux-headers-4.4.0-62
  linux-headers-4.4.0-62-generic linux-image-4.4.0-31-generic
  linux-image-4.4.0-57-generic linux-image-4.4.0-62-generic
  linux-image-extra-4.4.0-31-generic linux-image-extra-4.4.0-57-generic
  linux-image-extra-4.4.0-62-generic ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 133 not upgraded.
Cloning subliminal-nautilus...
Cloning into '/tmp/tmp.x8FFTNybBB'...
remote: Counting objects: 23, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 23 (delta 8), reused 16 (delta 6), pack-reused 0
Unpacking objects: 100% (23/23), done.
Checking connectivity... done.
sh: 46: pushd: not found

Trying to install with curl:

$ curl -fsSL https://raw.githubusercontent.com/Diaoul/nautilus-subliminal/master/install.sh -O - | sudo sh
[sudo] password for jj: curl: option -: is unknown
curl: try 'curl --help' or 'curl --manual' for more information

Manually:

$ sudo -H bash install.sh 
Installing necessary packages...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
git is already the newest version (1:2.7.4-0ubuntu1).
python-nautilus is already the newest version (1.1-4).
python-pip is already the newest version (8.1.1-2ubuntu0.4).
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-headers-4.4.0-57
  linux-headers-4.4.0-57-generic linux-headers-4.4.0-62
  linux-headers-4.4.0-62-generic linux-image-4.4.0-31-generic
  linux-image-4.4.0-57-generic linux-image-4.4.0-62-generic
  linux-image-extra-4.4.0-31-generic linux-image-extra-4.4.0-57-generic
  linux-image-extra-4.4.0-62-generic ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 133 not upgraded.
Installing python requirements...
Requirement already up-to-date: subliminal>=2.0 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 1))
Requirement already up-to-date: appdirs>=1.3 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: click>=4.0 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: rarfile>=2.7 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: stevedore>=1.0.0 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: beautifulsoup4>=4.4.0 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: enzyme>=0.4.1 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: chardet>=2.3.0 in /usr/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: babelfish>=0.5.2 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: pysrt>=1.0.1 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: pytz>=2012c in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: requests>=2.0 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: futures>=3.0 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: six>=1.9.0 in /usr/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: guessit>=2.0.1 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: dogpile.cache>=0.6.0 in /usr/local/lib/python2.7/dist-packages (from subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: pbr>=1.8 in /usr/local/lib/python2.7/dist-packages (from stevedore>=1.0.0->subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: rebulk>=0.8.2 in /usr/local/lib/python2.7/dist-packages (from guessit>=2.0.1->subliminal>=2.0->-r requirements.txt (line 1))
Requirement already up-to-date: python-dateutil in /usr/local/lib/python2.7/dist-packages (from guessit>=2.0.1->subliminal>=2.0->-r requirements.txt (line 1))
Installing extension...

Subliminal extension for Nautilus is now installed!

Please visit https://github.com/Diaoul/nautilus-subliminal for any issue

The files seems to be created, though:

/usr/share/nautilus-python/extensions$ ls
nautilus-subliminal.py  subliminal
humachine commented 7 years ago

Facing exact same problem.

xlucn commented 6 years ago

The '-O -' part in curl command can just be deleted, cause curl will print the content by default.

And option used here is wrong, I think it should be '-o'.

For the command pushd, I did some searching. 'pushd' is a bash builtin, so some other shell may not have it. Maybe use some workaroud or tell the user to use a shell that has this builtin.