Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Easy Install) Subliminal Not Working #1028

Closed
Tobyyyy opened this issue May 31, 2014 · 46 comments
Closed

(Easy Install) Subliminal Not Working #1028

Tobyyyy opened this issue May 31, 2014 · 46 comments

Comments

@Tobyyyy
Copy link

Tobyyyy commented May 31, 2014

First i would like to say thank you very much i have waited with great anticipation for the packages to be up on easy install and i hope this is the right place to post this.

I have installed python and subliminal from synocommunity repo and rebooted but subliminal is not downloading any subtitles. Nothing happens after the specified time or when i click "Scan" manually and i have several files that is not 7 days old.

Im on a DS214Play and the settings are as shown below:
pic1
pic2

I tried adding a directory directly to where episodes are stored (the boardwalk empire), if it was a problem of depth, but that was not the case either.

@ddanielczyk
Copy link

I use mr_orange sickbeard - and it failed to download polish subtitles for about 50% of episodes. I installed separately subliminal package and it didn't change anything. I know those subtitles are on OpenSubtitles.org, because when I use desktop app to find subtitles it works fine.

Any way we could improve it ? Or at least debug ? Is in synocommunity latest 0.7.3 version of subliminal or it uses older version ??

@Tobyyyy
Copy link
Author

Tobyyyy commented May 31, 2014

It is version 0.6.4-10 of subliminal which is available for me on the synocommunity repo.

@ThomasHoussin
Copy link

Not working for me, problem seems to be with guessit.

Error in log :
06/01/2014 12:30:00:INFO:root:Running scan
06/01/2014 12:30:01:WARNING:guessit:Invalid infotype: autodetect
06/01/2014 12:30:01:CRITICAL:root:Scan failed: 'type'

@cboudard
Copy link

cboudard commented Jun 1, 2014

Same for me. Since I have update to the latest version 0.6.4-10, it does not work anymore. I have got the same error log as ThomasHoussin.
06/01/2014 12:30:00:INFO:root:Running scan
06/01/2014 12:30:01:WARNING:guessit:Invalid infotype: autodetect
06/01/2014 12:30:01:CRITICAL:root:Scan failed: 'type'
It seems to be related to the latest version as everything was working perfectly for me until 5/30/2014 (the day I did the update).

@cboudard
Copy link

cboudard commented Jun 1, 2014

Also it there any plan to move the syno package to the subliminal v 0.7.x available since last year? Or maybe the v 0.8.x that is announced?
This product is so GREAT! Thanks again for making it works so simply on Synology.

@Diaoul
Copy link
Member

Diaoul commented Jun 1, 2014

I can't be everywhere so I'm focusing on SynoCommunity right now, subliminal is still a high priority for me so I'll work on 0.8.x soon(ish).
That version of subliminal needs an older version of guessit in order to work.

@cboudard
Copy link

cboudard commented Jun 2, 2014

Thanks Diaoul for your feedback. I certainly understand your situation and appreciate your effort to deliver those great tools to the community. Subliminal v0.8 can certainly wait. But still strange that v0.6.4-10 does not work anymore since the upgrade from SynoCommunity.

@Diaoul
Copy link
Member

Diaoul commented Jun 2, 2014

The upgrade @Dr-Bean made pulled latest version of guessit (a module used by subliminal to guess information from filenames) which unfortunately is not compatible with that version of subliminal.
I need to fix the dependencies on subliminal to force guessit to a lower version. I hope that makes sense.

I'll do it when I get a chance.

@cboudard
Copy link

cboudard commented Jun 2, 2014

Got it! Thanks again.

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Jun 3, 2014

I do have 0.6.4-10 spk in an older archive, and it would seem it works. So, perhaps we can replace the current package on the repo, @Diaoul?

@rockisdead
Copy link

i solved it by manually degrading guessit from 0.7.1 to 0.7.0
i have ds213 with dsm 5.0 and recently installed subliminal 0.6.4-10 that was not working
now subliminal is functional
here is what i did:
first uninstall guessit with subliminals own pip :
/usr/local/subliminal/env/bin/pip uninstall guessit
then remove guessit directory and contents :
rm -rf /volume1/@appstore/subliminal/env/build/guessit
then install the 0.7.0 version :
/usr/local/subliminal/env/bin/pip install guessit==0.7.0
thats all
that worked for me both with ssh and gui

@Tobyyyy
Copy link
Author

Tobyyyy commented Jun 4, 2014

Thanks rockisdead, that got mine working aswell :)

@edco100
Copy link

edco100 commented Jun 4, 2014

Thank you @rockisdead worked for me as well!

