Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: partially initialized module 'cbpro' has no attribute 'public_client' (most likely due to a circular import) #461

Open
gehrenfeld opened this issue Dec 3, 2021 · 1 comment

Comments

@gehrenfeld
Copy link

Keep getting this error when running:

`from coinbase.wallet.client import Client
from coinbase.wallet.model import APIObject
import cbpro

public_client = cbpro.public_client
coinbase_API_key = "xxxxxxxxxxxxx"
coinbase_API_secret = "xxxxxxxxxxxxx"
client = Client(coinbase_API_key, coinbase_API_secret)

public_client.get_product_ticker(product_id='ETH-USD')
public_client.get_products()
data =public_client.get_product_historic_rates('ETH-USD')
print(data)`

Python version 3.9

[email protected]

@sephethus
Copy link

You likely named the script the same as cbpro, name it something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants