Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

AttributeError: 'array.array' object has no attribute 'tostring' #418

Open
diallodavid opened this issue Dec 19, 2020 · 1 comment · May be fixed by #420
Open

AttributeError: 'array.array' object has no attribute 'tostring' #418

diallodavid opened this issue Dec 19, 2020 · 1 comment · May be fixed by #420

Comments

@diallodavid
Copy link

File "/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/audio_helpers.py", line 57, in normalize_audio_buffer
buf = arr.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'

What’s New In Python 3.9
Removed

  • array.array: tostring() and fromstring() methods have been removed. They were aliases to tobytes() and frombytes(), deprecated since Python 3.2. (Contributed by Victor Stinner in bpo-38916.)
supersonicclay added a commit to supersonicclay/assistant-sdk-python that referenced this issue Feb 5, 2021
@supersonicclay supersonicclay linked a pull request Feb 5, 2021 that will close this issue
@Aom92
Copy link

Aom92 commented Oct 27, 2022

Could you merge this? People following Google's Tutorial might get confused when the sample won't work

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

Successfully merging a pull request may close this issue.

2 participants