Solved July 5, 2019. Thanks! See post below.
Hi, I am having some trouble with Python. My workflow uses the following code:
C:\Users\burque505\AppData\Local\Programs\Python\Python37\python.exe C:\Users\burque505\Documents\ZappySamples\burque505 Automations\Word2PDF1.pyw
A .png of the simple workflow is below.
(Although this script uses the pywin32 package, I have identical problems with a simple “hello, world!” script. I know Zappy has PDF activities, but this script was to test Python’s ability to do the same. Also, for reference, I have tried this workflow with Python 3.7, which is my system default, Python 3.6 64-bit, and Python 3.6 32-bit, changing the Zappy script to reflect the different executable location, all with the same results.)
I can manually execute the script in the referenced directory success. Python (or I should say, Word, since it is doing the conversion) creates the PDF in the directory, and then closes as expected.
When Zappy runs the script, it reports that it has completed the task (via the message box and the built-in notification), but Word does not open and therefore no PDF is created.
I would be quite happy if I could have a workflow that, for example, uses Python to create a file in the script directory, appends some text, saves it and closes. Or any other simple script to demonstrate the proper paths and steps.
Thanks in advance, and kind regards,
EDIT: I have not yet installed all the dependencies, it seems. I have downloaded the Python Dependency Installer. There is a post regarding this here. I also did not look closely enough at the examples, or I would have seen the sample that (for me anyway) resides at “Documents\ZappySamples\PDFAutomations\PDFtoExcel”. I will report on my findings after I have my system properly set up.
Re-edit: I have ActiveState TCL and ghostscript installed, per the instructions given for manual installation of dependencies. I have Python 3.7 at “C:\Users\burque505\AppData\Local\Programs\Python\Python37\python.exe”. For the sample “PDFExtractUsingPython.zappy”, I have modified the file path to reflect my Python installation. The script runs without error, but no file is produced.
Re-edit 2: I have installed the PythonDependencyInstaller on a Win10 machine with Zappy. Unfortunately, my (non-)results above were duplicated.