@Tobyyyy
Copy link
Author

Tobyyyy commented Jun 4, 2014

@rockisdead @edco100 have any of you got the automatic task search working as well? For me it only seems to work when i manually press "Scan". I tried setting it to every hour and every five minutes, but nothing seems to be found and it does not notify me of anything in DSM notifications. (And i know there was one to be found, because i deleted a sub it had already found - which it found again when i manually pressed "Scan").

@edco100
Copy link

edco100 commented Jun 6, 2014

@Tobyyyy Surprisingly for me it's just the other way around: it only works when I set the time and it barely finds subtitles. Weird...

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Jun 7, 2014

Until @Diaoul has time to look things over, I replaced the current package on the repo with one that has the correct Guessit module (same 0.6.4-10 version though, no upgrades or anything)
This, at least, provides people with a package that works out of the box.

For what it's worth, @Tobyyyy and @edco100, I don't have issues with Subliminal. It takes some time for Subliminal to find subs, because it does a lot of stuff behind the scenes, but all the subs do come in.

@fabekoma
Copy link

fabekoma commented Jul 8, 2014

Thx @rockisdead, it worked well for me, thx very much

@jgaraizar
Copy link

hello everybody! I am a spanish guy who has the same problem with subliminal. I am hoping to solve the problem by making the same thing @rockisdead says, but I don't know how to do that. I have a little knowledge of computers and don't know how / where to follow those steps. Can anybody help me? @fabekoma? @edco100? Thx very much!!!

@cboudard
Copy link

@jgaraizar - No need to do anything else than reinstall from the community repository. Dr-Bean replaced the problematic package with one that works fine now. At least for me!

@jgaraizar
Copy link

@cboudard thank you for answering. I did that but after clicking on Scan nothing happens... :(. I have read the register and only says: "info: root: starting"

@cboudard
Copy link

@jgaraizar - OK sorry I did not properly understand your issue. The Scan button for immediate scanning never worked for me too. But I do not really car as the scheduled scan (by default at 2:30AM) is working fine. So I let Subliminal do its magic overnight! Then you can see all traces in the Log file.

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Sep 16, 2014

@jgaraizar @cboudard Indeed, the current package on the repo should work fine.

On the scan button topic: it doesn't log to scheduler.log (which you see with the Package Center view log). The root: starting entry in the log is the scheduler itself, so that's expected.
So, the scan button won't show results in a log, but it should run through the directories you specified. Test with only one videofile in a specified directory for instance.

@Diaoul
Copy link
Member

Diaoul commented Sep 16, 2014

That's a filename encoding issue, it should be fixed with latest DSM when its released

@jgaraizar
Copy link

@cboudard @Diaoul @Dr-Bean Thank you very much for your answers. What seem to happen now is that subliminal doesn't work well. I unistalled it and installed it again, but doesn't seem to work, with the scan button or with the automatical scan at night. Now I have received an email from synology saying they are releasing a beta version of a new DSM. Do you reccomend that I update to that version? Will that fix the problems? Thank you!!

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Oct 1, 2014

@jgaraizar Updating to a beta version always has its risks, and not just in combination with (our) packages. If you're not prepared for that (backup all the things!), I don't recommend updating.
Otherwise, go for it, let us know the results :)

@Diaoul
Copy link
Member

Diaoul commented Oct 1, 2014

Sorry I meant latest version of subliminal. DSM isn't the issue. The fact that you have filenames with bad encoding on your filesystem can be caused by a downloaded file that you unzip on your NAS (newsgroups, torrents, etc.).

@spoutniker
Copy link

I just did what rockisdead commented on Jun 3. It is now working when I hit scan button. I did not try automatic research for the moment.

@jgaraizar
Copy link

@spoutniker Great for you!! Can you tell me where in my DSM can I find the place to enter the route @rockisdead said on june 3rd? I know quite a little about computers and can't find where to do that in my DSM. Thank you!!

El Jueves 2 de octubre de 2014 2:14, spoutniker notifications@github.com escribió:

I just did what rockisdead commented on Jun 3. It is now working when I hit scan button. I did not try automatic research for the moment.

Reply to this email directly or view it on GitHub.

@spoutniker
Copy link

You need to connect to your NAS through SSH (terminal on OSX or putty on windows)

@jgaraizar
Copy link

Hello, thank you @spoutniker!! I followed th steps that @rockisdead said. I made that with the user "root" instead of "admin", because this one caused problems during the process. Once I finished them with the "root" user, I hit the scan button, but nothing happened. Then I waites until the task for the automatic search began, and found this message in the register:
Critical:root:scan failed: [errno 13] permission denied: '/volume1/series'

