Aug-29-2018, 02:53 PM
(This post was last modified: Aug-29-2018, 02:54 PM by bobsmith76.)
I'm trying to run my python scripts with the click of one button. i'm tired of hunting for my terminal, activating it, then inputting an alias. so i've looked around for some things then can run python scripts on a mac with the click of one button. i've decided to go with keyboard maestro since i've had some very moderate success with it. in any case, when it runs my scripts it has trouble importing all of my modules.
I can run simple python scripts with KM (keyboard maestro) but when I try to run something quite complex it breaks down. KM cannot import certain modules. So I call one module which uses xlwings. When KM tries to import xlwings it has trouble importing the modules that xlwings imports. Look at this
I can run simple python scripts with KM (keyboard maestro) but when I try to run something quite complex it breaks down. KM cannot import certain modules. So I call one module which uses xlwings. When KM tries to import xlwings it has trouble importing the modules that xlwings imports. Look at this
from main import * File "/Users/kylefoley/PycharmProjects/inference_engine2/inference2/proofs/other/activities/main.py", line 6, in import xlwings File "/library/frameworks/python.framework/versions/3.6/lib/python3.6/site-packages/xlwings/init.py", line 25, in from . import _xlmac as xlplatform File "/library/frameworks/python.framework/versions/3.6/lib/python3.6/site-packages/xlwings/_xlmac.py", line 10, in import aem ModuleNotFoundError: No module named 'aem'So you can see that it successfully executes
from main import *which is my code. Then it imports xlwings. After that it goes into another module which is not my code. This is where things start to go wrong. It executes line 25 of in the xlwings module but then it cannot execute line 10 of the xlmac.py module. Really at a loss here.