Re: [PyInstaller] pyinstaller + librosa: "Module not found" for EXE, even w/ hidden import?

2020-04-04 Thread 'Chris Barker' via PyInstaller
it seems you've solved your issue, but a note: My environment/install looks like this: > conda create --name myapp python=3.7 > conda activate myapp > conda install -c numba numba # numba is optional, actually > conda install -c conda-forge librosa > conda install pyqt pillow

Re: [PyInstaller] pyinstaller + librosa: "Module not found" for EXE, even w/ hidden import?

2020-04-04 Thread Scott Hawley
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

Re: [PyInstaller] pyinstaller + librosa: "Module not found" for EXE, even w/ hidden import?

2020-04-04 Thread Scott Hawley
Thanks very much for your suggestions! Following those steps (i.e. editing myapp.spec) changes the amount of output provided before the "Module not found" error message appears, but this has moved the error message from the final executable earlier to the pyinstaller build attempt: source/ $

Re: [PyInstaller] pyinstaller + librosa: "Module not found" for EXE, even w/ hidden import?

2020-04-03 Thread Hartmut Goebel
Am 03.04.20 um 01:04 schrieb Scott Hawley: > Any suggestions? See the "hooks" section in the manual -- Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer Information Security Management, Security Governance, Secure Software Development Goebel

Re: [PyInstaller] pyinstaller + librosa: "Module not found" for EXE, even w/ hidden import?

2020-04-03 Thread Abasi Brown
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 wrote: > 1. Try opening the spec file and after the line that says 'block_cipher = > None' put: > > def get_librosa_path():

Re: [PyInstaller] pyinstaller + librosa: "Module not found" for EXE, even w/ hidden import?

2020-04-03 Thread Abasi Brown
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: