Microsoft Windows [Version 10.0.19044.2846]
(c) Microsoft Corporation. All rights reserved.
(test1) D:\algo trading\candlestick>python init.py
Traceback (most recent call last):
File "D:\algo trading\candlestick_init_.py", line 9, in <module>
import mplfinance as mpf
File "C:\Users\Dell\AppData\Roaming\Python\Python39\site-packages\mplfinance_init_.py", line 2, in <module>
from mplfinance.plotting import plot, make_addplot
File "C:\Users\Dell\AppData\Roaming\Python\Python39\site-packages\mplfinance\plotting.py", line 1, in <module>
import matplotlib.dates as mdates
File "C:\Users\Dell\AppData\Roaming\Python\Python39\site-packages\matplotlib_init_.py", line 161, in <module>
from . import _api, version, cbook, docstring, rcsetup
File "C:\Users\Dell\AppData\Roaming\Python\Python39\site-packages\matplotlib\rcsetup.py", line 27, in <module>
from matplotlib.colors import Colormap, is_color_like
File "C:\Users\Dell\AppData\Roaming\Python\Python39\site-packages\matplotlib\colors.py", line 51, in <module>
from PIL import Image
File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py", line 100, in <module>
from . import imaging as core
ImportError: DLL load failed while importing imaging: The specified module could not be found.
(test1) D:\algo trading\candlestick>python init.py
Traceback (most recent call last):
File "D:\algo trading\candlestick_init.py", line 2, in <module>
import pandas as pd
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas_init.py", line 16, in <module>
raise ImportError(
ImportError: Unable to import required dependencies:
numpy:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
Troubleshooting — NumPy v2.2.dev0 Manual
(test1) D:\algo trading\candlestick>python init.py
Traceback (most recent call last):
File "D:\algo trading\candlestick_init.py", line 2, in <module>
import pandas as pd
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas_init.py", line 16, in <module>
raise ImportError(
ImportError: Unable to import required dependencies:
numpy:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
Troubleshooting — NumPy v2.2.dev0 Manual
Please note and check the following:
* The Python version is: Python3.9 from "D:\algo trading\test1\Scripts\python.exe"
* The NumPy version is: "1.21.6"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: DLL load failed while importing _multiarray_umath: The specified module could not be found.
(test1) D:\algo trading\candlestick>
Hi Arun,
This error might be due to some issues with a particular version of numpy. I would suggest you downgrade the numpy version to "1.19.5" and then running the code again. Please do let us know if the issue persists.
Thanks,
Akshay