Skip to content

Example fetch_public_data.py fails to start: ModuleNotFoundError: No module named 'websockets' in binance #1

@ppchart

Description

@ppchart

Title
Example fetch_public_data.py fails to start: ModuleNotFoundError: No module named 'websockets' in binance


Describe the bug
When running the simplest example from the README, the program fails due to a missing dependency in the Binance connector — websockets is not found.


Environment

  • OS: Ubuntu (latest)

  • Python version:

    • Python 3.8 → installation blocked (requires >= 3.9)
    • Python 3.9 → installation succeeded but example failed
  • Installation method:

    pip install -e .[ai,visualization,...]

    (installed with all optional dependencies listed in README)


To Reproduce

python example/fetch_public_data.py

Actual behavior

ModuleNotFoundError: No module named 'websockets'

Error occurs inside the binance connector module.


Expected behavior
Example should start without missing dependency errors, fetch some public data, and print/stream results.


Additional context
It seems websockets is not listed in the project's install_requires or extras_require for Binance usage. Possibly needs to be added to dependencies or documented as a requirement for users running this example.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions