Unable to create an4 dataset using Python 3.6
See original GitHub issueDear friends,
In order to run an4.py from inside the data dir (as described by README.md) I fix the data.utils in an4.py with the following changes:
#from data.utils import create_manifest
from utils import create_manifest
If I am using Python 3.6:
Now, I am getting following error:
Traceback (most recent call last): File “an4.py”, line 84, in <module> main() File “an4.py”, line 72, in main _format_data(root_path, ‘train’, name, ‘an4_clstk’) File “an4.py”, line 31, in _format_data _format_files(file_ids, new_transcript_path, new_wav_path, transcripts, wav_path) File “an4.py”, line 57, in _format_files file.write(extracted_transcript) TypeError: a bytes-like object is required, not ‘str’
David
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Unable to create dataset (error during user callback ... - GitHub
I get test_fil2h5py to work, by using this h5py==2.5.0 instead. Plus fixing this error by directly editing /opt/pyve/eepy/local/lib/python2.7/ ...
Read more >Datasets — NVIDIA NeMo
AN4 Dataset # ... This is a small dataset recorded and distributed by Carnegie Mellon University. It consists of recordings of people spelling...
Read more >No conversion path for dtype: dtype('<U38') in Python 3.6 ...
I'm using h5py to create a dataset, which works perfectly in my laptop. But when I try it in a server, it says...
Read more >"Could not link test program to Python" error when running ...
I am trying to configure sphinxbase by running the configure script using the following command. PYTHON=python3.6 ./configure LDFLAGS="-L/lib/ ...
Read more >Can not import Dataiku dataset in Python recipe which is not ...
Solved: Hi there, I am running Dataiku 5.1.0 and in the release notes of 5.1.0 it says: It is now possible to use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dlmacedo replace that line with
file.write(bytes(extracted_transcript, 'utf-8'))
. It’spython3
issue, notpython3.6
.Added to that line (should’ve tested it, my bad). Thanks @dlmacedo ! (repull and it should be fixed)