Skip to content

ta.sma() crashes on Linux with TypeError: sum() missing 1 required positional argument — works on Windows #68

Description

@vive1101011
Image

ta.sma() raises a TypeError on Linux/Ubuntu but runs successfully on Windows. The call to lib_math.sum(source, length) inside ta.sma() appears to resolve to Python's built-in sum() on Linux, which only accepts one required argument, causing the crash.

To Reproduce

  1. Clone the repository (or download zip) and set up the environment:
   uv sync
  1. Download sample data:
   uv run pyne data download ccxt --symbol "BYBIT:BTC/USDT:USDT"
  1. Run the debug script against the downloaded .ohlcv file:
   uv run debug_pynesys.py workdir/data/demo.ohlcv
  1. Observe the TypeError traceback.

Expected behavior
Script v6.5.0 should complete successfully and output a CSV file, as it does on Windows:
Versions prior to v6.5.0 are functioning normally and behaving as expected.

steps_to_reproduce.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions