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

module 'collections' has no attribute 'Iterator' #250

Open
glyh opened this issue Jan 24, 2022 · 2 comments
Open

module 'collections' has no attribute 'Iterator' #250

glyh opened this issue Jan 24, 2022 · 2 comments

Comments

@glyh
Copy link

glyh commented Jan 24, 2022

To reproduce:

$ zerorpc --server --bind tcp://*:1234 time
$ zerorpc --client --connect tcp://127.0.0.1:1234 strftime %Y/%m/%d

Error at client side:

connecting to "tcp://127.0.0.1:1234"
Traceback (most recent call last):
  File "/sbin/zerorpc", line 33, in <module>
    sys.exit(load_entry_point('zerorpc==0.6.3', 'console_scripts', 'zerorpc')())
  File "/usr/lib/python3.10/site-packages/zerorpc/cli.py", line 310, in main
    return run_client(args)
  File "/usr/lib/python3.10/site-packages/zerorpc/cli.py", line 270, in run_client
    if not isinstance(results, collections.Iterator):
AttributeError: module 'collections' has no attribute 'Iterator'
@dwarg
Copy link

dwarg commented Apr 22, 2022

On line 270, in cli.py, change if not isinstance(results, collections.Iterator):
to if not isinstance(results, collections.abc.Iterator):

@bombela
Copy link
Member

bombela commented Oct 4, 2024

Some sort of backward incompatible change from the python lib? How does this change still works on older version of python 😨

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

3 participants