It seems a permissions problem. Where can I fix the permissions for subliminal? I never had this problem before....

El Lunes 6 de octubre de 2014 10:21, spoutniker notifications@github.com escribió:

You need to connect to your NAS through SSH (terminal on OSX or putty on windows)

Reply to this email directly or view it on GitHub.

@rockisdead
Copy link

please create a file and name it sub.sh in your computer.
then copy and paste these in that file. (Two lines only, first line is #!/bin/sh
rest is second line)

#!/bin/sh
/usr/local/subliminal/env/bin/subliminal -l tr -s opensubtitles --cache-dir=/volume1/@appstore/subliminal/cache -v /volume1/video/Sub-bin

(tr after -l is language turkish change it to yours,,, /volume1/video/Sub-bin after -v is the folder of videos for me, change it as your config.)
Ok. copy it in some folder of your NAS.
Then go to that folder with ssh (root user)
first make the script usable with
chmod +x sub.sh
than activate the script with
./sub.sh

if it is working like that, subliminal has a gui problem.
it is not working then subliminal is the problem.
i use this script with scriptkitty app in my android phone and it works like a charm.

@Tbright67
Copy link

Hi all,

I am having the same problem jgaraizar is having. I get a "permission denied" error when accessing the folder.
I have no experience whatsoever with SSH so, if possible, any approach that does not involve command lines would be greatly appreciated.....

Thanks
TB

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Oct 9, 2014

Check if the group users has permission to access the directory you want Subliminal to scan, that should solve the permission errors.

As @rockisdead indicated, running Subliminal via the command line will provide some insight into what is causing issues.

@Tbright67
Copy link

Thanks for the tip, I will try that. Is there any way to force subliminal to start?, it seems to run automatically at 2:30 but I have not been able to find how to change that.

Yes, I understand about the command line, I will probably try that at some time (hey, it can not be that different from MSDOS, but it is being a while since the last time I use that)

Thanks again, I will let you know if that worked

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Oct 9, 2014

@Tbright67 The subliminal package has a GUI to configure the subliminal task, including start time, so you can configure it to start when you want.

When that start time is reached, it starts a command very similar to the one mentioned above (looks like /usr/local/subliminal/env/bin/subliminal -l EN -s addic7ed -v --cache-dir /usr/local/subliminal/cache/ /volume1/video).

If you see permissions errors in the scheduler log, that most likely means that the subliminal user that executes the command cannot access the video folder, which you can solve by allowing the users group read and write access to that folder.
If you execute the command manually via CLI, you'll most likely be doing that as root, so you won't have those permission issues.

@Tbright67
Copy link

@Dr-Bean, I can not believe how silly I am, I noticed the time and hour in the GUI but I though they where referring to the maximum age (you know in days, hours and minutes. ..... unbelievable ;-)

Anyway, it seems that I have solved the permissions issue, I just give permissions to the user group (I basically only use the admin group).

So subliminal ran at the specified time but unfortunately I got a bunch of INFO and WARNING messages and one CRITICAL but not a single subtitle....

An example of what I am getting is:
INFO: enzyme.mp4:unhandled base atom ‘iods’
INFO: enzyme.mp4:parsing mdat
INFO:enzyme.mp4:end of mdat
INFO:guessit:Running 2nd pass
INFO: enzyme.mp4:parsing mdat
INFO: enzyme.mp4:unhandled base atom ‘libl’
INFO:enzyme.mp4:end of mdat
INFO: enzyme.mp4:unhandled base atom ‘iods’
WARNING:guessit.guess:duplicate properties [(u’HD’,u’HD’)] in merged results

Other WARNING Messages
WARNING:subliminal.language:Country None could not be identified

The CRITICAL message is
CRITICAL:root:Scan failed: “ascii” codec can’t decode byte 0xc3 in position 70: ordinal not in range (128)

What I am going to try is remove the character "ñ" from some of the filenames (movies in spanish) to see if that could be causing the problem.

If you have any other idea i could try it will be greatly appreciated.

Thanks a lot
TB

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Oct 10, 2014

That critical error would be the filename encoding issue Diaoul was talking about above: #1028 (comment). This version of subliminal has some issues with that.
As to why no subs were downloaded: Subliminal scans all files first, then it checks for subs on the chosen sites, and then it starts downloading subs. If the process stops during scanning, then naturally it won't download any subs.

@Tbright67
Copy link

Yes, I read Diaoul's comment but I do not really understand the meaning of "you have filenames with bad encoding", I though it was caused by the spanish "ñ" character that it is usually a pain but it does not seem to be the case.

