Python - registry.txt not found when librosa.load() used in pyinstaller exe

Viewed 634

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.

0 Answers
Related