coinbase-advanced-py icon indicating copy to clipboard operation
coinbase-advanced-py copied to clipboard

Missing Modules in PyPI Package Installation

Open bravo0304 opened this issue 11 months ago • 1 comments

I installed coinbase-advanced-py from PyPI, but the installation doesn’t seem to include all the necessary code files. Specifically, the package only installs metadata (like the coinbase_advanced_py-1.8.2.dist-info directory) and a coinbase directory, but it’s missing certain files or modules referenced in the documentation and examples. For instance, when I try to import Auth from coinbase_advanced_py.auth, or Client from coinbase_advanced_py.rest, I get a ModuleNotFoundError.

What I’ve Tried:

I confirmed that pip install coinbase-advanced-py completes without errors. After installation, I looked inside site-packages and only found the coinbase folder with some modules (rest_base.py, orders.py, etc.), but not the auth.py module or the Client class. I attempted to install directly from GitHub (pip install git+https://github.com/coinbase/coinbase-advanced-py.git) and encountered the same issue: the expected coinbase_advanced_py structure and files are still missing. I have also checked various commits on GitHub to see if any previous version includes these files, but I haven’t found a commit that resolves the issue.

Could you clarify if the PyPI distribution is missing these files, or if the correct usage of the package has changed? If the examples in the README are outdated, are there updated instructions for how to use the current version of the library?

bravo0304 avatar Jan 20 '25 03:01 bravo0304

Thank you for reporting! If this is an SDK specific issue, we will look into it and get back to you soon. If this is an API related request, report it in our Advanced API Discord instead (use this invite link if it's your first time accessing the Discord).

github-actions[bot] avatar Jan 20 '25 03:01 github-actions[bot]

Hi, can you please send your exact import codes? To import the RESTClient you should be running: from coinbase.rest import RESTClient

There is no Auth package. If you want to directly use the JWT Generator logic, you can import using: from coinbase import jwt_generator as the [docs](from coinbase import jwt_generator ) say.

urischwartz-cb avatar Jul 31 '25 18:07 urischwartz-cb