SOLVED!

This actually, apparently was entirely a 'conda' environment error.  What 
fixed it was:

conda deactivate myapp
conda activate myapp 
conda uninstall librosa
conda install -c conda-forge librosa 

There were some extra hidden targets that neeeded defining before the whole 
thing would build, which were...
hiddenimports=['librosa', 'scipy._lib.messagestream', 'sklearn.tree', 
'sklearn.neighbors.typedefs', 'sklearn.neighbors.quad_tree', 
'sklearn.tree._utils', 'sklearn.utils._cython_blas'],

...but the main thing as "turning it off and on again" with respect to the 
conda environment.  

Thanks!



On Friday, April 3, 2020 at 8:06:55 AM UTC-5, Abasi Brown wrote:
>
> 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] 
> <javascript:>> 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/2bcb1537-cc38-4218-ad1c-56286bccc558%40googlegroups.com.

Reply via email to