I'm using a library called newspaper and deploying my app to elastic beanstalk. It runs fine locally, but on the server it doesn't work and throws this error:
File "/opt/python/current/app/application.py", line 7, in <module>
from api.v01.api import apiv01
File "/opt/python/current/app/api/v01/api.py", line 19, in <module>
from newspaper import Article
File "/opt/python/run/venv/lib/python2.7/site-packages/newspaper/__init__.py", line 10, in <module>
from .article import Article, ArticleException
File "/opt/python/run/venv/lib/python2.7/site-packages/newspaper/article.py", line 12, in <module>
from . import images
ImportError: cannot import name images
Both machines are running python 2.7.9.
What could the problem be?
Just to confirm, I'm using requirements.txt to load the dependencies, and they are loaded fine on both machines.