You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/11/01 16:25:12 UTC

[GitHub] [beam] udim commented on pull request #15850: Fix abc imports from collections

udim commented on pull request #15850:
URL: https://github.com/apache/beam/pull/15850#issuecomment-956381417


   Hi, thanks for the contribution!
   
   I think you need `from collections.abc import Sequence`, at least for Python 3.8:
   ```
   >>> import collections
   >>> collections.abc.Sequence
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/usr/local/google/home/ehudm/.pyenv/versions/3.8.12/lib/python3.8/collections/__init__.py", line 55, in __getattr__
       raise AttributeError(f'module {__name__!r} has no attribute {name!r}')
   AttributeError: module 'collections' has no attribute 'abc'
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org