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
interop in linux :feature request: #43
Comments
What specific issue are you running into? In the latest release, interop ( |
It might be a version problem. Here's my command and the response:
|
Very strange! I can repro this. However, if I append a specific version it works: |
BTW, I just verified that the following works with both ends running under Ubuntu. Hopefully this works for you: import zmq, json
socket = zmq.Context().socket(zmq.SUB)
socket.connect("tcp://localhost:12345")
socket.setsockopt(zmq.SUBSCRIBE, '')
while True:
[topic, message] = socket.recv_multipart()
j = json.loads(message)
print "Message: ", repr(j['message']) using System;
using Microsoft.Psi;
using Microsoft.Psi.Interop;
using Microsoft.Psi.Interop.Format;
using Microsoft.Psi.Interop.Serialization;
using Microsoft.Psi.Interop.Transport;
namespace Test
{
class Program
{
static void Main(string[] args)
{
using (var p = Pipeline.Create())
{
var gen = Generators.Range(p, 0, 1000, TimeSpan.FromMilliseconds(100));
var sin = gen.Select(x => Math.Sin(x / 100.0));
var mq = new NetMQWriter<double>(p, "sin-topic", "tcp://localhost:12345", JsonFormat.Instance);
sin.PipeTo(mq);
p.Run();
}
}
}
} |
That worked! Thank you! (though I needed to use the same version for Microsoft.Psi.Runtime) |
Glad it worked. I'm closing this issue, but please feel free to reopen it if you're still having trouble. |
Interop works beautifully when the psi app is running in Windows (and I can interop with Linux modules in other languages) using zmq. However, I'd like to setup an app on a Linux box and it would be really helpful to have interop capabilities.
The text was updated successfully, but these errors were encountered: