Comments (6)
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.
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.
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.
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.
That worked! Thank you!
(though I needed to use the same version for Microsoft.Psi.Runtime)
from psi.
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)
- FFmpeg probelm HOT 2
- Question about "FFMPEGMediaSource.cs" HOT 2
- Request to make Microsoft.Psi.MixedReality.StereoKitTransforms properties public HOT 3
- Troubles with RemoteImporter HOT 6
- Will the implementation of "Continual Learning about Objects in the Wild: An Interactive Approach" be opensource? HOT 2
- PSI on Oculus Quest (Android) HOT 4
- Publicizing StereoKitTransforms properties HOT 1
- `NullReferenceException` in MixedReality.cs HOT 1
- Thread-safety bug for the pipeline's stopping state HOT 1
- HoloLens 2 ir cam intrinsics HOT 4
- Fix missing project Microsoft.Psi.Audio.Windows in solution HoloLensCapture.sln
- \psi Studio's 3D panel not rendering properly when using the integrated GPU (but ok with an external monitor) HOT 1
- [Bug]: Hitting an exception when attempting to start hololenscaptureapp in hololens2 using VS2022 HOT 5
- Memory usage of SharedImagePool keeps growing HOT 3
- Poor Serialization Performance for the Diagnostics's `TrackMessageSize` HOT 4
- [Question] Subpipline stop without stopping parent pipline HOT 5
- .NET Native Support
- PsiStoreReader has an inconsistent output for indexed entries on different projects (DotNet vs. UWP) same x64 architecture HOT 2
- Could not load file or assembly 'Microsoft.Psi.Media_Interop.Windows.x64, Version=0.18.72.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. HOT 2
- PsiStudio not displaying correctly properties with new visualizers HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psi.