Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when running alpaca_api.py #210

Closed
taeyurl opened this issue May 27, 2022 · 0 comments
Closed

TypeError when running alpaca_api.py #210

taeyurl opened this issue May 27, 2022 · 0 comments

Comments

@taeyurl
Copy link

taeyurl commented May 27, 2022

Traceback (most recent call last):
File "zipline/data/bundles/alpaca_api.py", line 12, in
import zipline.config
File "c:\users\mpower\zipline-trader\zipline_init_.py", line 30, in
from .utils.run_algo import run_algorithm
File "c:\users\mpower\zipline-trader\zipline\utils\run_algo.py", line 24, in
from zipline.data import bundles
File "c:\users\mpower\zipline-trader\zipline\data\bundles_init_.py", line 2, in
from . import quandl # noqa
File "c:\users\mpower\zipline-trader\zipline\data\bundles\quandl.py", line 16, in
from . import core as bundles
File "c:\users\mpower\zipline-trader\zipline\data\bundles\core.py", line 13, in
from ..adjustments import SQLiteAdjustmentReader, SQLiteAdjustmentWriter
File "c:\users\mpower\zipline-trader\zipline\data\adjustments.py", line 29, in
from ._adjustments import load_adjustments_from_sqlite
File "zipline\data_adjustments.pyx", line 35, in init zipline.data.adjustments
from zipline.assets.asset_writer import (
File "c:\users\mpower\zipline-trader\zipline\assets_init
.py", line 22, in
from .assets import (
File "c:\users\mpower\zipline-trader\zipline\assets\assets.py", line 67, in
from .asset_writer import (
File "c:\users\mpower\zipline-trader\zipline\assets\asset_writer.py", line 453, in
class AssetDBWriter(object):
File "c:\users\mpower\zipline-trader\zipline\assets\asset_writer.py", line 464, in AssetDBWriter
def init(self, engine, asset_finder=None):
File "c:\users\mpower\zipline-trader\zipline\utils\preprocess.py", line 109, in _decorator
return _build_preprocessed_function(
File "c:\users\mpower\zipline-trader\zipline\utils\preprocess.py", line 246, in _build_preprocessed_function
new_func.code = CodeType(*map(getitem(args), _code_argorder))
TypeError: an integer is required (got type bytes)

@taeyurl taeyurl closed this as completed Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant