[ckan-dev] archiver

David Read david.read at hackneyworkshop.com
Wed Sep 28 06:07:34 UTC 2016


Claire,

There is some dependency problem. It sounds like you've not got ckan
working at all and the simplest thing is to go through the ckan
install again from the start.

David

On 27 September 2016 at 22:03, Claire Herbert
<Claire.Herbert at umanitoba.ca> wrote:
> Hi David,
> Thanks for the correction, you are right, I have moved into that directory, but I now receive the error message:
>
> File"/usr/lib/ckan/default/bin/paster",line 11, in<module>
> Sys.exit(run())
> File "usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py,line 91, in run
>         Command = get_commands()
> File "/usr/llib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",line 133, in get_commands
>         Plugins = pluginlib.resolve_plugins(plugins)
> File"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/pluginlib.py"line 83,in resolve_plugins
>         Pkg_resources.require(plugin)
> File"/usr/lib/ckan/default/local/lib/python2.7/site-packages/pkg_resources/__init__.py,line 968,in require
>         Needed = self.resolve(parse_requirements(requirements))
> File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pkg_resources/__init__py",line 854, in resolve
>         Raise DistributionNotFound(req, requires)
> Pkg_resources.DistributionNotFound
>
> Claire
>
> -----Original Message-----
> From: David Read [mailto:david.read at hackneyworkshop.com]
> Sent: September 27, 2016 08:14
> To: CKAN Development Discussions
> Subject: Re: [ckan-dev] archiver
>
> Claire,
>
> If you've activated your virtual environment now and when you installed ckan dependencies, then I'd have thought you'd be using:
>
> /usr/lib/ckan/default/bin/paster
>
> rather than
>
> /usr/bin/paster
>
> But I could be wrong. Did your ckan work without extensions install?
>
> David
>
> On 23 September 2016 at 16:32, Claire Herbert <Claire.Herbert at umanitoba.ca> wrote:
>> I am also having problems with archiver. In the instructions
>> (https://github.com/ckan/ckanext-archiver) I get to step 3. When I try
>> to create the database tables with paster, I always receive an error
>> message. I am in my virtual environment. I have tried using the full
>> path to paster and the full path to the production. Ini  file.
>>
>> For example, the command “paster –plugin=ckanext-archiver archiver
>> init –config=/etc/ckan/default/production.ini”
>>
>> Produces the following error:
>>
>>
>>
>> File “/usr/bin/paster”, line 4, in <module>
>>
>>    Command.run()
>>
>> File “usr/lib/python2.7/dis-packages/paste/script/command.py”, line
>> 103, in run
>>
>>    Command = commands[command_name].load()
>>
>> File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line2088, in
>> load entry = __import__(self.module_name, globals(),globals(),
>> [‘__name__’])
>>
>> File “/home/ceos/src/ckanext-archiver/ckanext/archiver/commands.py’,
>> line 8 in <module>
>>
>>     Import ckan.plugins as p
>>
>> File
>> “usr/local/lib/python2.7/dist-packages/ckan-2.5.2-py2.7.egg/ckan/plugi
>> ns/__init__.py”,line
>> 1, in <module>
>>
>>    From ckan_plugins.core import*
>>
>> File
>> “/usr/local/lib/python2.7/dist-packages/ckan-2.5.2-py2.7.egg/ckan/plug
>> ins/core.py”,line
>> 9, in <module>
>>
>>    from pyutilib.component.core import PluginGlobals,implements
>>
>> ImportError:  No module named pyutilib.component.core
>>
>>
>>
>> Claire
>>
>>
>> _______________________________________________
>> 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
>>
>
> _______________________________________________
> 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



More information about the ckan-dev mailing list