PyInstaller v 3.1 is over four years old, so not too surprising that this option is missing. Update your installation, "pip install --upgrade pyinstaller" and it should appear.
On Fri, Apr 10, 2020 at 8:55 AM ttepperg <[email protected]> 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/8c1eb1e8-cd79-49f4-b355-95cc563f683f%40googlegroups.com > <https://groups.google.com/d/msgid/pyinstaller/8c1eb1e8-cd79-49f4-b355-95cc563f683f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAP2Qz%2BWACa3b-AMEMP%2BbFYzAEKPEn0oEOztvx4gZEZW8supx4w%40mail.gmail.com.
