Skip to content

AttributeError: module 'websocket' has no attribute 'WebSocketApp' #12

Description

@KshitizSharmaV

Hi, I tried importing and it gave following error.

>>> from polygon import WebSocketClient, STOCKS_CLUSTER
Traceback (most recent call last):
File "", line 1, in
File "/Users/kshitizsharma/miniconda3/lib/python3.6/site-packages/polygon/init.py", line 1, in
from .websocket import WebSocketClient, STOCKS_CLUSTER, FOREX_CLUSTER, CRYPTO_CLUSTER
File "/Users/kshitizsharma/miniconda3/lib/python3.6/site-packages/polygon/websocket/init.py", line 1, in
from .websocket_client import WebSocketClient, STOCKS_CLUSTER, FOREX_CLUSTER, CRYPTO_CLUSTER
File "/Users/kshitizsharma/miniconda3/lib/python3.6/site-packages/polygon/websocket/websocket_client.py", line 12, in
class WebSocketClient:
File "/Users/kshitizsharma/miniconda3/lib/python3.6/site-packages/polygon/websocket/websocket_client.py", line 21, in WebSocketClient
on_error: Optional[Callable[[websocket.WebSocketApp, str], None]] = None):
AttributeError: module 'websocket' has no attribute 'WebSocketApp'
_

_

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions