vgrem / Office365-REST-Python-Client

Microsoft 365 & Microsoft Graph Library for Python
MIT License
1.3k stars 332 forks source link

pyinstaller xml issue #358

Open vamsivipparla opened 3 years ago

vamsivipparla commented 3 years ago

No such file or directory: AppData\Local\Temp\_MEI205282\office365\runtime\auth\providers\templates\SAML.xml'

script is running individually, but when converted to exe using pyinstaller i am getting above issue. Can anyone help.

mrranck commented 3 years ago

The file is in your . . . Lib\site-packages\office365\runtime\auth\providers\templates\

I have not used pyinstaller with this library yet, but you'll need to either specify to add the file or the entire office365 library. auto-py-to-exe has a gui for pyinstaller where you could specify SAML.xml under "Additional Files"