Giter VIP home page Giter VIP logo

Comments (6)

imzeeshan avatar imzeeshan commented on August 25, 2024

Same issue for me.

from client-python.

jmy48 avatar jmy48 commented on August 25, 2024

the docs / examples are outdated. WebSocketClient is now in polygon.websocket

from polygon.websocket import WebSocketClient, STOCKS_CLUSTER

from client-python.

matichenor avatar matichenor commented on August 25, 2024

We have a new version of the library and new doc which addresses this problem. Thanks for calling it to our attention.

See the Getting Started section in our docs or view the examples directory.

from client-python.

matichenor avatar matichenor commented on August 25, 2024

from client-python.

johnny-vulture avatar johnny-vulture commented on August 25, 2024

none of your stuff seems to be working i keep getting this error, i tried the websockets and REST examples with and without my api key

Traceback (most recent call last):
File "C:\Users\User\Desktop\experiments\Stock\polygon.py", line 1, in
import polygon
File "C:\Users\User\Desktop\experiments\Stock\polygon.py", line 2, in
from polygon import RESTClient
ImportError: cannot import name 'RESTClient' from partially initialized module 'polygon' (most likely due to a circular import) (C:\Users\User\Desktop\experiments\Stock\polygon.py)

from client-python.

justinpolygon avatar justinpolygon commented on August 25, 2024

none of your stuff seems to be working i keep getting this error, i tried the websockets and REST examples with and without my api key

Traceback (most recent call last): File "C:\Users\User\Desktop\experiments\Stock\polygon.py", line 1, in import polygon File "C:\Users\User\Desktop\experiments\Stock\polygon.py", line 2, in from polygon import RESTClient ImportError: cannot import name 'RESTClient' from partially initialized module 'polygon' (most likely due to a circular import) (C:\Users\User\Desktop\experiments\Stock\polygon.py)

Hi @johnny-vulture, do you have the polygon client library installed? Can you run pip install -U polygon-api-client. If you're still getting the same error can you please run pip list and paste the results. From the errors it looks like the client isn't installed. Thanks.

from client-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.