What I am doing is running Subliminal one directory at a time to try to find what filenames are causing the problem and see if I can find a pattern I could use to avoid this problem in the future.

Thanks a lot for your support. I have the feeling that I am almost there!!!

TB

@Diaoul
Copy link
Member

Diaoul commented Oct 10, 2014

An encoding is a mapping that maps all character (for example ñ) to a binary format (for example 011011011101) let's say this encoding is named UTF-8.
When Python reads the filenames, it will read the binary format (011011011101 in our example) and we have to tell Python to use the UTF-8 encoding so Python knows 011011011101 means ñ.
In other encodings it could mean another character or nothing at all.

Subliminal tells python to use UTF-8 but sometimes your filename isn't encoded in UTF-8 and decoding it (the operation that does 011011011101 -> ñ (UTF-8)) fails because we encounter a character that isn't in the mapping UTF-8.

So how the hell do you end up with non UTF-8 encoded filenames in your filesystem? If you extract an archive that has filenames encoded with another encoding you will have filenames with another encoding. That's a possible cause.

Hope this clarifies

@Tbright67
Copy link

Diaoul, thanks for the clarification. I guess the problem is way more complex than what I had anticipated. I have checked and I have quite a number of files that generates the critical error with subliminal. Renaming the files does not seem to solve the problem (silly me!).

Do you know any simple way to recode the filenames (or at least know what encoding is used)?

Thanks

TB

@Tbright67
Copy link

First of all thank everybody for the help.
After removing the files with the encoding problem I got Subliminal working without further problems!!
It works perfectly with TV Series but I have not been very successful with movies (I have not tried a lot of them, maybe 10 or 15, but I have find not a single subtitle). Is Subliminal only for TV Series?
In any case it is a great app, I love it!!!.
Regards
TB

@Exellent1988
Copy link

i have a prob with subl. its not loading at all ( in dsm-webgui) it says loading ... and the app loading hover thingy... any ideas?

@robbaman
Copy link

robbaman commented Mar 8, 2015

I have a problem with the scheduler. After installing Subliminal on my Synology and pointing it to the download folder it will not automatically download items. When clicking the manual 'Scan' button it'll download whatever subs are missing, but when setting the task to run at a specific time nothing happens.

The log file only gets one line added:
MM/dd/yyyy hh:mm:ss:INFO:root:Running scan

And then nothing. Anyone have any ideas? Like I said, clicking the scan button manually does work.

@Dr-Bean
Copy link
Contributor

Dr-Bean commented Mar 16, 2015

The Subliminal package has been updated. I'll be closing this issue, because a lot of different things are discussed here. If you run into problems with the package, please open a new issue.

@Dr-Bean Dr-Bean closed this as completed Mar 16, 2015
@ghost
Copy link

ghost commented Apr 6, 2015

I have installed v0.6.4-10 for more than a year now. Never worked. Then I noticed this thread about people having the same issue and that there's a long awaited update. So I thought I would give it a try.

But the first thing I noticed is that on the main page https://synocommunity.com/packages
the latest version is listed as v0.6.4-10. But when you go to the details of the package https://synocommunity.com/package/subliminal it says v.0.7.5-11.
Synology Package Center also reports v0.6.4-10 as the latest??

Nonetheless I would give it a try and I uninstalled and reinstalled but it keeps installing v.0.6.4-10. I already had added the repo http://packages.synocommunity.com/ (amongst some others).
Also after my reinstall I can't start Subliminal anymore.

I am using DSM 5.1-5022-Update 4 and Python 2.7.9-13.

Update: I now noticed some other thread about #1582 and #1572
So I guess we just wait then... thanks for all efforts on this one. Hope to see it soon.

@rockisdead
Copy link

i installed subliminal 0.8.0-dev with python 2.7.9-13 . But it has no dsm gui. i run it with scripts.
installation is simple,
1-) download subliminal-master from https://github.com/Diaoul/subliminal
2-) download setuptools from https://pypi.python.org/packages/source/s/setuptools/setuptools-15.1.tar.gz#md5=10407f6737d8dc37e5310e68c1f1f6ec
3-) install python 2.7.9-13 from synocommunity
4-) Extract tar.gz file. In command line, you can type "tar xvf setuptools-15.1.tar.gz"
5-) In the setuptools folder, type "python setup.py install"
6-) extract subliminal-master.zip
7-) in the subliminal-master folder type "python setup.py install"
Subliminal is in /usr/bin/
my script as an example=
#!/bin/sh
/usr/bin/subliminal -l tr -s -p opensubtitles -c /volume1/pool/script/cache/a.txt -v /volume1/video/Sub-bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests