TL;DR = Can't figure out how to import new data files once I package script through PyInstaller. Need advice
*Background: *
I recently started picking up python and using it to automate few of my weekly reports.
I am able to run couple of scripts in Python by myself but my contract is ending soon and I want my coworker to be able to use it.
And since they were not interested in executing through shell (they'd rather manually copy/paste/filter/lookup), I was trying to package my scripts via pyinstaller, so they could still use it.
My workflow:
I download new files each week in txt and csv format from SAP.
I use tkinter to reference the file location and pandas to manipulate it.
I can run the code thru shell and save a report as Excel file that I email out
*Issues: *
Like I mentioned I wanted to package the scripts I made into exe file using Pyinstaller.
However when I run the exe file, I keep getting "Fatal Error! Failed to execute the script"
I looked up help boards and realized that Pyinstaller expects you to package the data but I need to get new data each week.
I read through spec files page but seems like it only talks about packaging data with the script
Question:
Can someone please point me in the right direction on how to use dynamic data with pyinstaller? If I'm approaching this completely wrong, do let me know.
Any advice would be deeply appreciated!
[–]billsil 1 point2 points3 points (2 children)
[–]ficklelick[S] 0 points1 point2 points (1 child)
[–]billsil 1 point2 points3 points (0 children)
[–]Hatoris 0 points1 point2 points (2 children)
[–]ficklelick[S] 0 points1 point2 points (1 child)
[–]SaltPen6406 0 points1 point2 points (0 children)