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

capnp.AsyncIoStream does not exist #326

Open
lenianiva opened this issue Sep 28, 2023 · 2 comments
Open

capnp.AsyncIoStream does not exist #326

lenianiva opened this issue Sep 28, 2023 · 2 comments

Comments

@lenianiva
Copy link

I have

>>> capnp.__version__
'1.3.0'

There is no capnp.AsyncIoStream as shown in calculator client example:

>>> capnp.AsyncIoStream
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'capnp' has no attribute 'AsyncIoStream'. Did you mean: 'PyAsyncIoStream'?

Without this stream object, is there another way to write the async client?

@lenianiva
Copy link
Author

The documentation says we can just pass in a raw string: http://capnproto.github.io/pycapnp/capnp.html

@tobiasah
Copy link
Contributor

tobiasah commented Oct 2, 2023

Hey

I think the problem is that the documentation points to the master branch of this github repo. The latest master changes do change things quite a lot and are not compatible with the latest release on pypi. (Your error message seconds this as far as I can tell)

I would try running the examples from an older version, from the time of the last release.
https://github.com/capnproto/pycapnp/tree/5061cdd1eed5985eefb92c5843c0be3a8b061e0b

OR

Installing the latest master version (which requires a c++ compiler)

(there is also a branch 1.0.x but it does not seem to be up to date with the last official release.)

Let me know if this fixes things for you.

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

2 participants