Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot import name _uuid_generate_random #306

Closed
KrzysztofMadejski opened this issue May 30, 2017 · 1 comment
Closed

cannot import name _uuid_generate_random #306

KrzysztofMadejski opened this issue May 30, 2017 · 1 comment

Comments

@KrzysztofMadejski
Copy link
Member

KrzysztofMadejski commented May 30, 2017

(ckan) kmadejski@kmadejski-tecra:/home/ckan/src/ckan$ paster datastore set-permissions
Traceback (most recent call last):
  File "/home/kmadejski/.virtualenvs/ckan/bin/paster", line 11, in <module>
    sys.exit(run())
  File "/home/kmadejski/.virtualenvs/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
    invoke(command, command_name, options, args[1:])
  File "/home/kmadejski/.virtualenvs/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
  File "/home/kmadejski/.virtualenvs/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
    result = self.command()
  File "/home/kmadejski/.virtualenvs/ckan/src/ckan/ckanext/datastore/commands.py", line 70, in command
    self._load_config()
  File "/home/kmadejski/.virtualenvs/ckan/src/ckan/ckan/lib/cli.py", line 148, in _load_config
    load_environment(conf.global_conf, conf.local_conf)
  File "/home/kmadejski/.virtualenvs/ckan/src/ckan/ckan/config/environment.py", line 232, in load_environment
    p.load_all(config)
  File "/home/kmadejski/.virtualenvs/ckan/src/ckan/ckan/plugins/core.py", line 134, in load_all
    load(*plugins)
  File "/home/kmadejski/.virtualenvs/ckan/src/ckan/ckan/plugins/core.py", line 148, in load
    service = _get_service(plugin)
  File "/home/kmadejski/.virtualenvs/ckan/src/ckan/ckan/plugins/core.py", line 254, in _get_service
    return plugin.load()(name=plugin_name)
  File "/home/kmadejski/.virtualenvs/ckan/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2302, in load
    return self.resolve()
  File "/home/kmadejski/.virtualenvs/ckan/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2308, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/kmadejski/.virtualenvs/ckan/src/ckanext-danepubliczne/ckanext/danepubliczne/schema/__init__.py", line 5, in <module>
    from dataset import DatasetForm
  File "/home/kmadejski/.virtualenvs/ckan/src/ckanext-danepubliczne/ckanext/danepubliczne/schema/dataset.py", line 13, in <module>
    from ckanext.qa.plugin import QAPlugin
  File "/home/kmadejski/.virtualenvs/ckan/src/ckanext-qa/ckanext/qa/plugin.py", line 11, in <module>
    from ckanext.qa import lib
  File "/home/kmadejski/.virtualenvs/ckan/src/ckanext-qa/ckanext/qa/lib.py", line 9, in <module>
    from ckan.lib.celery_app import celery
  File "/home/kmadejski/.virtualenvs/ckan/src/ckan/ckan/lib/celery_app.py", line 14, in <module>
    celery = Celery()
  File "/home/kmadejski/.virtualenvs/ckan/local/lib/python2.7/site-packages/celery/__init__.py", line 26, in Celery
    from .app import App
  File "/home/kmadejski/.virtualenvs/ckan/local/lib/python2.7/site-packages/celery/app/__init__.py", line 22, in <module>
    from ..utils import cached_property, instantiate
  File "/home/kmadejski/.virtualenvs/ckan/local/lib/python2.7/site-packages/celery/utils/__init__.py", line 31, in <module>
    from kombu.utils import cached_property, gen_unique_id  # noqa
  File "/home/kmadejski/.virtualenvs/ckan/local/lib/python2.7/site-packages/kombu/utils/__init__.py", line 17, in <module>
    from uuid import UUID, uuid4 as _uuid4, _uuid_generate_random
ImportError: cannot import name _uuid_generate_random

Happening with Kombu 2.5.0 and Python 2.7.11, has been fixed in Kombu 3.0.30: celery/kombu#545. With Python 2.7.6 works ok.

@KrzysztofMadejski
Copy link
Member Author

Related to ckan/ckanext-qa#43

KrzysztofMadejski added a commit to DanePubliczneGovPl/ckanext-qa that referenced this issue May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant