[ckan-dev] datastorer installation

Jorge Pantoja jorgepantojam at gmail.com
Mon May 27 05:07:20 UTC 2013


Hi Adria,

I forgot to run that command and now is working. I run this command in
ckanext-datastorer and ckanext-archiver.

Thanks again for your help!


Jorge



On Fri, May 24, 2013 at 12:35 PM, Adrià Mercader <adria.mercader at okfn.org>wrote:

> Hi Jorge,
>
> Did you run `python setup.py develop` on the ckanext-datastorer folder
> after pip install -e?
> Make sure to have your virtualenv activated.
>
> Adrià
>
> On 22 May 2013 14:38, Jorge Pantoja <jorgepantojam at gmail.com> wrote:
> > Hi Adria,
> >
> > Yes, I´ve included the datastorer plugin in the ini file and restarted
> the
> > celery process. But I still have the same error in the celery log.
> > I used the "paster datastore_upload" in the ckanext-datastorer folder,
> and
> > it worked well.
> >
> > "Received unregistered task of type 'datastorer.upload'.
> > The message has been ignored and discarded.
> > Did you remember to import the module containing this task?
> > Or maybe you are using relative imports?
> > Please see http://bit.ly/gLye1c for more information.
> > Traceback (most recent call last):
> >   File
> >
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/celery/worker/consumer.py",
> > line 427, in receive_message
> >     eventer=self.event_dispatcher)
> >   File
> >
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/celery/worker/job.py",
> > line 297, in from_message
> >     on_ack=on_ack, delivery_info=delivery_info, **kw)
> >   File
> >
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/celery/worker/job.py",
> > line 261, in __init__
> >     self.task = registry.tasks[self.task_name]
> >   File
> >
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/celery/registry.py",
> > line 66, in __getitem__
> >     raise self.NotRegistered(key)
> > NotRegistered: 'datastorer.upload'"
> >
> >
> > Thanks,
> >
> >
> > Jorge
> >
> >
> >
> >
> > On Wed, May 22, 2013 at 11:46 AM, Adrià Mercader <
> adria.mercader at okfn.org>
> > wrote:
> >>
> >> Hi Jorge,
> >>
> >> Have you added the "datastorer" plugin to your ini file? eg:
> >>
> >> ckan.plugins = ... datastore datastorer
> >>
> >> You need to restart the celery process after doing this.
> >>
> >> Adrià
> >>
> >> On 21 May 2013 12:12, Jorge Pantoja <jorgepantojam at gmail.com> wrote:
> >> > Hi Nigel,
> >> >
> >> > I have configured the datastorer with celery but now I have this error
> >> > in
> >> > the celery log after upload a new file in ckan:
> >> >
> >> > ERROR/MainProcess] Received unregistered task of type
> >> > 'datastorer.upload'.
> >> > The message has been ignored and discarded.
> >> > NotRegistered: 'datastorer.upload'
> >> >
> >> >
> >> > Thanks again for your help,
> >> >
> >> >
> >> > Jorge
> >> >
> >> >
> >> >
> >> >
> >> > On Tue, May 21, 2013 at 7:17 AM, Nigel Babu <nigel.babu at okfn.org>
> wrote:
> >> >>
> >> >> Hi Jorge,
> >> >>
> >> >> Can you consistently reproduce this problem with pip install? It
> looks
> >> >> like the git clone timed out for you in the pastebin. It should, in
> all
> >> >> probability, work after some time.
> >> >>
> >> >> Nigel Babu
> >> >>
> >> >> Developer  |  @nigelbabu
> >> >>
> >> >> The Open Knowledge Foundation
> >> >>
> >> >> Empowering through Open Knowledge
> >> >>
> >> >> http://okfn.org/  |  @okfn  |  OKF on Facebook  |  Blog  |
>  Newsletter
> >> >>
> >> >>
> >> >> CKAN | http://ckan.org/ | @CKANproject | the world’s leading
> >> >> open-source
> >> >> data portal platform
> >> >>
> >> >>
> >> >> On 20 May 2013 17:00, Jorge Pantoja <jorgepantojam at gmail.com> wrote:
> >> >>>
> >> >>> Hi Nigel,
> >> >>>
> >> >>> Thanks for your response. The log I've got after the first pip
> install
> >> >>> instruction is this: http://pastebin.com/yai15Bv3
> >> >>>
> >> >>>
> >> >>> Thanks,
> >> >>>
> >> >>> Jorge
> >> >>>
> >> >>>
> >> >>> On Mon, May 20, 2013 at 5:03 AM, Nigel Babu <nigel.babu at okfn.org>
> >> >>> wrote:
> >> >>>>
> >> >>>> Hi Jorge,
> >> >>>>
> >> >>>> Can you please give me a pastebin of what happened when you tried
> the
> >> >>>> pip install instructions? The paster commands are only available
> when
> >> >>>> you
> >> >>>> are in the ckanext-datastorer folder or if you add
> >> >>>> `--plugin=ckanext_datastorer` to the paster command.
> >> >>>>
> >> >>>> If you are going to use ckanext-datastorer without celery, you
> should
> >> >>>> not enable it in ckan.plugins.
> >> >>>>
> >> >>>> Nigel Babu
> >> >>>>
> >> >>>> Developer  |  @nigelbabu
> >> >>>>
> >> >>>> The Open Knowledge Foundation
> >> >>>>
> >> >>>> Empowering through Open Knowledge
> >> >>>>
> >> >>>> http://okfn.org/  |  @okfn  |  OKF on Facebook  |  Blog  |
> >> >>>> Newsletter
> >> >>>>
> >> >>>>
> >> >>>> CKAN | http://ckan.org/ | @CKANproject | the world’s leading
> >> >>>> open-source
> >> >>>> data portal platform
> >> >>>>
> >> >>>>
> >> >>>> On 20 May 2013 05:27, Jorge Pantoja <jorgepantojam at gmail.com>
> wrote:
> >> >>>>>
> >> >>>>> Hi everyone,
> >> >>>>>
> >> >>>>> I was trying to install the datastorer in a Ckan 2.0 installation,
> >> >>>>> but
> >> >>>>> I have a problem. I used the instructions for the installation
> >> >>>>> without
> >> >>>>> celery (https://github.com/okfn/ckanext-datastorer), but the
> first
> >> >>>>> pip
> >> >>>>> install instruction didnt work for me, however, I used a git clone
> >> >>>>> command
> >> >>>>> separatelly and it worked. Then I tried to install the
> >> >>>>> pip-requirements, but
> >> >>>>> after that, I cannot find the paster datastore_upload or
> datastorer
> >> >>>>> command.
> >> >>>>> Also, If I try to add in ckan.plugins the datastorer, the Ckan
> gives
> >> >>>>> me an
> >> >>>>> error.
> >> >>>>>
> >> >>>>> What should I do to install correctly the datastorer?
> >> >>>>>
> >> >>>>> Thanks again,
> >> >>>>>
> >> >>>>> Jorge
> >> >>>>>
> >> >>>>> _______________________________________________
> >> >>>>> ckan-dev mailing list
> >> >>>>> ckan-dev at lists.okfn.org
> >> >>>>> http://lists.okfn.org/mailman/listinfo/ckan-dev
> >> >>>>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
> >> >>>>>
> >> >>>>
> >> >>>>
> >> >>>> _______________________________________________
> >> >>>> ckan-dev mailing list
> >> >>>> ckan-dev at lists.okfn.org
> >> >>>> http://lists.okfn.org/mailman/listinfo/ckan-dev
> >> >>>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
> >> >>>>
> >> >>>
> >> >>>
> >> >>> _______________________________________________
> >> >>> ckan-dev mailing list
> >> >>> ckan-dev at lists.okfn.org
> >> >>> http://lists.okfn.org/mailman/listinfo/ckan-dev
> >> >>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
> >> >>>
> >> >>
> >> >>
> >> >> _______________________________________________
> >> >> ckan-dev mailing list
> >> >> ckan-dev at lists.okfn.org
> >> >> http://lists.okfn.org/mailman/listinfo/ckan-dev
> >> >> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
> >> >>
> >> >
> >> >
> >> > _______________________________________________
> >> > ckan-dev mailing list
> >> > ckan-dev at lists.okfn.org
> >> > http://lists.okfn.org/mailman/listinfo/ckan-dev
> >> > Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
> >> >
> >>
> >> _______________________________________________
> >> ckan-dev mailing list
> >> ckan-dev at lists.okfn.org
> >> http://lists.okfn.org/mailman/listinfo/ckan-dev
> >> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
> >
> >
> >
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > http://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
> >
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130527/6bb1dd41/attachment-0001.html>


More information about the ckan-dev mailing list