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

"from collections import ChainMap" fails after "install_aliases()" #226

Open
wcooley opened this issue Aug 5, 2016 · 3 comments
Open

"from collections import ChainMap" fails after "install_aliases()" #226

wcooley opened this issue Aug 5, 2016 · 3 comments

Comments

@wcooley
Copy link

wcooley commented Aug 5, 2016

According to the last example in the "Aliased Imports" section in standard_library_imports.rst and for 0.15.2, this should work:

Python 2.7.11 |Anaconda 2.3.0 (x86_64)| (default, Dec  6 2015, 18:57:58)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> from future.standard_library import install_aliases
>>> install_aliases()
>>> from collections import ChainMap
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name ChainMap
>>> import future
>>> future.__version__
'0.15.2'
@edschofield
Copy link
Contributor

Thanks for reporting this, Wil. I have added a patch to the v0.16.x branch to add ChainMap to collections. Could you please try this and report back?

@Sinderella
Copy link

Sinderella commented Jan 10, 2017

I experienced the same issue, on v0.16.0, but the one, on the branch v0.16.x, is working now.

@eode
Copy link

eode commented Jan 2, 2018

This hasn't been fixed and released? Your docs still say ChainMap is available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants