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

Maximum recursion error when gathering historical data #427

Closed
gister9000 opened this issue Mar 12, 2024 · 1 comment
Closed

Maximum recursion error when gathering historical data #427

gister9000 opened this issue Mar 12, 2024 · 1 comment
Labels
bug Something isn't working stale No recent activity.

Comments

@gister9000
Copy link

To Reproduce
Steps to reproduce the behavior:

  1. Import candles: LTC-USD, Bitfinex spot, start date: 2013-05-20
  2. Start importing and wait for error:
Unhandled exception in the process:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/jesse/services/multiprocessing.py", line 20, in run
    mp.Process.run(self)
  File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.10/dist-packages/jesse/modes/import_candles_mode/__init__.py", line 141, in run
    run(exchange, symbol, jh.timestamp_to_time(first_existing_timestamp)[:10], mode, running_via_dashboard, show_progressbar)
  File "/usr/local/lib/python3.10/dist-packages/jesse/modes/import_candles_mode/__init__.py", line 141, in run
    run(exchange, symbol, jh.timestamp_to_time(first_existing_timestamp)[:10], mode, running_via_dashboard, show_progressbar)
  File "/usr/local/lib/python3.10/dist-packages/jesse/modes/import_candles_mode/__init__.py", line 141, in run
    run(exchange, symbol, jh.timestamp_to_time(first_existing_timestamp)[:10], mode, running_via_dashboard, show_progressbar)
  [Previous line repeated 952 more times]
  File "/usr/local/lib/python3.10/dist-packages/jesse/modes/import_candles_mode/__init__.py", line 98, in run
    ).count()
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 1911, in inner
    return method(self, database, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 2189, in count
    return Select([clone], [fn.COUNT(SQL('1'))]).scalar(database)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 1911, in inner
    return method(self, database, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 2174, in scalar
    row = self.tuples().peek(database)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 1911, in inner
    return method(self, database, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 2161, in peek
    rows = self.execute(database)[:n]
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 1911, in inner
    return method(self, database, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 1982, in execute
    return self._execute(database)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 2155, in _execute
    cursor = database.execute(self)
  File "/usr/local/lib/python3.10/dist-packages/playhouse/postgres_ext.py", line 485, in execute
    sql, params = ctx.sql(query).query()
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 614, in sql
    return obj.__sql__(self)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 2421, in __sql__
    ctx.literal(' FROM ').sql(CommaNodeList(self._from_list))
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 614, in sql
    return obj.__sql__(self)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 1777, in __sql__
    ctx.sql(self.nodes[n_nodes - 1])
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 614, in sql
    return obj.__sql__(self)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 2424, in __sql__
    ctx.literal(' WHERE ').sql(self._where)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 614, in sql
    return obj.__sql__(self)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 1481, in __sql__
    .sql(self.lhs)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 614, in sql
    return obj.__sql__(self)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 1481, in __sql__
    .sql(self.lhs)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 614, in sql
    return obj.__sql__(self)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 1481, in __sql__
    .sql(self.lhs)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 614, in sql
    return obj.__sql__(self)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 1481, in __sql__
    .sql(self.lhs)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 614, in sql
    return obj.__sql__(self)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 4581, in __sql__
    return ctx.sql(self.column)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 614, in sql
    return obj.__sql__(self)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 1266, in __sql__
    with ctx.scope_column():
  File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 549, in inner
    with self(scope=scope, **kwargs):
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 587, in __call__
    self.state = self.state(**overrides)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 540, in __call__
    return State(scope, parentheses, **settings)
  File "/usr/local/lib/python3.10/dist-packages/peewee.py", line 526, in __new__
    return super(State, cls).__new__(cls, scope, parentheses, kwargs)
  File "<string>", line 1, in <lambda>
RecursionError: maximum recursion depth exceeded while calling a Python object

Enviroment (please complete the following information):

  • OS: Ubuntu 22.04 LTS
  • Version
Name: jesse
Version: 0.45.0
Summary: A trading framework for cryptocurrencies
Home-page: https://jesse.trade
Author: Saleh Mir
Author-email: saleh@jesse.trade
License: 
Location: /usr/local/lib/python3.10/dist-packages
Requires: aiofiles, aioredis, arrow, blinker, click, fastapi, jesse-dydx-v3-python, matplotlib, mplfinance, newtulipy, numpy, numpy-groupies, pandas, peewee, psycopg2-binary, pydash, pytest, python-dotenv, PyWavelets, quantstats, redis, requests, scipy, simplejson, statsmodels, TA-Lib, tabulate, timeloop, uvicorn, websocket-client, websockets
Required-by: 
@gister9000 gister9000 added the bug Something isn't working label Mar 12, 2024
Copy link

stale bot commented May 12, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale No recent activity. label May 12, 2024
@stale stale bot closed this as completed May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale No recent activity.
Projects
None yet
Development

No branches or pull requests

1 participant