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

Default state store does not get instantiated on flows.statestore in Django 1.6 #18

Open
sergioisidoro opened this issue Apr 23, 2016 · 0 comments

Comments

@sergioisidoro
Copy link

sergioisidoro commented Apr 23, 2016

 def setup():
      self = sys.modules[__name__]
     self.state_store = _get_state_store()

Fails to instantiate state_store in some cases, resulting in failure in a clean installation on 2.7, Django 1.6.

with the simple code:

from flows.handler import FlowHandler
In [5]: from flows.handler import FlowHandler
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-5-975c8159df94> in <module>()
----> 1 from flows.handler import FloatingPointError

/Users/sergioisidoro/a/lib/python2.7/site-packages/flows/handler.py in <module>()
     11     get_by_class_or_name
     12 from flows.history import FlowHistory
---> 13 from flows.statestore import state_store as default_state_store
     14 from flows.statestore.base import StateNotFound
     15 import inspect

ImportError: cannot import name state_store
sergioisidoro pushed a commit to sergioisidoro/django-flows that referenced this issue Apr 23, 2016
@sergioisidoro sergioisidoro changed the title Default state store does not get instantiated on flows.statestore Default state store does not get instantiated on flows.statestore in Django 1.6 Apr 23, 2016
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