Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@KshitizSharmaV

Description

@KshitizSharmaV
Issue body actions

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'
_

_

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.