[ckan-dev] Install error of ckanext-sa

Kim Haklae haklaekim at gmail.com
Tue Sep 10 16:57:15 UTC 2013


Hi Adria,

Just got another error containing "No module named
gdata.spreadsheet.text_db". The gdata and client is installed, which
version 2.1.8. And Ckan is v2.1. I have no clue of any dependencies sa
extension. The following is a snippet of  the log file. Thanks in advance.

==========
Starting server in PID 3712.
serving on 0.0.0.0:5001 view at http://127.0.0.1:5001
Error - <type 'exceptions.ImportError'>: No module named
gdata.spreadsheet.text_db
URL: http://192.168.0.2:5001/
sys.path: [
    '/usr/lib/ckan/default/src/ckan/ckan',
    '/usr/lib/ckan/default/bin',

'/usr/lib/ckan/default/local/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg',

'/usr/lib/ckan/default/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg',
    '/usr/lib/ckan/default/src/ckan',
    '/home/datahub/Downloads/ckanext-pdeu-master',
    '/home/datahub/Downloads/ckanext-sa-master',
    '/usr/lib/ckan/default/lib/python2.7',
    '/usr/lib/ckan/default/lib/python2.7/plat-x86_64-linux-gnu',
    '/usr/lib/ckan/default/lib/python2.7/lib-tk',
    '/usr/lib/ckan/default/lib/python2.7/lib-old',
    '/usr/lib/ckan/default/lib/python2.7/lib-dynload',
    '/usr/lib/python2.7',
    '/usr/lib/python2.7/plat-x86_64-linux-gnu',
    '/usr/lib/python2.7/lib-tk',
    '/usr/lib/ckan/default/local/lib/python2.7/site-packages']
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/weberror/errormiddleware.py',
line 162 in __call__
  app_iter = self.application(environ, sr_checker)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/dec.py',
line 147 in __call__
  resp = self.call_func(req, *args, **self.kwargs)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/dec.py',
line 208 in call_func
  return self.func(req, *args, **kwargs)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/fanstatic/publisher.py',
line 234 in __call__
  return request.get_response(self.app)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/request.py',
line 1053 in get_response
  application, catch_exc_info=False)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/request.py',
line 1022 in call_application
  app_iter = application(self.environ, start_response)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/dec.py',
line 147 in __call__
  resp = self.call_func(req, *args, **self.kwargs)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/dec.py',
line 208 in call_func
  return self.func(req, *args, **kwargs)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/fanstatic/injector.py',
line 54 in __call__
  response = request.get_response(self.app)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/request.py',
line 1053 in get_response
  application, catch_exc_info=False)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/request.py',
line 1022 in call_application
  app_iter = application(self.environ, start_response)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/beaker/middleware.py',
line 73 in __call__
  return self.app(environ, start_response)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/beaker/middleware.py',
line 155 in __call__
  return self.wrap_app(environ, session_start_response)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/routes/middleware.py',
line 131 in __call__
  response = self.app(environ, start_response)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/wsgiapp.py',
line 124 in __call__
  controller = self.resolve(environ, start_response)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/wsgiapp.py',
line 263 in resolve
  return self.find_controller(controller)
File '/usr/lib/ckan/default/src/ckan/ckan/config/environment.py', line 114
in find_controller
  .parse('x=%s' % controller).load(False)
File
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/pkg_resources.py',
line 2013 in load
  entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File
'/home/datahub/Downloads/ckanext-pdeu-master/ckanext/pdeu/controllers.py',
line 18 in <module>
  import gdata.spreadsheet.text_db
ImportError: No module named gdata.spreadsheet.text_db


CGI Variables
-------------
  AUTH_TYPE: 'cookie'
  CKAN_CURRENT_URL: '/'
  CKAN_LANG: 'en'
  CKAN_LANG_IS_DEFAULT: True
  CONTENT_LENGTH: '0'
  CONTENT_TYPE: '; charset=utf-8'
  HTTP_ACCEPT:
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
  HTTP_ACCEPT_ENCODING: 'gzip, deflate'
  HTTP_ACCEPT_LANGUAGE: 'en-US,en;q=0.5'
  HTTP_CONNECTION: 'Keep-Alive'
  HTTP_COOKIE:
'auth_tkt="48eaa8fc59d668ffcbf174f7c8b18012522f4c05haklaekim!userid_type:unicode"'
  HTTP_HOST: '192.168.0.2:5001'
  HTTP_USER_AGENT: 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0)
