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

GuardedhandshakeState might throw an error on py2 if future is installed #1

Closed
tgalal opened this issue Apr 24, 2019 · 1 comment
Closed

Comments

@tgalal
Copy link
Owner

tgalal commented Apr 24, 2019

On python2 if 'future' was globally installed or accessible by dissononce, transitions lib will successfully do a from builtins import object eventhough it seems intended for py3 only. This imported object in py2 already has a next() method, causing a conflict with 'next' that is defined as a state action/transition and raises a TypeError: newobject is not an iterator

tgalal added a commit that referenced this issue Apr 24, 2019
refs #1 GuardedhandshakeState might throw an error on py2 if
future is installed

On python2 if 'future' was globally installed, transitions lib
will successfully do a "from builtins import object" eventhough
it seems intended for py3 only. This imported object in py2
already has a 'next()' method, causing a conflict with 'next'
that is defined as a state action/transition and raises a
'TypeError: newobject is not an iterator'
@tgalal
Copy link
Owner Author

tgalal commented Apr 24, 2019

fixed

@tgalal tgalal closed this as completed Apr 24, 2019
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