You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to install the plugin and the requirement with sudo because of permission to write to /usr/lib/ckan/default/src/ckan/src/ckanext-harvest
When I start the gather_consumer, I get the following error:
(default)ckan@ckan1:/usr/lib/ckan/default/src/ckanext-harvest$ paster --plugin=ckanext-harvest harvester gather_consumer --config=/etc/ckan/default/production.ini
2015-01-27 15:22:11,241 DEBUG [ckanext.harvest.model] Harvest tables defined in memory
2015-01-27 15:22:11,244 DEBUG [ckanext.harvest.model] Harvest tables already exist
2015-01-27 15:22:11,279 DEBUG [ckanext.harvest.plugin] No auth module for action "update"
Traceback (most recent call last):
File "/usr/lib/ckan/default/bin/paster", line 9, in <module>
load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
invoke(command, command_name, options, args[1:])
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
exit_code = runner.run(args)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
result = self.command()
File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/commands/harvester.py", line 125, in command
from ckanext.harvest.queue import get_gather_consumer, gather_callback
File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/queue.py", line 5, in <module>
import pika
ImportError: No module named pika
I could solve it login in as root with sudo su
$ sudo su
root@ckan1:/# . /usr/lib/ckan/default/bin/activate
(default)root@ckan1:/# cd /usr/lib/ckan/default/src/ckanext-harvest/
(default)root@ckan1:/usr/lib/ckan/default/src/ckanext-harvest# pip install -r pip-requirements.txt
Requirement already satisfied (use --upgrade to upgrade): pika==0.9.8 in /usr/lib/ckan/default/lib/python2.7/site-packages (from -r pip-requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): redis==2.10.1 in /usr/lib/ckan/default/lib/python2.7/site-packages (from -r pip-requirements.txt (line 2))
Cleaning up...
(default)root@ckan1:/usr/lib/ckan/default/src/ckanext-harvest# paster --plugin=ckanext-harvest harvester gather_consumer --config=/etc/ckan/default/production.ini
2015-01-27 15:29:56,728 DEBUG [ckanext.harvest.queue] Gather queue consumer registered
I guess I must be doing something wrong when installing the dependencies with sudo. If anubody can point in the right direction I can help updating the install documentation.
The text was updated successfully, but these errors were encountered:
Sorry, after installing requirements as root everything seems to work fine... I can run all the commands as a regular user. Perhaps we could update the docs to state this...
I followed the guide at https://github.com/ckan/ckanext-harvest/blob/master/README.rst
I had to install the plugin and the requirement with sudo because of permission to write to /usr/lib/ckan/default/src/ckan/src/ckanext-harvest
When I start the gather_consumer, I get the following error:
I could solve it login in as root with
sudo su
I guess I must be doing something wrong when installing the dependencies with sudo. If anubody can point in the right direction I can help updating the install documentation.
The text was updated successfully, but these errors were encountered: