revise step one:

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


On Fri, Apr 3, 2020 at 8:38 AM Abasi Brown <[email protected]> wrote:

> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/CA%2BjnrzPz--s0KepB9B-g0%3Dkw1Y9RsC6AtTnKFmfa5P2n%2B%2Bsc%3Dw%40mail.gmail.com.

Reply via email to