You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying out the README.md documentation and i encountered this error when running "python buy_and_hold_backtest.py"
`RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa
Traceback (most recent call last):
File "/home/emperor/venv/qstraderp3/lib/python3.6/site-packages/pandas/init.py", line 25, in
from pandas import hashtable, tslib, lib
ImportError: numpy.core.multiarray failed to import
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "buy_and_hold_backtest.py", line 7, in
from qstrader.trading_session import TradingSession
File "/home/emperor/venv/qstraderp3/lib/python3.6/site-packages/qstrader/trading_session.py", line 5, in
from .price_handler.yahoo_daily_csv_bar import YahooDailyCsvBarPriceHandler
File "/home/emperor/venv/qstraderp3/lib/python3.6/site-packages/qstrader/price_handler/yahoo_daily_csv_bar.py", line 3, in
import pandas as pd
File "/home/emperor/venv/qstraderp3/lib/python3.6/site-packages/pandas/init.py", line 31, in
"extensions first.".format(module))
ImportError: C extension: umpy.core.multiarray failed to import not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace' to build the C extensions first.`
I am running on an Ubuntu 18.04 machine, are there any possible solutions/alternatives?
The text was updated successfully, but these errors were encountered:
Hi,
I was trying out the README.md documentation and i encountered this error when running "python buy_and_hold_backtest.py"
`RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa
Traceback (most recent call last):
File "/home/emperor/venv/qstraderp3/lib/python3.6/site-packages/pandas/init.py", line 25, in
from pandas import hashtable, tslib, lib
ImportError: numpy.core.multiarray failed to import
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "buy_and_hold_backtest.py", line 7, in
from qstrader.trading_session import TradingSession
File "/home/emperor/venv/qstraderp3/lib/python3.6/site-packages/qstrader/trading_session.py", line 5, in
from .price_handler.yahoo_daily_csv_bar import YahooDailyCsvBarPriceHandler
File "/home/emperor/venv/qstraderp3/lib/python3.6/site-packages/qstrader/price_handler/yahoo_daily_csv_bar.py", line 3, in
import pandas as pd
File "/home/emperor/venv/qstraderp3/lib/python3.6/site-packages/pandas/init.py", line 31, in
"extensions first.".format(module))
ImportError: C extension: umpy.core.multiarray failed to import not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace' to build the C extensions first.`
I am running on an Ubuntu 18.04 machine, are there any possible solutions/alternatives?
The text was updated successfully, but these errors were encountered: