4

I am using sumy https://github.com/miso-belica/sumy for python text-summarization

I get this error when I use HtmlParser.

Traceback (most recent call last):
File "", line 1, in 
File "/usr/local/lib/python2.7/dist-packages/sumy/parsers/html.py", line 6, in 
from readability.readable import Article
ImportError: No module named readable

How can I fix this problem?

I have done the following,

pip install sumy    
pip install readability-api
3
  • you have updated the python in your machine? Jan 23, 2014 at 7:32
  • did sudo apt-get upgrade python.. if thats what you are asking Jan 23, 2014 at 7:33
  • maybe pip install readablility-api to the old version of python Jan 23, 2014 at 7:35

1 Answer 1

4

Its really funny.

It is not the readablity-api the author is mentioning in sumy

Its https://github.com/miso-belica/readability.py

The devaloper is using his own project readability

Try using above. browse the above project. Devaloper is miso-belica in both of project

4
  • It worked. Thanks a ton. What will happen if I also have readability-api installed? Is this a bad code design? Jan 23, 2014 at 8:26
  • 2
    yes it is a bad code design by developer itself, since the code is conflicting with a popular API. regarding the both module installation read this stackoverflow.com/questions/3678402/…
    – duck
    Jan 23, 2014 at 8:30
  • That url is no longer valid.
    – hola
    Apr 24, 2014 at 7:32
  • 1
    @pushpen.paul The URL github.com/miso-belica/readability.py was my fork of breadability. Breadability merged the changes from my fork so the fork is no longer needed. Sumy uses breadability as dependency now :)
    – Mišo
    Apr 26, 2014 at 13:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.