Closed LostAcapulco closed 4 years ago
File "/Volumes/Transcend/Development/analizar/lib/python3.7/site-packages/scrapy/settings/__init__.py", line 287, in setmodule
module = import_module(module)
This line is failing with the error ModuleNotFoundError: No module named 'robot'
Which means your Scrapy settings (or modules imported by your Scrapy settings) are trying to import a package named robot
, which the Python install cannot find for whatever reason.
As we don't have a package called robot
in this package; it's unlikely to be related to a bug in this project and as such I am closing the issue. Best of luck finding an answer, but this question is better suited to StackOverflow.
If you'd like to paste a gist of your import, maybe I can spot something.
It's quite possibly you don't have your PYTHON PATH environment variable
set up correctly, such that scrapyd cannot find that robot
module as it's
not on the path.
On Thu, 9 Jul 2020 at 01:04, LostAcapulco notifications@github.com wrote:
Hi DJm, thanks for your answer, I know that the problem comes from the import of the module but from my perspective something is not working in scrapyd or scrapyd_api because when I run manually scrapy in the CLI this error doesn´t show up. So the error in not from my side, Thank any way
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/djm/python-scrapyd-api/issues/17#issuecomment-655819199, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAVVKBDTZVX3VXLNNF5NQTR2UCRJANCNFSM4OUDWNTQ .
-- Darian Moody w: djm.org.uk
I'm trying to run my spider via scrapyd_api like follow.
scrapyd = ScrapydAPI('http://localhost:6800') spider_pid = scrapyd.schedule( 'default', 'scrap_data', id=loca_id, token=local_token )
But at the moment to run my code this error shows upModuleNotFoundError: No module named 'robot'
I tried to load manually the path to my project and setting up the PYTHONPATH but I'm getting the same error
This is the traceback