Unable to run stack.sh on fresh new Ubuntu Xenial 16.04 LTS, script fails with "No module named 'memcache' "
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Global Requirements |
Opinion
|
Undecided
|
Unassigned | ||
OpenStack Identity (keystone) |
Invalid
|
Undecided
|
Unassigned | ||
devstack |
Opinion
|
Undecided
|
Unassigned |
Bug Description
Unable to run stack.sh on fresh new Ubuntu Xenial 16.04 LTS, script fails with "No module named 'memcache' "
Traceback:
+lib/keystone:
2016-11-28 11:51:39.723 15663 CRITICAL keystone [-] ImportError: No module named 'memcache'
2016-11-28 11:51:39.723 15663 TRACE keystone Traceback (most recent call last):
2016-11-28 11:51:39.723 15663 TRACE keystone File "/usr/local/
2016-11-28 11:51:39.723 15663 TRACE keystone sys.exit(main())
2016-11-28 11:51:39.723 15663 TRACE keystone File "/opt/stack/
2016-11-28 11:51:39.723 15663 TRACE keystone cli.main(
2016-11-28 11:51:39.723 15663 TRACE keystone File "/opt/stack/
2016-11-28 11:51:39.723 15663 TRACE keystone CONF.command.
2016-11-28 11:51:39.723 15663 TRACE keystone File "/opt/stack/
2016-11-28 11:51:39.723 15663 TRACE keystone klass = cls()
2016-11-28 11:51:39.723 15663 TRACE keystone File "/opt/stack/
2016-11-28 11:51:39.723 15663 TRACE keystone self.load_
2016-11-28 11:51:39.723 15663 TRACE keystone File "/opt/stack/
2016-11-28 11:51:39.723 15663 TRACE keystone drivers = backends.
2016-11-28 11:51:39.723 15663 TRACE keystone File "/opt/stack/
2016-11-28 11:51:39.723 15663 TRACE keystone cache.configure
2016-11-28 11:51:39.723 15663 TRACE keystone File "/opt/stack/
2016-11-28 11:51:39.723 15663 TRACE keystone cache.configure
2016-11-28 11:51:39.723 15663 TRACE keystone File "/usr/local/
2016-11-28 11:51:39.723 15663 TRACE keystone '%s.' % conf.cache.
2016-11-28 11:51:39.723 15663 TRACE keystone File "/usr/local/
2016-11-28 11:51:39.723 15663 TRACE keystone "%swrap" % prefix, None),
2016-11-28 11:51:39.723 15663 TRACE keystone File "/usr/local/
2016-11-28 11:51:39.723 15663 TRACE keystone _config_prefix
2016-11-28 11:51:39.723 15663 TRACE keystone File "/usr/local/
2016-11-28 11:51:39.723 15663 TRACE keystone for key in config_dict
2016-11-28 11:51:39.723 15663 TRACE keystone File "/usr/local/
2016-11-28 11:51:39.723 15663 TRACE keystone super(MemcacheArgs, self)._
2016-11-28 11:51:39.723 15663 TRACE keystone File "/usr/local/
2016-11-28 11:51:39.723 15663 TRACE keystone self._imports()
2016-11-28 11:51:39.723 15663 TRACE keystone File "/usr/local/
2016-11-28 11:51:39.723 15663 TRACE keystone import memcache # noqa
2016-11-28 11:51:39.723 15663 TRACE keystone ImportError: No module named 'memcache'
2016-11-28 11:51:39.723 15663 TRACE keystone
local.conf
[[local|localrc]]
USE_PYTHON3=True
PYTHON3_VERSION=3.5
Python: 3.5.2
Ubuntu version (lsb_release -a):
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
Changed in devstack: | |
status: | Incomplete → Opinion |
Python3 package for memcache has different name from Python2 package: /pypi.python. org/pypi/ python3- memcached
https:/
Python2 package: /pypi.python. org/pypi/ python- memcached
https:/
This is also a problem for: /bitbucket. org/zzzeek/ dogpile. cache
https:/
And subsequently for Keystone running under Python-3.5.2 with memcached