zipline-trader
zipline-trader copied to clipboard
ValueError: numpy.ndarray size changed
Hi,
Following an example from here manual gives the following error. Although the Python version is 3.9 instead of the recommended 3.6 I thought that raising this issue may be beneficial.
Kind regards, Djangu
~/.local/lib/python3.9/site-packages/zipline/data/bundles$ python3 alpaca_api.py
Traceback (most recent call last):
File "/home/user1/.local/lib/python3.9/site-packages/zipline/data/bundles/alpaca_api.py", line 12, in <module>
import zipline.config
File "/home/user1/.local/lib/python3.9/site-packages/zipline/__init__.py", line 29, in <module>
from .utils.run_algo import run_algorithm
File "/home/user1/.local/lib/python3.9/site-packages/zipline/utils/run_algo.py", line 24, in <module>
from zipline.data import bundles
File "/home/user1/.local/lib/python3.9/site-packages/zipline/data/bundles/__init__.py", line 2, in <module>
from . import quandl # noqa
File "/home/user1/.local/lib/python3.9/site-packages/zipline/data/bundles/quandl.py", line 16, in <module>
from . import core as bundles
File "/home/user1/.local/lib/python3.9/site-packages/zipline/data/bundles/core.py", line 13, in <module>
from ..adjustments import SQLiteAdjustmentReader, SQLiteAdjustmentWriter
File "/home/user1/.local/lib/python3.9/site-packages/zipline/data/adjustments.py", line 29, in <module>
from ._adjustments import load_adjustments_from_sqlite
File "zipline/data/_adjustments.pyx", line 1, in init zipline.data._adjustments
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject