# Error Message importing TorchSharp

**URL:** <http://forum.vvvv.org/t/error-message-importing-torchsharp/18992>\
**Category:** question\
**Created:** [December 11, 2020, 2:19pm UTC](http://forum.vvvv.org/t/error-message-importing-torchsharp/18992 "2020-12-11T14:19:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominikKoller](http://forum.vvvv.org/user_avatar/forum.vvvv.org/dominikkoller/32/192_2.png) [@dominikKoller](http://forum.vvvv.org/u/dominikKoller)\
**Post date:** [December 11, 2020, 2:19pm UTC](http://forum.vvvv.org/t/error-message-importing-torchsharp/18992/1 "2020-12-11T14:19:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Elias](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/e/999999/32.png) [@Elias](http://forum.vvvv.org/u/Elias)\
**Post date:** [December 11, 2020, 6:41pm UTC](http://forum.vvvv.org/t/error-message-importing-torchsharp/18992/2 "2020-12-11T18:41:30Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![Hadasi](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/h/999999/32.png) [@Hadasi](http://forum.vvvv.org/u/Hadasi)\
**Post date:** [December 12, 2020, 10:29pm UTC](http://forum.vvvv.org/t/error-message-importing-torchsharp/18992/3 "2020-12-12T22:29:42Z")

</div>

We should talk :-)

---

<div class="post-metadata">

**Author:** ![dominikKoller](http://forum.vvvv.org/user_avatar/forum.vvvv.org/dominikkoller/32/192_2.png) [@dominikKoller](http://forum.vvvv.org/u/dominikKoller)\
**Post date:** [December 19, 2020, 2:47pm UTC](http://forum.vvvv.org/t/error-message-importing-torchsharp/18992/4 "2020-12-19T14:47:23Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Hadasi](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/h/999999/32.png) [@Hadasi](http://forum.vvvv.org/u/Hadasi)\
**Post date:** [December 28, 2020, 5:00pm UTC](http://forum.vvvv.org/t/error-message-importing-torchsharp/18992/5 "2020-12-28T17:00:33Z")

</div>

@dominikKoller are you on Element/Riot?

---

<div class="post-metadata">

**Author:** ![system](http://forum.vvvv.org/user_avatar/forum.vvvv.org/system/32/1_2.png) [@system](http://forum.vvvv.org/u/system)\
**Post date:** [December 28, 2021, 5:01pm UTC](http://forum.vvvv.org/t/error-message-importing-torchsharp/18992/6 "2021-12-28T17:01:27Z")

</div>

Closed on December 28, 2021, 5:01pm UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
