I am not able to import these libraries from within Zeus.
Code: Select all
import dbi
import odbc
import win32com.client
import ftplib
import time
import os
import string
from pprint import pprint
These libraries are pretty critical for allowing Python to automate Zeus.
I did perform some additional research and discovered that Zeus was using a different version of Python than me. (Zeus uses 2.4, I was using 2.3)
I upgraded my version of Python and set some environment variables (to find the libraries) that had not been previously set.
Now most of the imports work. Those imports that are loaded from a .py or .pyc (source files) work fine. Those imports that are loaded from executables (dll) cause Zeus to abort with the following error message:
Code: Select all
Messagebox title is Microsoft Visual C++ Runtime Library
Runtime Error!
Program: C:\Program Files\Zeus\zeus.exe
This application has requested the Runtime to terminate in an unusual way.
Please contact the application's support team for more information.
If you have an easy fix or work around, I would appreciate it. However, I can implement just about macro functionality I need using vbscript instead of Python. (But I prefer coding in Python)