ckan / ckanext-fluent

Multilingual fields for CKAN
Other
23 stars 30 forks source link

HTML #33

Closed guibos closed 4 years ago

guibos commented 4 years ago

I'am trying to install ckanext-fluent but I can not resolve. Note PyPI version not work. Import error:

Traceback:

[Thu May 14 09:46:44.118019 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/etc/ckan/default/apache.wsgi", line 10, in <module>
[Thu May 14 09:46:44.118061 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     application = loadapp('config:%s' % config_filepath)
[Thu May 14 09:46:44.118077 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
[Thu May 14 09:46:44.118198 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     return loadobj(APP, uri, name=name, **kw)
[Thu May 14 09:46:44.118207 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
[Thu May 14 09:46:44.118219 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     return context.create()
[Thu May 14 09:46:44.118225 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Thu May 14 09:46:44.118233 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     return self.object_type.invoke(self)
[Thu May 14 09:46:44.118239 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
[Thu May 14 09:46:44.118247 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     return fix_call(context.object, context.global_conf, **context.local_conf)
[Thu May 14 09:46:44.118254 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
[Thu May 14 09:46:44.118287 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     val = callable(*args, **kw)
[Thu May 14 09:46:44.118294 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/src/ckan/ckan/config/middleware/__init__.py", line 55, in make_app
[Thu May 14 09:46:44.118344 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     load_environment(conf, app_conf)
[Thu May 14 09:46:44.118352 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 116, in load_environment
[Thu May 14 09:46:44.118415 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     p.load_all()
[Thu May 14 09:46:44.118422 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 140, in load_all
[Thu May 14 09:46:44.118472 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     load(*plugins)
[Thu May 14 09:46:44.118479 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 154, in load
[Thu May 14 09:46:44.118490 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     service = _get_service(plugin)
[Thu May 14 09:46:44.118496 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 256, in _get_service
[Thu May 14 09:46:44.118504 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     return plugin.load()(name=plugin_name)
[Thu May 14 09:46:44.118538 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2443, in load
[Thu May 14 09:46:44.118988 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     return self.resolve()
[Thu May 14 09:46:44.119006 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
[Thu May 14 09:46:44.119019 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     module = __import__(self.module_name, fromlist=['__name__'], level=0)
[Thu May 14 09:46:44.119025 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/ckanext/fluent/plugins.py", line 4, in <module>
[Thu May 14 09:46:44.119053 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     from ckanext.fluent import validators, helpers
[Thu May 14 09:46:44.119060 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/ckanext/fluent/validators.py", line 7, in <module>
[Thu May 14 09:46:44.119122 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     from ckanext.fluent.helpers import fluent_form_languages
[Thu May 14 09:46:44.119130 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]   File "/usr/lib/ckan/default/lib/python2.7/site-packages/ckanext/fluent/helpers.py", line 1, in <module>
[Thu May 14 09:46:44.119156 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0]     from ckan.lib.helpers import get_available_locales
[Thu May 14 09:46:44.119171 2020] [wsgi:error] [pid 2916:tid 140580804908800] [remote 127.0.0.1:0] ImportError: cannot import name get_available_locales

I installed ckan-fluent: pip install git+https://github.com/ckan/ckanext-fluent pip install -e "git+https://github.com/ckan/ckanext-scheming.git#egg=ckanext-scheming" pip install -r ckanext-scheming/requirements.txt I edited production.ini:

ckan.plugins = disqus stats text_view image_view recline_view datastore datapusher scheming_datasets scheming_groups scheming_organizations fluent

#   module-path:file to schemas being used
scheming.dataset_schemas = ckanext.fluent:fluent_scheming.json
#   will try to load "spatialx_schema.json" and "spatialxy_schema.json"
#   as dataset schemas

#   For group and organization schemas (replace myplugin with your custom plugin)
scheming.group_schemas =
scheming.organization_schemas =
#
#   URLs may also be used, e.g:
#
# scheming.dataset_schemas = http://example.com/spatialx_schema.json

#   Preset files may be included as well. The default preset setting is:
scheming.presets = ckanext.scheming:presets.json ckanext.fluent:presets.json

imagen