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

Fix name error in audio tutorial #1223

Merged
merged 8 commits into from
Apr 26, 2021

Conversation

vincentqb
Copy link
Contributor

@vincentqb vincentqb commented Nov 7, 2020

Follow up to #1204

cc @brianjo

@vincentqb vincentqb marked this pull request as draft November 7, 2020 02:19
@netlify
Copy link

netlify bot commented Nov 7, 2020

Deploy preview for pytorch-tutorials-preview ready!

Built with commit 7081a2b

https://deploy-preview-1223--pytorch-tutorials-preview.netlify.app

@vincentqb vincentqb changed the title try adding () Rename tutorial Nov 9, 2020
@vincentqb vincentqb changed the title Rename tutorial Fix multiline string error in audio tutorial Nov 9, 2020
@vincentqb
Copy link
Contributor Author

vincentqb commented Nov 10, 2020

BTW I've also noticed that there's a "SyntaxError" appear in the menu here. cc @brianjo

Screen Shot 2020-11-10 at 5 10 58 PM

@vincentqb
Copy link
Contributor Author

BTW I've also noticed that there's a "SyntaxError" appear in the menu here. cc @brianjo

cc #1236 for this

@vincentqb vincentqb marked this pull request as ready for review November 16, 2020 18:39
@vincentqb vincentqb force-pushed the brianjo-speech-fix branch 3 times, most recently from 337b824 to da81b5e Compare November 17, 2020 21:09
…d_recognition_with_torchaudio_tutorial.py

Updated to run the tutorial at build time.
@vincentqb
Copy link
Contributor Author

Quote from log:

Nov 17 22:09:13 -------------------------------------------------------------------------------
Nov 17 22:09:13 
Nov 17 22:09:13 Exception occurred:
Nov 17 22:09:13   File "/opt/conda/lib/python3.6/site-packages/sphinx_gallery/gen_gallery.py", line 512, in summarize_failing_examples
Nov 17 22:09:13     "\n" + "-" * 79)
Nov 17 22:09:13 ValueError: Here is a summary of the problems encountered when running the examples
Nov 17 22:09:13 
Nov 17 22:09:13 Unexpected failing examples:
Nov 17 22:09:13 /var/lib/jenkins/workspace/intermediate_source/speech_command_recognition_with_torchaudio_tutorial.py failed leaving traceback:
Nov 17 22:09:13 Traceback (most recent call last):
Nov 17 22:09:13   File "/opt/conda/lib/python3.6/site-packages/sphinx_gallery/gen_rst.py", line 394, in _memory_usage
Nov 17 22:09:13     out = func()
Nov 17 22:09:13   File "/opt/conda/lib/python3.6/site-packages/sphinx_gallery/gen_rst.py", line 382, in __call__
Nov 17 22:09:13     exec(self.code, self.globals)
Nov 17 22:09:13   File "/var/lib/jenkins/workspace/intermediate_source/speech_command_recognition_with_torchaudio_tutorial.py", line 426, in <module>
Nov 17 22:09:13     with tqdm(total=n_epoch) as pbar:
Nov 17 22:09:13   File "/opt/conda/lib/python3.6/site-packages/tqdm/notebook.py", line 232, in __init__
Nov 17 22:09:13     self.fp, total, self.desc, self.ncols)
Nov 17 22:09:13   File "/opt/conda/lib/python3.6/site-packages/tqdm/notebook.py", line 97, in status_printer
Nov 17 22:09:13     "IProgress not found. Please update jupyter and ipywidgets."
Nov 17 22:09:13 ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html

It seems like from tqdm.notebook import tqdm is not supported.

@vincentqb vincentqb force-pushed the brianjo-speech-fix branch 3 times, most recently from 0bfa7c4 to 69cff7a Compare November 19, 2020 16:08
@vincentqb
Copy link
Contributor Author

The test failing in 1 appears unrelated

