3

I have the following code

file = "somefile.wav"
from librosa import load
data, samplerate = load(file, sr=None)

It works fine in a .py file but When I convert the .py file into .exe using pyinstaller it doesn't work anymore. It throws the following error.

  File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
  File "librosa\util\files.py", line 34, in <module>
  File "pooch\core.py", line 600, in load_registry
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\PCVISI~1\\AppData\\Local\\Temp\\_MEI208602\\librosa\\util\\example_data\\registry.txt'
[6848] Failed to execute script main

I tried re-installing librosa, and tried re-installing pooch as well.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.