-
Notifications
You must be signed in to change notification settings - Fork 20
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
Error: This vat only supports a bootstrap interface, not the old Cap'n-Proto-0.4-style named exports #223
Comments
Yes, it uses the original (simpler) bootstrapping scheme. I didn't know anyone was using the newer one (I thought it might have been abandoned). I think you probably just need to use Possibly the OCaml code should skip setting the ID if it's the empty string so it can support either scheme. capnp-rpc/capnp-rpc-net/serialise.ml Line 73 in 8365bca
|
Thanks for the quick reply. Unfortunately, it looks like the workaround you suggested will not work, because the Do you have any ideas for other workarounds? Thanks. |
Did the other change I suggested work? i.e. don't set the |
Ah sorry, I thought that was more of a meta-comment, not something for me to try. I tried it now, and I can indeed confirm it works. See PR #224. |
Fix #223 by skipping the setting of object_id if it is empty
I'm trying to use capnp to connect an Ocaml process to a Python process. I have successfully followed the 'echo'-tutorial of
capnp-rpc
, getting an Ocaml client to talk to an Ocaml server. I created a similar setup in Python (having two python processes talk to each other). Now I wish to run the echo-server in a Python process and use an Ocaml client to connect to it. However, I am met with the following error:This error seems to originate from the C++ code that Python binds to:
https://github.com/capnproto/capnproto/blob/3f01eac812af3ca863d55981423fb90c08be0809/c%2B%2B/src/capnp/rpc.c%2B%2B#L2579-L2580
Am I doing something wrong while calling for the service, or is the implementation still using these 0.4-style named exports? Below is the code to reproduce:
The text was updated successfully, but these errors were encountered: