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

v1.8.0 #79

Merged
merged 4 commits into from
Nov 13, 2024
Merged

v1.8.0 #79

merged 4 commits into from
Nov 13, 2024

Conversation

davidMkCb
Copy link
Contributor

v1.8.0

* right/master: (37 commits)
  Release v1.7.0 (#74)
  Release v1.6.2 (#70)
  Release v1.6.1 (#69)
  Release v1.6.0 (#68)
  v1.5.0 (#66)
  Release v1.4.3 (#61)
  Change API Key JSON Filename in Readme (#58)
  Release v1.4.2 (#57)
  Release v1.4.1 (#55)
  Release v1.4.0 (#53)
  Update issues.yml (#50)
  Update Discord Link with Invite (#48)
  Update support link to Discord (#47)
  v1.3.0 (#45)
  Release v1.2.2 (#40)
  v1.2.1 (#38)
  v1.2.0 (#35)
  Release v1.1.3 (#28)
  v1.1.2 (#25)
  Release v1.1.1 (#23)
  ...
@cb-heimdall
Copy link

cb-heimdall commented Nov 13, 2024

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@davidMkCb davidMkCb merged commit 2250dbd into master Nov 13, 2024
5 checks passed
@davidMkCb davidMkCb deleted the master-1731462758 branch November 13, 2024 20:05
@danhaive
Copy link

I am having an import issue with types when trying to use 1.8.0. Had to revert to 1.7.0.

@davidMkCb
Copy link
Contributor Author

I am having an import issue with types when trying to use 1.8.0. Had to revert to 1.7.0.

hey @danhaive, thank you for reporting! Could you give a bit more details into the issues you're having?

@supermarin
Copy link

Python 3.12.7 (main, Oct  1 2024, 02:05:46) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from coinbase import websocket
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/marin/code/yolo/.venv/lib/python3.12/site-packages/coinbase/websocket/__init__.py", line 6, in <module>
    from .types.websocket_response import WebsocketResponse
ModuleNotFoundError: No module named 'coinbase.websocket.types'
>>> from coinbase import rest
>>> 

@supermarin
Copy link

supermarin commented Nov 14, 2024

Also json.dumps(response) doesn't work as per documentation:

accounts = client.get_accounts()
print(dumps(accounts, indent=2))

# TypeError: Object of type ListAccountsResponse is not JSON serializable   

EDIT: downgraded to 1.7.0, this one exists there as well. Websocket module works OK

@davidMkCb
Copy link
Contributor Author

hey @supermarin, thanks for reporting the issues! We're working on the fixes right now.

davidMkCb added a commit that referenced this pull request Nov 15, 2024
* right/master: (38 commits)
  v1.8.0 (#79)
  Release v1.7.0 (#74)
  Release v1.6.2 (#70)
  Release v1.6.1 (#69)
  Release v1.6.0 (#68)
  v1.5.0 (#66)
  Release v1.4.3 (#61)
  Change API Key JSON Filename in Readme (#58)
  Release v1.4.2 (#57)
  Release v1.4.1 (#55)
  Release v1.4.0 (#53)
  Update issues.yml (#50)
  Update Discord Link with Invite (#48)
  Update support link to Discord (#47)
  v1.3.0 (#45)
  Release v1.2.2 (#40)
  v1.2.1 (#38)
  v1.2.0 (#35)
  Release v1.1.3 (#28)
  v1.1.2 (#25)
  ...
@davidMkCb
Copy link
Contributor Author

Hey @supermarin @danhaive, released v1.8.1 addressing these issues!

@supermarin
Copy link

@davidMkCb json serialization is still broken in 1.8.1

@urischwartz-cb
Copy link
Contributor

urischwartz-cb commented Nov 21, 2024

@supermarin how are you trying to print? with the latest changes you need to us the built in to_dict() function to properly serialize the json responses. For example:

from json import dumps

accounts = client.get_accounts()
print(dumps(accounts.to_dict(), indent=2))

davidMkCb added a commit that referenced this pull request Dec 3, 2024
* right/master: (39 commits)
  Release v1.8.1 (#81)
  v1.8.0 (#79)
  Release v1.7.0 (#74)
  Release v1.6.2 (#70)
  Release v1.6.1 (#69)
  Release v1.6.0 (#68)
  v1.5.0 (#66)
  Release v1.4.3 (#61)
  Change API Key JSON Filename in Readme (#58)
  Release v1.4.2 (#57)
  Release v1.4.1 (#55)
  Release v1.4.0 (#53)
  Update issues.yml (#50)
  Update Discord Link with Invite (#48)
  Update support link to Discord (#47)
  v1.3.0 (#45)
  Release v1.2.2 (#40)
  v1.2.1 (#38)
  v1.2.0 (#35)
  Release v1.1.3 (#28)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants