-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Labels
bugSomething isn't workingSomething isn't workingdependenciesPull requests that update a dependency filePull requests that update a dependency fileenhancementNew feature or requestNew feature or request
Description
What happened?
- i want to use the function https://python.stockindicators.dev/indicators/ZigZag/
- it cant find the dll
- i checked that the dll exists using:
ls -all /Users/myuser/my-pthon-project/venv/lib/python3.9/site-packages/stock_indicators/_cslib/lib
and it does exist.
- System Version: macOS 15.2 (24C101), Kernel Version: Darwin 24.2.0
- .NET for MacOs is installed:
dotnet --version
9.0.101
- python.net is installed:
pip3 show pythonnet
Name: pythonnet
Version: 3.0.5
Code usage
from stock_indicators import Quote, EndType, indicators
...
results = indicators.get_zig_zag(quotes_list, EndType.HIGH_LOW, 3)Log output
import sys; print('Python %s on %s' % (sys.version, sys.platform))
/Users/myuser/my-python-project/venv/bin/python -X pycache_prefix=/Users/myuser/Library/Caches/JetBrains/IntelliJIdea2023.3/cpython-cache /Users/myuser/Library/Application Support/JetBrains/IntelliJIdea2023.3/plugins/python/helpers/pydev/pydevd.py --multiprocess --qt-support=auto --client 127.0.0.1 --port 50730 --file /Users/myuser/my-python-project/scripts/find-candlestick-patterns.py
Connected to pydev debugger (build 233.13135.103)
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Users/myuser/my-python-project/venv/lib/python3.9/site-packages/stock_indicators/__init__.py", line 17, in <module>
from stock_indicators import indicators
File "/Users/myuser/my-python-project/venv/lib/python3.9/site-packages/stock_indicators/indicators/__init__.py", line 3, in <module>
from stock_indicators import _cslib
File "/Users/myuser/my-python-project/venv/lib/python3.9/site-packages/stock_indicators/_cslib/__init__.py", line 25, in <module>
clr.AddReference(skender_stock_indicators_dll_path)
System.IO.FileNotFoundException: Could not load file or assembly '/Users/myuser/my-python-project/venv/lib/python3.9/site-packages/stock_indicators/_cslib/lib/Skender.Stock.Indicators.dll, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: '/Users/myuser/my-python-project/venv/lib/python3.9/site-packages/stock_indicators/_cslib/lib/Skender.Stock.Indicators.dll, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext, RuntimeAssembly requestingAssembly, Boolean throwOnFileNotFound)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Python.Runtime.AssemblyManager.LoadAssembly(AssemblyName name) in /home/benedikt/.cache/uv/sdists-v6/.tmpkW03e6/pythonnet-3.0.5/src/runtime/AssemblyManager.cs:line 234
at Python.Runtime.CLRModule.AddReference(String name) in /home/benedikt/.cache/uv/sdists-v6/.tmpkW03e6/pythonnet-3.0.5/src/runtime/Types/ClrModule.cs:line 109
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
python-BaseExceptionReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdependenciesPull requests that update a dependency filePull requests that update a dependency fileenhancementNew feature or requestNew feature or request
Type
Projects
Status
✅ Done