Skip to content

ImportError: cannot import name 'Image' #183

Closed
@fsfeng

Description

Seems to be a PIL module problem. I'm running Python 3.4 on Linux-64.

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-16-9ce5b07beb53> in <module>()
     14 import bs4
     15 from bs4 import BeautifulSoup
---> 16 import newspaper

/homedir/eco/sfeng/miniconda3/lib/python3.4/site-packages/newspaper/__init__.py in <module>()
      8 __copyright__ = 'Copyright 2014, Lucas Ou-Yang'
      9 
---> 10 from .article import Article, ArticleException
     11 from .api import (build, build_article, fulltext, hot, languages,
     12                   popular_urls, NewsPool, Configuration as Config)

/homedir/eco/sfeng/miniconda3/lib/python3.4/site-packages/newspaper/article.py in <module>()
     10 import glob
     11 
---> 12 from . import images
     13 from . import network
     14 from . import nlp

/homedir/eco/sfeng/miniconda3/lib/python3.4/site-packages/newspaper/images.py in <module>()
     18 
     19 from http.client import InvalidURL
---> 20 from PIL import Image, ImageFile
     21 
     22 from . import urls

ImportError: cannot import name 'Image'

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions