[ckan-dev] Is there any people can help me with this problem: "Not Found: zope.interface-3.5.3" when "paster make-config ckan development.ini"
Nigel Babu
nigel.babu at okfn.org
Thu Mar 7 02:35:34 UTC 2013
Hi there,
I've noticed that you've done package install, but are trying to do some
custom development. You should not be doing custom development with a
package install. A package install is only for deployment. Please follow
the instructions in the contributing[1] file or the source install for the
latest version of CKAN[2].
[1] https://github.com/okfn/ckan/blob/master/CONTRIBUTING.rst
[2] http://docs.ckan.org/en/latest/install-from-source.html
Nigel
On 4 March 2013 14:35, bupt bupt <buptloveandroid at gmail.com> wrote:
> I use the Option1 to install CAKN. Then I want to create development.ini
> file to run CAKN project in Pycharm. But I encounter the below problem:
> "
> root at ys-laptop:/usr/share/pyshared/ckan# paster make-config ckan
> development.ini
> Traceback (most recent call last):
> File "/usr/bin/paster", line 18, in <module>
> command.run()
> File "/usr/lib/pymodules/python2.6/paste/script/command.py", line 73, in
> run
> commands = get_commands()
> File "/usr/lib/pymodules/python2.6/paste/script/command.py", line 115,
> in get_commands
> plugins = pluginlib.resolve_plugins(plugins)
> File "/usr/lib/pymodules/python2.6/paste/script/pluginlib.py", line 81,
> in resolve_plugins
> pkg_resources.require(plugin)
> File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 648, in
> require
> needed = self.resolve(parse_requirements(requirements))
> File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 546, in
> resolve
> raise DistributionNotFound(req)
> pkg_resources.DistributionNotFound: Not Found: zope.interface-3.5.3 (did
> you run python setup.py develop?)
> "
>
> After that I input following command to find what's the problem is, these
> are as follows:
> "
> s-laptop:/usr/share/pyshared/ckan# ls /usr/lib/python2.6/dist-packages/zope
> zope/ zope.interface-3.5.3-nspkg.pth
> zope.interface-3.5.3.egg-info/
> root at ys-laptop:/usr/share/pyshared/ckan# ls
> /usr/lib/python2.6/dist-packages/zope.interface-3.5.3.egg-info/
> dependency_links.txt not-zip-safe requires.txt top_level.txt
> namespace_packages.txt PKG-INFO SOURCES.txt
>
> root at ys-laptop:/usr/share/pyshared/ckan# ls
> /usr/lib/python2.6/dist-packages/zope.interface-3.5.3.egg-info/ -l
> total 24
> lrwxrwxrwx 1 root root 70 2013-01-30 14:32 dependency_links.txt ->
> /usr/share/pyshared/zope.interface-3.5.3.egg-info/dependency_links.txt
> lrwxrwxrwx 1 root root 72 2013-01-30 14:32 namespace_packages.txt ->
> /usr/share/pyshared/zope.interface-3.5.3.egg-info/namespace_packages.txt
> lrwxrwxrwx 1 root root 62 2013-01-30 14:32 not-zip-safe ->
> /usr/share/pyshared/zope.interface-3.5.3.egg-info/not-zip-safe
> lrwxrwxrwx 1 root root 58 2013-01-30 14:32 PKG-INFO ->
> /usr/share/pyshared/zope.interface-3.5.3.egg-info/PKG-INFO
> lrwxrwxrwx 1 root root 62 2013-01-30 14:32 requires.txt ->
> /usr/share/pyshared/zope.interface-3.5.3.egg-info/requires.txt
> lrwxrwxrwx 1 root root 61 2013-01-30 14:32 SOURCES.txt ->
> /usr/share/pyshared/zope.interface-3.5.3.egg-info/SOURCES.txt
> lrwxrwxrwx 1 root root 63 2013-01-30 14:32 top_level.txt ->
> /usr/share/pyshared/zope.interface-3.5.3.egg-info/top_level.txt
>
>
> root at ys-laptop:/usr/share/pyshared/ckan# ll
> /usr/share/pyshared/zope.interface-3.5.3.egg-info/
> total 104
> drwxr-xr-x 2 root root 4096 2010-04-29 20:29 ./
> drwxr-xr-x 165 root root 12288 2013-03-01 15:43 ../
> -rw-r--r-- 1 root root 1 2010-04-16 04:08 dependency_links.txt
> -rw-r--r-- 1 root root 5 2010-04-16 04:08 namespace_packages.txt
> -rw-r--r-- 1 root root 1 2009-12-08 16:39 not-zip-safe
> -rw-r--r-- 1 root root 62991 2010-04-16 04:08 PKG-INFO
> -rw-r--r-- 1 root root 28 2010-04-16 04:08 requires.txt
> -rw-r--r-- 1 root root 2086 2010-04-16 04:08 SOURCES.txt
> -rw-r--r-- 1 root root 5 2010-04-16 04:08 top_level.txt
>
> root at ys-laptop:/usr/share/pyshared/ckan# python
> Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import zope.interface
> >>> print dir(zope.interface)
> ['Attribute', 'Declaration', 'IInterfaceDeclaration', 'Interface',
> 'Invalid', 'Provides', '__all__', '__builtins__', '__doc__',
> '__docformat__', '__file__', '__name__', '__package__', '__path__',
> '__provides__', '_compat', 'advice', 'alsoProvides', 'classImplements',
> 'classImplementsOnly', 'classProvides', 'declarations',
> 'directlyProvidedBy', 'directlyProvides', 'exceptions', 'implementedBy',
> 'implementer', 'implementer_only', 'implements', 'implementsOnly',
> 'interface', 'interfaces', 'invariant', 'moduleProvides',
> 'noLongerProvides', 'providedBy', 'provider', 'ro', 'taggedValue']
>
>
> root at ys-laptop:/usr/share/pyshared/ckan/zope/interface# ls
> adapter.py _compat.pyc exceptions.pyc interface.pyc ro.pyc
> advice.py declarations.py _flatten.py interfaces.py tests
> advice.pyc declarations.pyc __init__.py interfaces.pyc verify.py
> common document.py __init__.pyc registry.py
> _compat.py exceptions.py interface.py ro.py
>
> "
>
> zope related files already exist in ckan directory, and python
> interpretor/command/environment can already find zope.interface file. So ,
> I guess this problem lies in the pylons's command "paster" can't find
> zope.interfaceXX. And could you tell me what's your opinion, and how to
> solve this problem?
>
> I would say thank you very much for your help!~~
>
>
>
>
> _______________________________________________
> 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/20130307/c0dd30c4/attachment-0001.html>
More information about the ckan-dev
mailing list