{"action":"closed","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/2574","repository_url":"https://api.github.com/repos/pyinstaller/pyinstaller","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/2574/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/2574/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/2574/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/2574","id":224060607,"number":2574,"title":"compiling python script that uses python pptx error ","user":{"login":"thebeancounter","id":13833578,"avatar_url":"https://avatars1.githubusercontent.com/u/13833578?v=3","gravatar_id":"","url":"https://api.github.com/users/thebeancounter","html_url":"https://github.com/thebeancounter","followers_url":"https://api.github.com/users/thebeancounter/followers","following_url":"https://api.github.com/users/thebeancounter/following{/other_user}","gists_url":"https://api.github.com/users/thebeancounter/gists{/gist_id}","starred_url":"https://api.github.com/users/thebeancounter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebeancounter/subscriptions","organizations_url":"https://api.github.com/users/thebeancounter/orgs","repos_url":"https://api.github.com/users/thebeancounter/repos","events_url":"https://api.github.com/users/thebeancounter/events{/privacy}","received_events_url":"https://api.github.com/users/thebeancounter/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-25T08:30:21Z","updated_at":"2017-04-25T19:02:11Z","closed_at":"2017-04-25T19:02:11Z","body":"Hi! \r\nI am using a windows 7 machine, updated with .net, c++ and c++ for python installed.\r\nI am using pyinstaller to compile a python script that uses python pptx module to build a pptx file. \r\nThe script is callerd master2.py and i compile it with the command \r\n`pyinstaller --onefile --noupx master.py`\r\nIt compiles with no errors\r\nWhen i run I am getting that error:\r\n> pptx.exc.packagenotfounderror: package not found at ....\\default.pptx\r\nWhen compiling and running it on a Linux machine, it runs smoothly, seems that the issue is the default pptx template missing. \r\n\r\nWhen i am running the script with python on the same machine it run smoothly so i assume that the machine has all the files and installation that are needed to the run and dependency tree\r\n\r\nApparently it happens in different close modules, note [github issue](https://github.com/python-openxml/python-docx/issues/289)\r\nI found [here](https://pythonhosted.org/PyInstaller/spec-files.html#adding-data-files) how to add a file to the .exe file.\r\nI got stuck looking where to add it to... when the pptx module runs it's looking for the file in './templates/default.pptx'\r\nWhen adding the file to the .exe, where do i need to add it to? or is there any other solution?\r\n\r\n\r\nThanks!\r\n\r\n\r\n"}}
{"actor":{"display_login":"htgoebel"}}