I am getting this error trying to install newspaper
Downloading/unpacking newspaper
Downloading newspaper-0.0.8.tar.gz (6.9MB): 6.9MB downloaded
Running setup.py (path:/tmp/pip_build_Cmaden/newspaper/setup.py) egg_info for package newspaper
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_Cmaden/newspaper/setup.py", line 51, in <module>
zip_safe=False,
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 225, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 257, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2099, in require
working_set.resolve(self.dist.requires(self.extras),env,installer))
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2309, in requires
dm = self._dep_map
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2538, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2571, in _compute_dependencies
common = frozenset(reqs_for_extra(None))
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2568, in reqs_for_extra
if req.marker_fn(override={'extra':extra}):
File "/usr/local/lib/python2.7/dist-packages/_markerlib/markers.py", line 109, in marker_fn
return eval(compiled_marker, environment)
File "<environment marker>", line 1, in <module>
NameError: name 'sys_platform' is not defined
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_Cmaden/newspaper/setup.py", line 51, in <module>
zip_safe=False,
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 225, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 257, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2099, in require
working_set.resolve(self.dist.requires(self.extras),env,installer))
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2309, in requires
dm = self._dep_map
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2538, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2571, in _compute_dependencies
common = frozenset(reqs_for_extra(None))
File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2568, in reqs_for_extra
if req.marker_fn(override={'extra':extra}):
File "/usr/local/lib/python2.7/dist-packages/_markerlib/markers.py", line 109, in marker_fn
return eval(compiled_marker, environment)
File "<environment marker>", line 1, in <module>
NameError: name 'sys_platform' is not defined