how to modify .spec file so that javascript file can be found?

49 views
Skip to first unread message

Paul Fishback

unread,
Nov 29, 2021, 5:25:20 PM11/29/21
to PyInstaller
I've been using pyinstaller to create applications based upon the  mne package for eeg signal analysis. Until the most recent update of mne, everything worked fine.

However, now during the process of building my app,I'm encountering the error, 

No such file or directory: '/dist/MyApp.app/Contents/MacOS/mne/report/js_and_css/report.js'

The error persists when I try to run the unix executable from the command line. I can see report.js within the mne module directory, and I've tried to modify my .spec file so that pathex includes its location: 

'/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/mne/report/js_and_css/report.js'

However, this does not solve the problem. How can I get pyinstaller to find the location of report.js during the build process? 

Thanks

Paul F



Reply all
Reply to author
Forward
0 new messages