Hello, I believe the --add-data flag in the command line was introduced in a later version of pyinstaller. It should work in your .spec file with the "datas=" flag.
For more information visit: https://pypi.org/project/PyInstaller/3.1.1/ Regards, Abhishek On Friday, April 10, 2020 at 9:25:57 PM UTC+5:30, ttepperg wrote: > > Hi, > > I'm finding a related problem. > > Pyinstaller v3.1 on Mac (Capitan) does not appear to have the --add-data > option at all. > > Typing, e.g.: > > $> pyinstaller --add-data='myfile.txt' myscript.py > > Fails with: > > error: unrecognized arguments: --add-data= > > Typing: > > $> pyinstaller -h > > indeed reveals that the option '--add-data' is not available under section > 'what to bundle, where to search', in contrast to the documentation. > > Any ideas? > > Thanks. > > On Wednesday, July 17, 2019 at 12:37:54 AM UTC+10, Amir Katz wrote: >> >> I tried this command (which does work fine w/o the --add-data option): >> >> (venv-374) pyinstaller --path .\venv-374\lib\site-packages >> --add-data 'resources:resources' .\notification-tool.py >> >> and I get this error: >> >> * pyinstaller: error: argument --add-data: invalid add_data_or_binary >> value: 'resources:resources'* >> >> When I added this in the .spec file, I was able to add my files: >> >> datas=[('resources', 'resources')], >> >> If this is a known bug, apologies in advance. >> >> Thanks, >> Amir >> >> -- 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/23d9dca5-06f6-4533-9f4f-0a9218357ebf%40googlegroups.com.
