[ckan-dev] Datapusher patch on 2.8 package install?
Adrià Mercader
adria.mercader at okfn.org
Tue Mar 12 11:24:17 UTC 2019
Hi Jim,
There are no silly questions on this list! :)
I've just checked the python-ckan_2.8-trusty_amd64.deb
<http://packaging.ckan.org.s3-eu-west-1.amazonaws.com/python-ckan_2.8-trusty_amd64.deb>
package and it is shipping an old version of DataPusher (0.0.12), which is
obviously a bug. While we look at this you can manually upgrade as you
suggested. To do so:
1. Activate the datapusher virtualenv
cd /usr/lib/ckan/datapusher
source bin/activate
2. Pull the latest version
cd src/datapusher
git fetch
git co 0.0.15
3. Install the new requirements
pip install --upgrade requirements.txt
4. Check the versions
pip show ckanserviceprovider (should be 0.0.8)
4. Restart Apache
sudo service apache2 restart
Thanks and sorry about the issues
Adrià
On Tue, 12 Mar 2019 at 09:11, Jim Craner <jim at galecia.com> wrote:
> Hi, sorry if this is a silly question (non-python person here), but I have
> a new 2.8 install, installed on Ubuntu 16.04, following the package (NOT
> source) documentation. I've got everything configured, even with SSL,
> except the DataPusher, as far as I can tell.
>
> When I "upload to datastore" for a file that I've already added to
> filestore, I get the error messages referenced here:
> https://github.com/ckan/ckan/issues/4330
>
> From what I can understand, anyone like me who installed 2.8 via package
> will need a new version of flask within the python environment underlying
> CKAN. Is that right?
>
> Since I installed from package instead of source, can I even do anything
> or am I out of luck until another version is released? If I can fix it,
> how do I upgrade that? The fix referenced above says to run "pip install
> --upgrade Flask<1.0" which makes sense but:
>
> a) what folder do I go in to call the virtualenv activate command BEFORE
> the pip flask upgrade, and
> b) what is the specific command to activate the virtualenv in this case?
> (Again, sorry, haven't touched python in several years.)
>
> Thanks for any advice you can provide!
> -Jim
>
> ---
> Jim Craner
> Development Operations Manager
> The Galecia Group // galecia.com
> 773/809-4546
> jim at galecia.com
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20190312/d6b996cf/attachment-0002.html>
More information about the ckan-dev
mailing list