Skip to content

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

@gehrenfeld

Description

@gehrenfeld

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

ehrenfeld1946@gmail.com

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