在Apple M1上,基本的ludwig功能、大多数集成和大多数单元测试似乎可以使用@nickovs基于pip的安装或@dantreiman的conda-based installation来运行。然而,图像和音频包仍然存在问题。
pytest测试/集成测试/test_experiment.py::test_basic_image_featureRuntimeError: No such operator image::read_file ../mambaforge/envs/ludwig/lib/python3.8/site-packages/torch/_ops.py:63: RuntimeError
pytest测试/集成测试/test_experiment.py::test_experiment_audio_inputsOSError: cannot load library '/Users/justinzhao/mambaforge/envs/ludwig/lib/python3.8/site-packages/_soundfile_data/libsndfile.dylib': dlopen(/Users/justinzhao/mambaforge/envs/ludwig/lib/python3.8/site-packages/_soundfile_data/libsndfile.dylib, 0x0002): tried: '/Users/justinzhao/mambaforge/envs/ludwig/lib/python3.8/site-packages/_soundfile_data/libsndfile.dylib' (no such file), '/usr/local/lib/libsndfile.dylib' (no such file), '/usr/lib/libsndfile.dylib' (no such file)
@dantreiman报告说,通过运行以下命令可以解决音频包的问题:
brew install libsndfile
然后手动将安装的库文件复制到我的Python环境的lib目录中,即:
cp /opt/homebrew/Cellar/libsndfile/1.0.31/lib/* <path_to_python_env>/lib/
图像问题仍未解决,尽管我们怀疑它是由于与libjpeg
版本不匹配导致的。
1条答案
按热度按时间moiiocjp1#
感谢运行这些测试。关于libsndfile问题,你是在安装
requirements_audio.txt
依赖项之前还是之后执行的brew install libsndfile
?我怀疑如果你(a)在安装依赖项之前安装库,并且(b)确保将要使用它的Python模块的setup知道在哪里找到它,那么你就不需要手动复制那个文件了。