circular import between opts and auth_token
Bug #1591913 reported by
Alfredo Moralejo
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keystonemiddleware |
Fix Released
|
High
|
Samuel de Medeiros Queiroz |
Bug Description
When i try to import keystonemiddleware opts i get following error:
from keystonemiddleware import opts
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "keystonemiddle
from keystonemiddlew
File "keystonemiddle
from keystonemiddleware import opts
ImportError: cannot import name opts
This seems to be caused by a circular imports between opts and auth_token.
This is causing other projects, as sahara to fail when trying to generate configuration.
Changed in keystonemiddleware: | |
assignee: | nobody → Alfredo Moralejo (amoralej) |
status: | New → In Progress |
Changed in keystonemiddleware: | |
assignee: | Samuel de Medeiros Queiroz (samueldmq) → Alfredo Moralejo (amoralej) |
Changed in keystonemiddleware: | |
assignee: | Alfredo Moralejo (amoralej) → Samuel de Medeiros Queiroz (samueldmq) |
assignee: | Samuel de Medeiros Queiroz (samueldmq) → Alfredo Moralejo (amoralej) |
Changed in keystonemiddleware: | |
assignee: | Alfredo Moralejo (amoralej) → Samuel de Medeiros Queiroz (samueldmq) |
To post a comment you must log in.
I was not able to reproduce it in an Ubuntu VM with a fresh DevStack installation:
stack@openstack :~/devstack$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from keystonemiddleware import opts
>>>
I confirmed with EmilienM and jaosorior in IRC tahat this is only happens on a CentOS system because of the Python interpreter that is shipped with it.
Perhaps a way to test it would be to have gates runnning on CentOS.