简体   繁体   English

在 azure 应用程序服务中部署时,librosa 中出现 OSError('sndfile library not found')

[英]OSError('sndfile library not found') in librosa while deploying in azure app service

Summarize.yml总结.yml

name: Build and deploy Python app to Azure Web App - summarize1

on:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Set up Python version
      uses: actions/setup-python@v1
      with:
        python-version: '3.6'

    - name: Create and start virtual environment
      run: |
        python -m venv venv
        source venv/bin/activate
        
                                        
    - name: Install dependencies
      run: |
        pip install -r requirements.txt
        sudo apt-get update
        sudo apt install autoconf autogen automake build-essential libasound2-dev \
        libflac-dev libogg-dev libtool libvorbis-dev libopus-dev libmp3lame-dev \
        libmpg123-dev pkg-config python
        sudo apt-get install ffmpeg

requirements.txt要求.txt

numba==0.48.0
git+https://github.com/librosa/librosa

考虑编写一个脚本(即 apt-get install -y libsndfile1),该脚本将手动安装依赖项(在应用服务启动时通过 apt-get。在 Azure 中配置应用服务以在它启动时调用该脚本(即 startup.sh)启动。请查看: https : //pypi.org/project/SoundFile/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Librosa 在 Docker 中引发 OSError('sndfile library not found') - Librosa raised OSError('sndfile library not found') in Docker Flask Heroku 部署的 Librosa 安装:“OSError: sndfile library not found”(H10 错误) - Librosa Installation for Flask Heroku Deployment: “OSError: sndfile library not found” (H10 error) 无法在 SageMaker Jupyter 笔记本实例“OSError:找不到 sndfile 库”上导入 librosa - Cannot import librosa on SageMaker Jupyter notebook instance "OSError: sndfile library not found" 为 TensorFlow 导入 librosa 时出错:找不到 sndfile 库 - Error importing librosa for TensorFlow: sndfile library not found 问题导入 python 声音文件库 - OSError: library not found: 'sndfile' - Issue importing python soundfile library - OSError: library not found: 'sndfile' 在 Z1A79417461C9ADBE88F8B93E7FAD39 上部署音频预测 model 时出现“OSError: sndfile library not found”和“Unable to locate package libsndfile1”错误 - I am getting “OSError: sndfile library not found” & “Unable to locate package libsndfile1” errors when deploying audio prediction model on Heroku Python 在新安装的 Mac 上找不到 sndfile 库 - Python sndfile library not found on newly installed Mac librosa 库在部署到 heroku 服务器时出错 - Error with librosa library in deploying to heroku server Python 链接到错误的库文件夹 - 未找到 sndfile 库 - Python linking to wrong library folder - sndfile library not found OSError:找不到 PortAudio 库 - OSError: PortAudio library not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM