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

Maximum call stack size exceeded in upload_audio #132

Open
zhouhao27 opened this issue Jul 4, 2023 · 0 comments
Open

Maximum call stack size exceeded in upload_audio #132

zhouhao27 opened this issue Jul 4, 2023 · 0 comments

Comments

@zhouhao27
Copy link

zhouhao27 commented Jul 4, 2023

Here is the error. I tried in my different Google account and different mp3, all got the same error.

MessageError Traceback (most recent call last)
in <cell line: 6>()
4
5 log_event('uploadAudioStart', {})
----> 6 audio = upload_audio(sample_rate=SAMPLE_RATE)
7 log_event('uploadAudioComplete', {'value': round(len(audio) / SAMPLE_RATE)})
8

4 frames
in upload_audio(sample_rate)
33
34 def upload_audio(sample_rate):
---> 35 data = list(files.upload().values())
36 if len(data) > 1:
37 print('Multiple files uploaded; using only one.')

/usr/local/lib/python3.10/dist-packages/google/colab/files.py in upload()
67 """
68
---> 69 uploaded_files = _upload_files(multiple=True)
70 # Mapping from original filename to filename as saved locally.
71 local_filenames = dict()

/usr/local/lib/python3.10/dist-packages/google/colab/files.py in _upload_files(multiple)
159
160 while result['action'] != 'complete':
--> 161 result = _output.eval_js(
162 'google.colab._files._uploadFilesContinue("{output_id}")'.format(
163 output_id=output_id

/usr/local/lib/python3.10/dist-packages/google/colab/output/_js.py in eval_js(script, ignore_result, timeout_sec)
38 if ignore_result:
39 return
---> 40 return _message.read_reply_from_input(request_id, timeout_sec)
41
42

/usr/local/lib/python3.10/dist-packages/google/colab/_message.py in read_reply_from_input(message_id, timeout_sec)
101 ):
102 if 'error' in reply:
--> 103 raise MessageError(reply['error'])
104 return reply.get('data', None)
105

MessageError: RangeError: Maximum call stack size exceeded.

@zhouhao27 zhouhao27 changed the title Maximum call stack size exceeded. Maximum call stack size exceeded in upload_audio Jul 5, 2023
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

1 participant