Nov 19 21:11:11 
Nov 19 21:11:11 Unexpected failing examples:
Nov 19 21:11:11 /var/lib/jenkins/workspace/beginner_source/nn_tutorial.py failed leaving traceback:
Nov 19 21:11:11 Traceback (most recent call last):
Nov 19 21:11:11   File "/opt/conda/lib/python3.6/site-packages/sphinx_gallery/gen_rst.py", line 394, in _memory_usage
Nov 19 21:11:11     out = func()
Nov 19 21:11:11   File "/opt/conda/lib/python3.6/site-packages/sphinx_gallery/gen_rst.py", line 382, in __call__
Nov 19 21:11:11     exec(self.code, self.globals)
Nov 19 21:11:11   File "/var/lib/jenkins/workspace/beginner_source/nn_tutorial.py", line 65, in <module>
Nov 19 21:11:11     ((x_train, y_train), (x_valid, y_valid), _) = pickle.load(f, encoding="latin-1")
Nov 19 21:11:11   File "/opt/conda/lib/python3.6/gzip.py", line 296, in peek
Nov 19 21:11:11     return self._buffer.peek(n)
Nov 19 21:11:11   File "/opt/conda/lib/python3.6/_compression.py", line 68, in readinto
Nov 19 21:11:11     data = self.read(len(byte_view))
Nov 19 21:11:11   File "/opt/conda/lib/python3.6/gzip.py", line 463, in read
Nov 19 21:11:11     if not self._read_gzip_header():
Nov 19 21:11:11   File "/opt/conda/lib/python3.6/gzip.py", line 411, in _read_gzip_header
Nov 19 21:11:11     raise OSError('Not a gzipped file (%r)' % magic)
Nov 19 21:11:11 OSError: Not a gzipped file (b'<!')

@vincentqb vincentqb changed the title Fix multiline string error in audio tutorial Fix name error in audio tutorial Nov 19, 2020
@brianjo
Copy link
Contributor

brianjo commented Nov 19, 2020

The test failing in 1 appears unrelated

Nov 19 21:11:11 
Nov 19 21:11:11 Unexpected failing examples:
Nov 19 21:11:11 /var/lib/jenkins/workspace/beginner_source/nn_tutorial.py failed leaving traceback:
Nov 19 21:11:11 Traceback (most recent call last):
Nov 19 21:11:11   File "/opt/conda/lib/python3.6/site-packages/sphinx_gallery/gen_rst.py", line 394, in _memory_usage
Nov 19 21:11:11     out = func()
Nov 19 21:11:11   File "/opt/conda/lib/python3.6/site-packages/sphinx_gallery/gen_rst.py", line 382, in __call__
Nov 19 21:11:11     exec(self.code, self.globals)
Nov 19 21:11:11   File "/var/lib/jenkins/workspace/beginner_source/nn_tutorial.py", line 65, in <module>
Nov 19 21:11:11     ((x_train, y_train), (x_valid, y_valid), _) = pickle.load(f, encoding="latin-1")
Nov 19 21:11:11   File "/opt/conda/lib/python3.6/gzip.py", line 296, in peek
Nov 19 21:11:11     return self._buffer.peek(n)
Nov 19 21:11:11   File "/opt/conda/lib/python3.6/_compression.py", line 68, in readinto
Nov 19 21:11:11     data = self.read(len(byte_view))
Nov 19 21:11:11   File "/opt/conda/lib/python3.6/gzip.py", line 463, in read
Nov 19 21:11:11     if not self._read_gzip_header():
Nov 19 21:11:11   File "/opt/conda/lib/python3.6/gzip.py", line 411, in _read_gzip_header
Nov 19 21:11:11     raise OSError('Not a gzipped file (%r)' % magic)
Nov 19 21:11:11 OSError: Not a gzipped file (b'<!')

I'll re-kick that shard.

Base automatically changed from master to main February 16, 2021 19:33
Base automatically changed from main to master February 16, 2021 19:37
@holly1238 holly1238 merged commit f1fd16f into pytorch:master Apr 26, 2021
@vincentqb
Copy link
Contributor Author

thanks @holly1238!

@vincentqb vincentqb deleted the brianjo-speech-fix branch April 26, 2021 16:50
rodrigo-techera pushed a commit to Experience-Monks/tutorials that referenced this pull request Nov 29, 2021
* Rename speech_command_recognition_with_torchaudio.py to speech_command_recognition_with_torchaudio_tutorial.py

Updated to run the tutorial at build time.

* Update index.rst

* record in colab, and also outside. move pydub to first install command.

* multiline on one line.

* remove noncolab support.

* text tqdm.

Co-authored-by: Brian Johnson <[email protected]>
Co-authored-by: holly1238 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants