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

(past.builtins) ImportError: cannot import name 'Iterable' from 'collections' #617

Closed
James-E-A opened this issue May 4, 2023 · 1 comment

Comments

@James-E-A
Copy link

It looks like future-0.16.0 is not compatible with Python 3.10...

Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import future, past  # No problem here...
>>> from past.builtins import basestring  # Here's the rub
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\EdingtonJames\AppData\Roaming\Python\Python310\site-packages\past\builtins\__init__.py", line 43, in <module>
    from past.builtins.noniterators import (filter, map, range, reduce, zip)
  File "C:\Users\EdingtonJames\AppData\Roaming\Python\Python310\site-packages\past\builtins\noniterators.py", line 24, in <module>
    from past.types import basestring
  File "C:\Users\EdingtonJames\AppData\Roaming\Python\Python310\site-packages\past\types\__init__.py", line 25, in <module>
    from .oldstr import oldstr
  File "C:\Users\EdingtonJames\AppData\Roaming\Python\Python310\site-packages\past\types\oldstr.py", line 5, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (C:\Program Files\Python310\lib\collections\__init__.py)

This blocks the corresponding issue in every project that depends on the past module, such as Wiston999/python-rubik#14

@James-E-A
Copy link
Author

James-E-A commented May 4, 2023

Actually, sorry; it looks like this issue is invalid (already solved in 02fdb32); the dependent had pinned an old, broken version of the library. :/

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