Gecko/20100101 Firefox/23.0'
  HTTP_X_FORWARDED_FOR: '192.168.0.1'
  HTTP_X_FORWARDED_HOST: 'data.datahub.kr'
  HTTP_X_FORWARDED_SERVER: 'data.datahub.kr'
  PATH_INFO: '/'
  REMOTE_ADDR: '192.168.0.11'
  REMOTE_USER: u'haklaekim'
  REMOTE_USER_DATA: 'userid_type:unicode'
  REMOTE_USER_TOKENS: ['']
  REQUEST_METHOD: 'GET'
  SERVER_NAME: '0.0.0.0'
  SERVER_PORT: '5001'
  SERVER_PROTOCOL: 'HTTP/1.1'


WSGI Variables
--------------
  application: <fanstatic.publisher.Delegator object at 0x4912bd0>
  beaker.cache: <beaker.cache.CacheManager object at 0x49121d0>
  beaker.get_session: <bound method SessionMiddleware._get_session of
<beaker.middleware.SessionMiddleware object at 0x4912ad0>>
  beaker.session: {'_accessed_time': 1378831807.425177, '_creation_time':
1378831807.425177}
  fanstatic.needed: <fanstatic.core.NeededResources object at 0x4910110>
  paste.cookies: (<SimpleCookie:
auth_tkt='48eaa8fc59d668ffcbf174f7c8b18012522f4c05haklaekim!userid_type:unicode'>,
'auth_tkt="48eaa8fc59d668ffcbf174f7c8b18012522f4c05haklaekim!userid_type:unicode"')
  paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at
0x2474690>
  paste.registry: <paste.registry.Registry object at 0x4eb9950>
  paste.throw_errors: True
  pylons.environ_config: {'session': 'beaker.session', 'cache':
'beaker.cache'}
  pylons.pylons: <pylons.util.PylonsContext object at 0x4ec31d0>
  pylons.routes_dict: {'action': u'index', 'controller':
u'ckanext.pdeu.controllers:MapController'}
  repoze.who.identity: <repoze.who identity (hidden, dict-like) at
140410198513312>
  repoze.who.logger: <logging.Logger object at 0x4910d10>
  repoze.who.plugins: {'openid': <OpenIdIdentificationPlugin 76621200>,
'friendlyform': <FriendlyFormPlugin 76621776>,
'ckan.lib.authenticator:UsernamePasswordAuthenticator':
<ckan.lib.authenticator.UsernamePasswordAuthenticator object at 0x4fd5e90>,
'auth_tkt': <AuthTktCookiePlugin 76622160>,
'ckan.lib.authenticator:OpenIDAuthenticator':
<ckan.lib.authenticator.OpenIDAuthenticator object at 0x4fd5e50>}
  routes.route: <routes.route.Route object at 0x4c9da90>
  routes.url: <routes.util.URLGenerator object at 0x4ec3110>
  webob._parsed_query_vars: (GET([]), '')
  webob.adhoc_attrs: {'response': <Response at 0x4908f10 200 OK>,
'language': 'en-us'}
  wsgi process: 'Multithreaded'
  wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x4ec3110>,
{'action': u'index', 'controller':
u'ckanext.pdeu.controllers:MapController'})
------------------------------------------------------------

            <p>Additionally an error occurred while sending the
<weberror.reporter.EmailReporter object at 0x4ec3dd0> report:

            <pre>Traceback (most recent call last):
  File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/weberror/errormiddleware.py",
line 450, in send_report
    rep.report(exc_data)
  File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/weberror/reporter.py",
line 45, in report
    server = smtplib.SMTP(self.smtp_server)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused
</pre>



On Tue, Sep 10, 2013 at 5:26 PM, Kim Haklae <haklaekim at gmail.com> wrote:

