Skip to content

Script is not working  #3

@antonsatskyi

Description

@antonsatskyi

Hello there i tried diff env
but it doesn't work
Example:
1-i use - docker pull python:latest
with Python 3.10.4 in there
2- install all dep using pip install command
3-git clone repo
4- chmod a+x ts-to-word.py
5- RUN
OUTPUT
root@848258ebcfda:/amazon-transcribe-output-word-document/python# ./ts-to-word.py --inputFile asrOutput.json
./ts-to-word.py: line 15:
This sample, non-production-ready application will produce Word Document transcriptions using automatic speech
recognition from Amazon Transcribe, and handles all processing modes of Amazon Transcribe in terms of diarization:
speaker-separated audio, channel-separated audio, or Call Analytics audio. The application requires the following
non-standard python libraries to be installed:

  • python-docx
  • scipy
  • matplotlib

© 2021 Amazon Web Services, Inc. or its affiliates. All Rights Reserved.
This AWS Content is provided subject to the terms of the AWS Customer Agreement available at
http://aws.amazon.com/agreement or other written agreement between Customer and either
Amazon Web Services, Inc. or Amazon Web Services EMEA SARL or both.
: File name too long
./ts-to-word.py: line 17: from: command not found
./ts-to-word.py: line 18: from: command not found
./ts-to-word.py: line 19: from: command not found
./ts-to-word.py: line 20: from: command not found
./ts-to-word.py: line 21: from: command not found
./ts-to-word.py: line 22: from: command not found
./ts-to-word.py: line 23: from: command not found
./ts-to-word.py: line 24: from: command not found
./ts-to-word.py: line 25: from: command not found
./ts-to-word.py: line 26: from: command not found
./ts-to-word.py: line 27: from: command not found
import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/346. import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/346.
import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/346. import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/346.
import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/346. import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/346.
import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/346. import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/346.
import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/346. import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/346.
./ts-to-word.py: line 38: from: command not found
./ts-to-word.py: line 42: CUSTOM_STYLE_HEADER: command not found
./ts-to-word.py: line 43: TABLE_STYLE_STANDARD: command not found
./ts-to-word.py: line 44: CATEGORY_TRANSCRIPT_BG_COLOUR: command not found
./ts-to-word.py: line 45: syntax error near unexpected token (' ./ts-to-word.py: line 45: CATEGORY_TRANSCRIPT_FG_COLOUR = RGBColor(0, 128, 255)'

any advice appreciated
Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions