Diaoul / subliminal

Subtitles, faster than your thoughts
http://subliminal.readthedocs.org
MIT License
2.39k stars 311 forks source link

BierDopje isn't working #95

Closed Jeroenve closed 12 years ago

Jeroenve commented 12 years ago

I'm getting the following error:

WARNING: subliminal.core Service bierdopje not available: none of available features could be used. One of ['xml'] required

Command: /opt/local/bin/subliminal -m -l nl -l en -a 14 --cache-dir=/volume1/@appstore/.subliminal/cache

Diaoul commented 12 years ago

Beautifulsoup4 only supports lxml as xml parser so you should install python-lxml.

Diaoul commented 12 years ago

Alternatively, as you are on a Synology NAS, you can use my SPK distributed with SynoCommunity : http://www.synocommunity.com/

It is shipped with python-lxml and a nice UI.

Jeroenve commented 12 years ago

Is it also possible to create your own scritps for it and run them in a crontab?

Diaoul commented 12 years ago

There's a task scheduler with the SPK that allows you to do the very same command that you ran : DSM Subliminal Screenshot

I think it'll fit most ppl needs but if you have ideas of improvement, let me know.

Jeroenve commented 12 years ago

I am missing the dutch language in it! Could you add it to the package?

Diaoul commented 12 years ago

Oh and yeah you still have the command line available at /usr/local/subliminal/env/bin/subliminal

Jeroenve commented 12 years ago

Thanks for your help!

Diaoul commented 12 years ago

Yeah some languages are missing. I'll correct that

Jeroenve commented 12 years ago

When using /usr/local/subliminal/env/bin/subliminal in CLI it still gives the same error as above. Some idea what goes wrong?

Diaoul commented 12 years ago

Same warning, not error. Subliminal still works. It should be because I haven't released the new Python SPK with lxml yet

G1zm0 commented 12 years ago

Some idea's for improvements:

Question: Is is possible that the package stops in the package center as it starts scanning?

Diaoul commented 12 years ago

Please open an issue at https://github.com/SynoCommunity/spksrc/issues

groentebroer commented 12 years ago

Hi Diaoul,

I have python-lxml installed and build subliminal with the extras "full" LXML support, but still get the error. What might I be doing wrong?

Groentebroer

[subliminal]$ python26 setup.py clean
running clean

[subliminal]$ python26 setup.py build
running build
running build_py
running build_scripts

[subliminal]$ sudo easy_install-2.6 . subliminal[full]
Processing .
Running setup.py -q bdist_egg --dist-dir /usr/local/src/subliminal/egg-dist-tmp-9ozw5y
zip_safe flag not set; analyzing archive contents...
subliminal 0.6.1 is already the active version in easy-install.pth
Installing subliminal script to /usr/bin

Installed /usr/lib/python2.6/site-packages/subliminal-0.6.1-py2.6.egg
Processing dependencies for subliminal==0.6.1
Finished processing dependencies for subliminal==0.6.1
Searching for subliminal[full]
Best match: subliminal 0.6.1
Processing subliminal-0.6.1-py2.6.egg
subliminal 0.6.1 is already the active version in easy-install.pth
Installing subliminal script to /usr/bin

Using /usr/lib/python2.6/site-packages/subliminal-0.6.1-py2.6.egg
Processing dependencies for subliminal[full]
Finished processing dependencies for subliminal[full]

[subliminal]$ /usr/bin/subliminal -l nl /moviefolder
WARNING: subliminal.core Service bierdopje not available: none of available features could be used. One of ['xml'] required
No subtitles downloaded

[subliminal]$ rpm -qa | grep lxml
python-lxml-2.0.11-1.el5
python26-lxml-2.0.11-1.ius.el5
Diaoul commented 12 years ago

Try to run:

python
>>> import lxml

If it does fail, there's an issue with your installation of lxml. If it does not, there's an issue with subliminal / beautifulsoup4 / lxml.

groentebroer commented 12 years ago

Thanks for your response. I do not get an error with import lxml, is there anything else I can help with to debug subliminal / beautifulsoup4 / lxml?

[ ~]$ python
Python 2.4.3 (#1, Jun 18 2012, 08:55:23)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lxml
>>>
[ ~]$ python26
Python 2.6.5 (r265:79063, Feb 28 2011, 21:55:45)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lxml
>>>
mmartain commented 12 years ago

I am having the same issue on my Qnap nas:

[~] # /share/MD0_DATA/.qpkg/Optware/local/bin/subliminal -l nl /share/MD0_DATA/Releases6/TV/The Exes/ --cache-dir /tmp/ WARNING: subliminal.core Service bierdopje not available: none of available features could be used. One of ['xml'] required No subtitles downloaded

groentebroer commented 12 years ago

Hi,

I see status "open" but label "won't fix". Any clues on how to overcome the problem, or to do other testings or where to look? I would really like to get subliminal to work with bierdopje.com

Help will be appreciated.

Diaoul commented 12 years ago

Well, the only thing is to have lxml install correcty. To detect if lxml is useable, subliminal relies on beautifulsoup4. Please report to beautifulsoup4 if you have lxml installed but not detected : https://launchpad.net/beautifulsoup

simkin commented 12 years ago

@Qnap users: install with Python2.6 and make sure you installed py26-lxml. Also, call the script with defining a cache dir