We want to use scrapy in linux machine. We use python 2.7 version and install scrapy 1.4.0 (pip install scrapy). We add import scrapy to .py file. When we run .py file, give error like below:
File "mapper.py", line 5, in <module>
import scrapy
File "/usr/local/lib/python2.7/dist-packages/scrapy/__init__.py", line 27, in <module>
from . import _monkeypatches
File "/usr/local/lib/python2.7/dist-packages/scrapy/_monkeypatches.py", line 2, in <module>
from six.moves import copyreg
ImportError: No module named **six.moves**
We've searched this issue but can not get any answers. How can we solve this issue ? Thanks.
Finally we found answer like below:
We import six.py from our own path then can use it finally. Actually it is a workaround solution, I think the main problem about python environment in linux server. But in this case we can not access linux machine and lots of python version installed so python's own library six.py somehow couldn't be found. So we use this solution and it worked.