alpacahq / alpacahq/options-wheel

no run-strategy

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
131
Forks
43
PR merge metrics
No merged PRs in 30d

Description

in side options-wheel i don't see a script named run-strategy. i see scripts/run_strategy.py . running scripts/run_strategy.py have issue (the core is not in the same path) copy scripts/run_strategy.py to . and run it have issue with logging. seems there is a circular import is happening

Traceback (most recent call last):
File "/home/yonas/Projects/options-wheel/run_strategy.py", line 2, in
from core.broker_client import BrokerClient
File "/home/yonas/Projects/options-wheel/core/broker_client.py", line 3, in
from alpaca.trading.client import TradingClient
File "/home/yonas/enves/alpaca/lib/python3.12/site-packages/alpaca/trading/__init__.py", line 1, in
from alpaca.trading.client import *
File "/home/yonas/enves/alpaca/lib/python3.12/site-packages/alpaca/trading/client.py", line 2, in
from pydantic import TypeAdapter
File "/home/yonas/enves/alpaca/lib/python3.12/site-packages/pydantic/__init__.py", line 5, in
from ._migration import getattr_migration
File "/home/yonas/enves/alpaca/lib/python3.12/site-packages/pydantic/_migration.py", line 4, in
from .version import version_short
File "/home/yonas/enves/alpaca/lib/python3.12/site-packages/pydantic/version.py", line 5, in
from pydantic_core import __version__ as __pydantic_core_version__
File "/home/yonas/enves/alpaca/lib/python3.12/site-packages/pydantic_core/__init__.py", line 30, in
from .core_schema import CoreConfig, CoreSchema, CoreSchemaType, ErrorType
File "/home/yonas/enves/alpaca/lib/python3.12/site-packages/pydantic_core/core_schema.py", line 4231, in
@deprecated('`field_before_validator_function` is deprecated, use `with_info_before_validator_function` instead.')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yonas/enves/alpaca/lib/python3.12/site-packages/typing_extensions.py", line 2943, in __call__
import asyncio.coroutines
File "/usr/lib/python3.12/asyncio/__init__.py", line 8, in
from .base_events import *
File "/usr/lib/python3.12/asyncio/base_events.py", line 18, in
import concurrent.futures
File "/usr/lib/python3.12/concurrent/futures/__init__.py", line 8, in
from concurrent.futures._base import (FIRST_COMPLETED,
File "/usr/lib/python3.12/concurrent/futures/_base.py", line 43, in
LOGGER = logging.getLogger("concurrent.futures")
^^^^^^^^^^^^^^^^^
AttributeError: module 'logging' has no attribute 'getLogger'

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.