Python Forum
Keyboard Maestro has problem importing python scripts
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keyboard Maestro has problem importing python scripts
#4
Ok, I've made a little bit of progress. I encounter versions of this error when I use terminal and I solve it by doing this:

import sys
str1 = "/library/frameworks/python.framework/versions/3.6/lib/python3.6/site-packages/"
sys.path.append(str1)
When I remove that code I get the following error:

Traceback (most recent call last):
  File "/Users/kylefoley/PycharmProjects/inference_engine2/inference2/Proofs/other/activities/main.py", line 6, in <module>
    import xlwings
ModuleNotFoundError: No module named 'xlwings'
So I'm on the right track. I just need to find out what path to append to sys so that I do not get this error:

Traceback (most recent call last):
  File "/Users/kylefoley/PycharmProjects/inference_engine2/inference2/Proofs/other/activities/main.py", line 6, in <module>
    import xlwings
  File "/library/frameworks/python.framework/versions/3.6/lib/python3.6/site-packages/xlwings/__init__.py", line 25, in <module>
    from . import _xlmac as xlplatform
  File "/library/frameworks/python.framework/versions/3.6/lib/python3.6/site-packages/xlwings/_xlmac.py", line 10, in <module>
    import aem
ModuleNotFoundError: No module named 'aem'
So after I found the module 'aem' I put in the following code:

str1 = "/library/frameworks/python.framework/versions/3.6/lib/python3.6/site-packages/aeosa/aem/"
sys.path.append(str1)
That didn't work however. I'm getting the same error message.
Reply


Messages In This Thread
RE: Keyboard Maestro has problem importing python scripts - by bobsmith76 - Aug-29-2018, 08:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python GDB scripts for Fedora41 voidtrance 3 692 Apr-14-2025, 05:52 PM
Last Post: voidtrance
  How to communicate between scripts in python via shared file? daiboonchu 4 1,756 Dec-31-2024, 01:56 PM
Last Post: Pedroski55
  Trying to us python.exe from our network to run scripts cubangt 3 1,998 Aug-17-2023, 07:53 PM
Last Post: deanhystad
  python standard way of importing library mg24 1 1,537 Nov-15-2022, 01:41 AM
Last Post: deanhystad
  Problem with importing python-telegram library into the project gandonio 1 3,351 Nov-01-2022, 02:19 AM
Last Post: deanhystad
  Problem with importing Python file in Visual Studio Code DXav 7 9,836 Jun-15-2022, 12:54 PM
Last Post: snippsat
  keyboard module; must be root problem philipbergwerf 2 23,155 Apr-04-2021, 11:40 AM
Last Post: philipbergwerf
  Running python scripts from github etc pacmyc 7 5,124 Mar-03-2021, 10:26 PM
Last Post: pacmyc
  keyboard module doesn't work in the microsoft version terminal of python. username 1 3,995 Feb-25-2021, 05:19 PM
Last Post: Larz60+
  Reading SQL scripts from excel file and run it using python saravanatn 2 4,676 Aug-23-2020, 04:49 PM
Last Post: saravanatn

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020