Git Product home page Git Product logo

Comments (6)

AshleyF avatar AshleyF commented on May 12, 2024

What specific issue are you running into? In the latest release, interop (Microsoft.Psi.Interop) as well as the core \psi runtime are .NET Standard libraries and are expected to work cross-platform (any mixture of Linux/Mac/Windows). Please let us know of roadblocks we can investigate.

from psi.

bakuzen avatar bakuzen commented on May 12, 2024

It might be a version problem. Here's my command and the response:

>dotnet add package Microsoft.Psi.Interop Writing /tmp/tmpFbCiBD.tmp info : Adding PackageReference for package 'Microsoft.Psi.Interop' into project '/home/casey/psi_logger/psi_logger.csproj'. info : Restoring packages for /home/casey/psi_logger/psi_logger.csproj... info : GET https://api.nuget.org/v3-flatcontainer/microsoft.psi.interop/index.json info : OK https://api.nuget.org/v3-flatcontainer/microsoft.psi.interop/index.json 229ms error: Unable to find a stable package Microsoft.Psi.Interop with version error: - Found 5 version(s) in nuget.org [ Nearest version: 0.10.16.1-beta ] error: Package 'Microsoft.Psi.Interop' is incompatible with 'all' frameworks in project '/home/casey/psi_logger/psi_logger.csproj'.

from psi.

AshleyF avatar AshleyF commented on May 12, 2024

Very strange! I can repro this. However, if I append a specific version it works: dotnet add package Microsoft.Psi.Interop -v 0.10.16.0-beta.

from psi.

AshleyF avatar AshleyF commented on May 12, 2024

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();
            }
        }
    }
}

from psi.

bakuzen avatar bakuzen commented on May 12, 2024

That worked! Thank you!

(though I needed to use the same version for Microsoft.Psi.Runtime)

from psi.

AshleyF avatar AshleyF commented on May 12, 2024

Glad it worked. I'm closing this issue, but please feel free to reopen it if you're still having trouble.

from psi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.