Share via

Web app for speech services

Temitope Oni 26 Reputation points
2022-01-13T14:47:20.423+00:00

I want to create a web app for the flask app I created involving azure speech services. The flask app works well on local server, But when I use the command az webapp up with all the required details, it successfully created the website. However, on opening, I see Application Error. From the log, I get "ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by /tmp/8d9d6a263ebd569/antenv/lib/python3.7/site-packages/azure/cognitiveservices/speech/_speech_py_impl.so)".
Thank you for your help in advance.

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

Answer accepted by question author

Andriy Bilous 12,186 Reputation points MVP
2022-01-14T21:29:49.59+00:00

Hello @Temitope Oni

I see you are using Azure App Service Linux. The error ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by /tmp/8d9d6a263ebd569/antenv/lib/python3.7/site-packages/azure/cognitiveservices/speech/_speech_py_impl.so means that library libstdc++.so.6 on the system is too old.
https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-configure-rhel-centos-7

Use ubuntu:18.04 base image in DockerFile, install python, system packages and the other requirements and it should work fine.

Dockerfile example:

FROM ubuntu:18.04  
  
RUN mkdir /code  
WORKDIR /code  
RUN apt-get update && apt-get install -y \  
    build-essential \  
    libssl1.0.0 \  
    libasound2 \  
    python3.7  
RUN apt-get install -y python3-pip  
ADD requirements.txt /code/  
RUN pip3 install --upgrade pip  
RUN pip3 install -r requirements.txt  
ADD . /code/  
  
# ssh  
ENV SSH_PASSWD "root:Docker!"  
RUN apt-get update \  
        && apt-get install -y --no-install-recommends dialog \  
        && apt-get update \  
	&& apt-get install -y --no-install-recommends openssh-server \  
	&& echo "$SSH_PASSWD" | chpasswd   
  
COPY sshd_config /etc/ssh/  
COPY init.sh /usr/local/bin/  
	  
RUN chmod u+x /usr/local/bin/init.sh  
EXPOSE 5000 2222  
ENTRYPOINT ["init.sh"]  

https://github.com/Azure-Samples/cognitive-services-speech-sdk/issues/747

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.