medialab / hyphe

Websites crawler with built-in exploration and control web interface
http://hyphe.medialab.sciences-po.fr/demo/
GNU Affero General Public License v3.0
328 stars 59 forks source link

hyphe_backend.lib missing #12

Closed bornakke closed 11 years ago

bornakke commented 11 years ago

Hi Medialab,

Running sudo bin/deploy_scrapy_spider.sh to install the latest edition of hypher gives me the following error:

Copying config.json from root directory to hyphe_backend/crawler for scrapy deployment... Traceback (most recent call last): File "deploy.py", line 18, in from hyphe_backend.lib import config_hci ImportError: No module named hyphe_backend.lib

It appears that a file most be missing.

Best regards Tobias

boogheta commented 11 years ago

Hello Tobias and thanks for the bug reports. First, you should not use sudo for this command, there is absolutely no reason you would need to be root to run this. Since you ran crawls according to your other tickets, I assume you figured out what the problem was. I imagine what was missing on your config was to run "add2virtualenv ." from hyphe's root directory which is now documented into the README. Do you confirm ?

bornakke commented 11 years ago

Hi Boogheta,

I reinstalled all python modules and ran without the sudo command and then it worked. It however only got me one step closer and I now got this response:

Copying config.json from root directory to hyphe_backend/crawler for scrapy deployment... Importing urllru.py library from HCI hyphe_backend/lib to hcicrawler... Rendering hcicrawler/middlewares.py with proxy config values from config.json... Rendering settings.py with mongo-scrapy config values from config.json... Rendering scrapy.cfg with scrapy config values from config.json... Sending HCI's scrapy egg to scrapyd server... {"status": "error", "message": "ImportError: No module named lru"}

Packing version 1371330679 Deploying to project "hci" in http://localhost:6800/addversion.json Server response (200):

Best Tobias

boogheta commented 11 years ago

This should be fixed now, just a stupid name change propagation forgotten, apologies :/