[ckan-discuss] CKAN install from source error on step 6
Greg Linch
greglinch at gmail.com
Thu Sep 6 17:11:14 BST 2012
Thanks! I've made more progress since then (new errors!), but have hit a
new error when executing that same paster command (paster --plugin=ckan db
init). Here's the full trackeback
http://snipt.org/vGX5
The error comes on a core Python file, so it seems that paster is setting
something that throws it off.
Thanks again!
Greg
On Thu, Sep 6, 2012 at 4:00 AM, Sean Hammond <sean.hammond at okfn.org> wrote:
> > I'm new to using CKAN and have been pleased to see the list is active!
> >
> > During a CKAN local install from
> > source<http://docs.ckan.org/en/latest/install-from-source.html>on
> > Ubuntu 12.04, specifically on the Create
> > Database Tables<
> http://docs.ckan.org/en/latest/install-from-source.html#create-database-tables
> >command
> > (step 6):
> >
> > paster --plugin=ckan db init
> >
> >
> > Entering that commands returns this error (full
> > traceback<http://snipt.org/vGaj3>):
> >
> >
> > ImportError: No module named sqlalchemy
> >
> > Adding a print sys.path to one of the files it hits shows that paster
> seems
> > to somehow be knocking sqlalchemy off the Python path, despite it being
> > there for the virtualenv where I've set up CKAN. sqlachemy also appears
> on
> > the path when I run sys.path in the Python interpreter in the virtualenv.
> >
> > Anyone have this problem before and know a good solution?
>
> It sounds like you might be running a system-wide copy of paster rather
> than a copy of paster from your virtualenv. What does `which paster`
> tell you when your virtualenv is active? If it prints a paster outside
> of your virtualenv, then you need to install paster in the virtualenv,
> pip install PasteScript with the virtualenv active should do it.
>
> _______________________________________________
> ckan-discuss mailing list
> ckan-discuss at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20120906/03a648f3/attachment.htm>
More information about the ckan-discuss
mailing list