> Hi Adria,
>
> Thanks. I missed the comment - "Change plugin name sa_customizations ->
> sa".
> It works now.. :)
>
> Haklae
>
>
> On Tue, Sep 10, 2013 at 12:24 AM, Adrià Mercader <adria.mercader at okfn.org>wrote:
>
>> Hi Kim,
>>
>> The plugin is called "sa", not "sa_customizations":
>> https://github.com/okfn/ckanext-sa/blob/master/setup.py#L29
>>
>> Update your ini file and you should be fine.
>>
>> Adrià
>>
>> On 10 September 2013 04:58, Kim Haklae <haklaekim at gmail.com> wrote:
>> > Hi Pabitra,
>> >
>> > Correct. Where should I do run this command (python setup.py develop)?
>> > I have downloaded and extracted the extension, and executed this
>> command at
>> > that folder.
>> >
>> > - Haklae
>> >
>> >
>> > On Mon, Sep 9, 2013 at 8:42 PM, Pabitra Dash <pkdash_reena at hotmail.com>
>> > wrote:
>> >>
>> >> I am assuming you ran the following command from your extension folder
>> >> (ckanext-sa).
>> >>
>> >> python setup.py develop
>> >>
>> >> Pabitra
>> >>
>> >>
>> >> ________________________________
>> >> Date: Mon, 9 Sep 2013 17:32:41 -0700
>> >> From: haklaekim at gmail.com
>> >> To: ckan-dev at lists.okfn.org
>> >> Subject: [ckan-dev] Install error of ckanext-sa
>> >>
>> >>
>> >> Hi,
>> >>
>> >>
>> >> When I install the ckanext-sa, I got a following error.
>> >> As followed the instructions, ckanext-pdeu is already installed without
>> >> any error. However, it returns "plugin not found exception".
>> >> Thanks in advance.
>> >>
>> >> - Haklae
>> >>
>> >> ==================
>> >> paster serve /etc/ckan/default/development.ini
>> >> Traceback (most recent call last):
>> >>   File "/usr/lib/ckan/default/bin/paster", line 9, in <module>
>> >>     load_entry_point('PasteScript==1.7.5', 'console_scripts',
>> 'paster')()
>> >>   File
>> >>
>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
>> >> line 104, in run
>> >>     invoke(command, command_name, options, args[1:])
>> >>   File
>> >>
>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
>> >> line 143, in invoke
>> >>     exit_code = runner.run(args)
>> >>   File
>> >>
>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
>> >> line 238, in run
>> >>     result = self.command()
>> >>   File
>> >>
>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/serve.py",
>> >> line 284, in command
>> >>     relative_to=base, global_conf=vars)
>> >>   File
>> >>
>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/serve.py",
>> >> line 321, in loadapp
>> >>     **kw)
>> >>   File
>> >>
>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
>> >> line 247, in loadapp
>> >>     return loadobj(APP, uri, name=name, **kw)
>> >>   File
>> >>
>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
>> >> line 272, in loadobj
>> >>     return context.create()
>> >>   File
>> >>
>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
>> >> line 710, in create
>> >>     return self.object_type.invoke(self)
>> >>   File
>> >>
>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
>> >> line 146, in invoke
>> >>     return fix_call(context.object, context.global_conf,
>> >> **context.local_conf)
>> >>   File
>> >>
>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/util.py",
>> >> line 56, in fix_call
>> >>     val = callable(*args, **kw)
>> >>   File
>> >> "/home/haklaekim/ckan/lib/default/src/ckan/ckan/config/middleware.py",
>> line
>> >> 54, in make_app
>> >>     load_environment(conf, app_conf)
>> >>   File
>> >>
>> "/home/haklaekim/ckan/lib/default/src/ckan/ckan/config/environment.py", line
>> >> 133, in load_environment
>> >>     p.load_all(config)
>> >>   File
>> "/home/haklaekim/ckan/lib/default/src/ckan/ckan/plugins/core.py",
>> >> line 95, in load_all
>> >>     find_user_plugins(config)
>> >>   File
>> "/home/haklaekim/ckan/lib/default/src/ckan/ckan/plugins/core.py",
>> >> line 177, in find_user_plugins
>> >>     raise PluginNotFoundException(name)
>> >> ckan.plugins.core.PluginNotFoundException: sa_customizations
>> >>
>> >>
>> >> --
>> >> Dr.Dr. Haklae Kim
>> >> Semantic Web and Open Data Hacker
>> >> Open Knowledge Foundation Korea
>> >> http://thedatahub.kr
>> >> http://getthedata.kr
>> >> http://blogweb.co.kr
>> >> Tel: +82-(0)10-3201-0714
>> >> Who's Who in the World's 27th Edition - 2010
>> >> IBC 2000 Outstanding Scientists - 2010
>> >>
>> >> _______________________________________________ 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
>> >>
>> >
>> >
>> >
>> > --
>> > Dr.Dr. Haklae Kim
>> > Semantic Web and Open Data Hacker
>> > Open Knowledge Foundation Korea
>> > http://thedatahub.kr
>> > http://getthedata.kr
>> > http://blogweb.co.kr
>> > Tel: +82-(0)10-3201-0714
>> > Who's Who in the World's 27th Edition - 2010
>> > IBC 2000 Outstanding Scientists - 2010
>> >
>> > _______________________________________________
>> > 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
>>
>
>
>
> --
> Dr.Dr. Haklae Kim
> Semantic Web and Open Data Hacker
> Open Knowledge Foundation Korea
> http://thedatahub.kr
> http://getthedata.kr
> http://blogweb.co.kr
> Tel: +82-(0)10-3201-0714
> Who's Who in the World's 27th Edition - 2010
> IBC 2000 Outstanding Scientists - 2010
>



-- 
Dr.Dr. Haklae Kim
Semantic Web and Open Data Hacker
Open Knowledge Foundation Korea
http://thedatahub.kr
http://getthedata.kr
http://blogweb.co.kr
Tel: +82-(0)10-3201-0714
Who's Who in the World's 27th Edition - 2010
IBC 2000 Outstanding Scientists - 2010
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130911/75b17ee7/attachment-0001.html>


More information about the ckan-dev mailing list