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

import error #5

Closed
kamranshalilian opened this issue Jul 14, 2023 · 0 comments
Closed

import error #5

kamranshalilian opened this issue Jul 14, 2023 · 0 comments

Comments

@kamranshalilian
Copy link

kamranshalilian commented Jul 14, 2023

I have an error

No Config File Found
Traceback (most recent call last):
File "C:\bot\example.py", line 1, in
from lib.strategies.finger_trap import FingerTrap
File "C:\bot\lib_init_.py", line 1, in
from .strategies.finger_trap import FingerTrap
File "C:\bot\lib\strategies\finger_trap.py", line 5, in
from ..traders.simple_deal_trader import DealTrader
File "C:\bot\lib\traders\simple_deal_trader.py", line 4, in
from aiomql.utils import dict_to_string
File "C:\Users\AS\miniconda3\lib\site-packages\aiomql_init_.py", line 3, in
from .strategy import Strategy
File "C:\Users\AS\miniconda3\lib\site-packages\aiomql\strategy.py", line 10, in
from .candle import Candles, Candle
File "C:\Users\AS\miniconda3\lib\site-packages\aiomql\candle.py", line 2, in
from typing import Type, TypeVar, Generic, Self
ImportError: cannot import name 'Self' from 'typing' (C:\Users\AS\miniconda3\lib\typing.py)

and I fix it to remove Self from candle.py line 2

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