Visual Studio Nuget error, Unable to load DLL 'tensorflow'
Visual Studio Nuget error, Unable to load DLL 'tensorflow'
15 Jan 2021, 13:11
Hi, Thank you very much for reading my problem.
I found an older post that might have a similar problem, that was solved please see
may i please go straight into my problem :
I am trying to use Tensorflow.Net which can be installed through NuGet, in cBot, while opening in Visual Studios realizing cBot's Target Framework is 4 Client Profile, i changed to 4.7.2 not knowing if it has any negative consequences and proceeded with NuGet install. after the install and build, there is this error 'You must add a reference to assembly ''netstandard', then i unloaded the project and edit .csproj , putting
<Reference Include="netstandard" />
Below <ItemGroup>
and reloaded then this error was gone but again not knowing if there's any ramification. the build doesn't show up any error in visual studio but then when i run the cbot, it crashes and throws an exception :
Crashed in OnStart with DllNotFoundException: Unable to load DLL 'tensorflow': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
tensorflow.net works fine in a console application on my pc. please see the following code, it has a few lines but crashes on first line .
using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;
using Tensorflow;
namespace cAlgo.Robots
{
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]
public class hi : Robot
{
protected override void OnStart()
{
Graph graph = new Graph().as_default();
// Tensorflow.Binding.tf.compat.v1.disable_eager_execution();
//......
}
}
}
Thank you very much
Replies
PanagiotisCharalampous
15 Jan 2021, 13:41
Hi 1222Ht,
cTrader Automate doesn't support .Net Standard at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
prosteel1
18 Jan 2021, 15:42
( Updated at: 18 Jan 2021, 15:46 )
RE:
PanagiotisCharalampous said:
Hi 1222Ht,
cTrader Automate doesn't support .Net Standard at the moment.
Best Regards,
Panagiotis
I believe we are waiting for cTrader 4.0 Beta which should support .Net Core and hopefully this should work? Is that the idea? and any timeframe for the release Panagiotis? I'm expecting it early 2021.
Personally I'm waiting for the .Net Core version to hopefully allow me to use PyTorch as Tensorflow is not the bleeding edge anymore.
From what I've seen it looks like .Net Core supports .Net Standard but not sure tbh.
@prosteel1
PanagiotisCharalampous
18 Jan 2021, 17:05
Hi prosteel1,
Unfortunately this will not be not a part of cTrader Desktop 4.0.
Best Regards,
Panagiotis
@PanagiotisCharalampous
1222Ht
19 Jan 2021, 12:05
RE: RE:
prosteel1 said:
PanagiotisCharalampous said:
Hi 1222Ht,
cTrader Automate doesn't support .Net Standard at the moment.
Best Regards,
Panagiotis
"...PyTorch as Tensorflow is not the bleeding edge anymore."
interestin. any expert has any comment or insight to share as to broaden newbies conception on their differences n possibily individually each ones advantages n drawbacks, thanks
@1222Ht
prosteel1
19 Jan 2021, 18:22
RE: RE: RE:
1222Ht said:
prosteel1 said:
PanagiotisCharalampous said:
Hi 1222Ht,
cTrader Automate doesn't support .Net Standard at the moment.
Best Regards,
Panagiotis
"...PyTorch as Tensorflow is not the bleeding edge anymore."
interestin. any expert has any comment or insight to share as to broaden newbies conception on their differences n possibily individually each ones advantages n drawbacks, thanks
Lex Fridman has a lot of info, start here:
Panagiotis, is there any timeframe for .Net Core?
@prosteel1
PanagiotisCharalampous
20 Jan 2021, 08:03
Hi prosteel1,
No, it is work in progress.
Best Regards,
Panagiotis
@PanagiotisCharalampous
... Deleted by UFO ...