Closed fede72bari closed 1 year ago
May be related to #277 @LeeDongGeon1996 I saw some work you were doing for vNext, are we changing how we’re handling dependencies?
before i downgrade something that could badly affect other parts of my code, may I ask which possible cause appear to be similar to the case you have mentioned? I am a beginner, but the final parts of the two errors appear to be very different to me. In this one no mention of "Mono" and in the other one no mention of "func = _LOADER_ASSEMBLY["Python.Runtime.Loader.Initialize"]" and no mention to "TypeError: 'Assembly' object is not subscriptable"
On version <=0.8.1, We support Mono and .NET runtime both and we have dependency on pythonnet to achieve it. pythonnet uses internally clr-loader to load clr, such as .NET runtime or Mono. Depend on which your system is, clr-loader tries to load default CLR(e.g. default clr on Linux is Mono). How they load various CLR is abstracted by them. Anyway, clr-loader had been updated to v0.2.3 and it is compatible only with latest pythonnet(>=3.0.0.post1). The error msg you've got is from incompatibility between legacy pythonnet(3.0.0a1) and the latest clr-loader. More detail about error message is the problem about how they load clr by system, so it'd be better to ask to pythonnet.
FYI, probably in the next week we are going to release official stock-indicators
for python v1.0.0. And it supports only .NET6 and dropped Mono support. It is much more reliable and faster than now.
got same issue
pip install pythonnet -U
Solved it for me.
@traderblakeq Thanks for your helpful comment :)
The problem
I have installed stock_indicators using pip from jupyter/anaconda environment and the installation ended successfully. Regretfully, when I try to import "indicators" I got an error. The attempts to restart the kernel and restart the full anaconda environment after the library installation have been unsuccessful.
PS: repeated all the installation operations by the command line. Nothing changed.
Error message(s):
To Reproduce
In jupyter
pip install stock-indicators
[restart kernel, anaconda, PC, everything]from stock_indicators import indicators