I am trying to create an iron.io worker using scrapy.
According to iron.io we need to place all the dependencies for the code in the worker itself.
I have created a folder called module
which will have all the 3rd party modules and installed scrapy via pip.
pip install scrapy -t module/
When trying to run scrapy via python module/scrapy/__init__.py
I am getting
Traceback (most recent call last):
File "module/scrapy/__init__.py", line 10, in <module>
__version__ = pkgutil.get_data(__package__, 'VERSION').decode('ascii').strip()
File "/usr/lib/python2.7/pkgutil.py", line 578, in get_data
loader = get_loader(package)
File "/usr/lib/python2.7/pkgutil.py", line 464, in get_loader
return find_loader(fullname)
File "/usr/lib/python2.7/pkgutil.py", line 474, in find_loader
for importer in iter_importers(fullname):
File "/usr/lib/python2.7/pkgutil.py", line 424, in iter_importers
if fullname.startswith('.'):
AttributeError: 'NoneType' object has no attribute 'startswith'