Error Message importing TorchSharp

Hello

I ran a quick test, trying to import the PyTorch wrapper library TorchSharp, but I’m getting a complicated error message trying to use it.

How to reproduce:
Open vvvv Gamma 2020.2.0
Manage Nugets → Command Line → nuget install TorchSharp -Version 0.3.52363
Dependencies → .NET Nugets → activate TorchSharp Nuget

now create some node, eg TorchSharp → Tensor → BoolTensor → Zeros

on creating the node and on hovering any of its pins I get the error message:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: enumType
   at System.Enum.ToObject(Type enumType, Int32 value)
   at VL.Lang.Platforms.Roslyn.ImportedParameterPinDefinitionSymbol.GetDefaultValue()
   at VL.Lang.Platforms.Roslyn.ImportedParameterPinDefinitionSymbol.get_DefaultValue()
   at VL.Lang.Symbols.ScopedPinDefintionSymbol.get_DefaultValue()
   at VL.Lang.Symbols.PatchedNodePinSymbol.get_Value()
   at VL.Lang.Symbols.PatchedNodePinSymbol.<get_Messages>d__63.MoveNext()
   at VL.Lang.Symbols.PatchAndDataflowHelpers.<CollectMessages>d__8.MoveNext()
   at VL.Lang.Symbols.PatchAndDataflowHelpers.<CollectMessages>d__8.MoveNext()
   at VL.Lang.Symbols.PatchAndDataflowHelpers.<CollectMessages>d__8.MoveNext()
   at System.Linq.Enumerable.<ConcatIterator>d__59`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at VL.Lang.Symbols.ConcreteTypeSymbol.<.ctor>b__18_2()
   at VL.Lang.Symbols.SafeLazy`1.CreateValue()
   at VL.Lang.Symbols.ConcreteTypeSymbol.ComputeMessages()
   at VL.Lang.Symbols.PatchedConcreteTypeSymbol.ComputeMessages()
   at VL.Lang.Symbols.SafeLazy`1.CreateValue()
   at VL.Lang.Symbols.ConcreteTypeSymbol.get_Messages()
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.Linq.Enumerable.<ConcatIterator>d__59`1.MoveNext()
   at System.Linq.Lookup`2.Create[TSource](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at VL.Model.ModelExtensions.GetSymbolMessageLookup(Canvas canvas, PreCompilation compilation)
   at VL.Model.InterlockedHelper.CacheNoLock[T](T& location, Func`1 query)
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at VL.Lang.View.CanvasView.<CheckCompileTimeErrors>d__130.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at VL.Lang.View.CanvasView.<CheckSymbolsAsync>d__128.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

Maybe this helps you find some bug. Maybe the bug isn’t yours. Hope this helps.

Hey Dominik, thanks for the report.

The culprit seems to be the package only delivering an assembly for netcore3.1 while we’re currently still running on net472. So I fear this package will only start working once we moved to net5 (the successor of netcore3.1 and net4).

We should talk :-)

right thanks @elias!
If there’s any possibility for you to let users know when they import a nuget that’s not going to work that could be helpful.

@hadasi sure let’s!

@dominikKoller are you on Element/Riot?