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

enum34: KeyError in _INDEX_FREQUENCY_FUNCION_DICT lookup #57

Open
tacsnack opened this issue Dec 7, 2018 · 0 comments
Open

enum34: KeyError in _INDEX_FREQUENCY_FUNCION_DICT lookup #57

tacsnack opened this issue Dec 7, 2018 · 0 comments

Comments

@tacsnack
Copy link

tacsnack commented Dec 7, 2018

With enum34 installed (due to other dependencies in a common environment) a KeyError is raised doing the _INDEX_FREQUENCY_FUNCION_DICT lookup.

    self._index_name_func = CMRESHandler._INDEX_FREQUENCY_FUNCION_DICT[self.index_name_frequency]
KeyError: 0

This occurs due to the fact that enum.py treated enums as ints and enum34 treats them as the class. Happy to help resolve this one as this will be a step to making this package py3 compatible potentially.

Thanks for your work on this. A really great package.

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