1. Try opening the spec file and after the line that says 'block_cipher =
None' put:

def get_librosa_path():
     import librosa
     librosa_path = sklearn.__path__[0]
     return librosa_path

2. Then after the lines that say 'pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)' put:

dict_tree = Tree(get_librosa_path(), prefix='librosa', excludes=["*.pyc"])
a.datas += dict_tree
a.binaries = filter(lambda x: 'librosa' not in x[0], a.binaries)

3. Then go to your command line and run the following command:

pyinstaller your_file_name.spec --specpath=test

Then run the executable.  You will likely discover you need to import other
libraries.  Any library that doesn't work as a hidden import can be
imported this way just replace 'librosa' with the name of the library you
are trying to include.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/CA%2BjnrzP-Rp-VyUp-Rgig7j%3Dk6gRKZnHURfppR%3D1d8NcQwvaQBQ%40mail.gmail.com.

Reply via email to