Closed sensharma closed 2 years ago
@sensharma Thank you for detail report. Because we have dependency on pythonnet, you have to make sure that you have CLR runtime on your machine.
You can download from here:
@LeeDongGeon1996 Hi, I first installed the ASP.NET runtime as per instructions here, following from the link you provided. When that did not work, I installed the full .NET sdk. Also tried uninstalling and re-installing stock-indicators after installing the runtime and sdk. But I keep getting the same error. What am I missing? Thanks.
Current dotnet --info
output below
.NET SDK (reflecting any global.json):
Version: 6.0.400
Commit: 7771abd614
Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: ubuntu.20.04-x64
Base Path: /usr/share/dotnet/sdk/6.0.400/
global.json file:
Not found
Host:
Version: 6.0.8
Architecture: x64
Commit: 55fb7ef977
.NET SDKs installed:
6.0.400 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Download .NET:
https://aka.ms/dotnet-download
Learn about .NET Runtimes and SDKs:
https://aka.ms/dotnet/runtimes-sdk-info
Ok, I have managed to sort this issue out by installing pythonnet separately using conda as mentioned here, before installing stock-indicators using pip
.
This automatically installs mono
within the virtual environment. No .NET runtime/sdk required separately. pip
dependencies, either for stock-indicators or pythonnet, are not properly defined.
This step should definitely find mention in Installation and setup.
Closing this issue.
The problem
Using python 3.9 and stock-indicators v0.8.1, installed using pip on Ubuntu 20.04, I get
Error message(s):
The problem seems to originate from
pythonnet
(pip automatically installs v3.0.0a1 for me). Traceback below.To Reproduce
Simply using import statements such as
import stock_indicators
orfrom stock_indicators.indicators.common.quote import Quote
Full traceback: