[ckan-dev] trouble using harvesting extension
Adrià Mercader
adria.mercader at okfn.org
Mon Jan 7 15:45:59 UTC 2013
Hi Gregory,
ckan/authz.py is definitely present in ckan 1.8 [1]. Either you are
using master or there was a problem when pulling the sources and some
files were missing.
Note that if you are installing CKAN from sources, when pulling the
sources from github you need to specify with branch do you want.
>From the docs [2]:
"
Install the CKAN source code into your virtualenv. To install the
latest development version of CKAN (the most recent commit on the
master branch of the CKAN git repository), run:
pip install -e 'git+https://github.com/okfn/ckan.git#egg=ckan'
Alternatively, to install a specific version such as CKAN 1.7.1 run:
pip install -e 'git+https://github.com/okfn/ckan.git@ckan-1.7.1#egg=ckan'
"
To check if you are using the 1.8 branch, you can run this command on
the source ckan directory:
git branch
If you are not on it, the following command will check it out:
git pull
git checkout release-v1.8
Regarding your other issues, please report any particular problems
that you found, but yes, you need to load the "cswserver" plugin to
activate the csw server interface (to be replaced by a pycsw based
one, check other messages on the list for this). For displaying the
extent map you need to activate the "dataset_extent_map" plugin. Check
the ckanext-spatial README for more details.
Hope this helps,
Adrià
[1] https://github.com/okfn/ckan/blob/release-v1.8/ckan/authz.py
[2] http://docs.ckan.org/en/ckan-1.8/install-from-source.html#install-ckan-into-a-python-virtual-environment
On 3 January 2013 13:27, Miller, Gregory <gmiller at usgs.gov> wrote:
> I am using version 1.8, but the file was missing. I went to the older
> version of CKAN on GITHUB, found the missing file and downloaded it. It now
> works. I am struggling with the two extensions that I have installed
> (spatial and harvest) with CKAN 1.8. I could not get either the csw client
> or server to work until I went back and loaded the ckanext-csw extension
> even though the documentation says that these functions have been integrated
> into the spatial extension. Both the client and server work as long as I
> add cswserver to the configuration file. It is not clear what the geospatial
> capabilities are yet. I added the spatial field in the metadata. I know it
> is being loaded into the database as I can recover it when the data values
> are displayed. I have figured out yet how to get it to plot on a map.
>
> Thanks,
>
> Greg
>
>
> On Thu, Jan 3, 2013 at 7:53 AM, Adrià Mercader <adria.mercader at okfn.org>
> wrote:
>>
>> On 28 December 2012 15:14, Miller, Gregory <gmiller at usgs.gov> wrote:
>> >
>> > I have installed CKAN on ubuntu 12.04 from the source code. I have
>> > installed the harvesting extension with no problems. However when I try to
>> > run the following command to create the tables in the database (or any
>> > command for this extension):
>> >
>> > paster --plugin=ckanext-harvest harvester initdb --config=mysite.ini
>> >
>> > I get the following error:
>> >
>> > from ckan.authz import Authorizer
>> > ImportError: No module name authz
>>
>> This looks like a version conflict between CKAN core and the harvester
>> extension. Currently master on ckanext-harvest targets CKAN 1.8. If
>> you are using CKAN core master you will need to use the
>> 4-new-auth-for-2.0 branch of ckanext-harvest, which is under
>> development.
>> If you need a stable ckanext-harvest you will need to target CKAN 1.8
>> for the time being.
>>
>>
>> Cheers,
>>
>> Adrià
>>
>> >
>> > I can't find any information on this module. Anyone know what I failed
>> > to do?
>> >
>> > Thanks,
>> >
>> > Greg
>> >
>> >
>> > _______________________________________________
>> > 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
>
>
>
>
> --
> Greg Miller
> Coastal Marine Geology
> US Geological Survey
>
> 508 287-7610
> gmiller at usgs.gov
>
> _______________________________________________
> 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
>
More information about the ckan-dev
mailing list