python - Xcode: 'ModuleNotFoundError'
问题描述
I am trying to run an app I have built using python and kivy. I have created an Xcode file which builds successfully, but when I simulate the app in Xcode the following error message is raised:
Traceback (most recent call last):
File "/Users/orlandoalexander/alarmclock-ios/YourApp/main.py", line 11, in <module>
ModuleNotFoundError: No module named 'osascript'
2021-03-07 20:39:05.124675+0000 alarmclock[2937:103283] Application quit abnormally!
2021-03-07 20:39:05.156979+0000 alarmclock[2937:103283] Leaving
Why would this be? Do I need to import the module 'osascript' into Xcode in some way?
I have installed osascript using pip3 via command line.
解决方案
尝试使用安装 osascript
点安装 osascript
或者你需要更新 pip 包(windows)
python -m pip install --upgrade pip
推荐阅读
- javascript - 返回 JS 数组中的 N 个唯一随机数
- python - 如何使用Airflow在python中每天运行一次函数和其他函数?
- node.js - 如何使用 cli 命令行在本地运行 beanstalk 应用程序
- java - 线程“主”java.lang.NullPointerException 中的异常...???? 它在 Intellij IDE 中进行
- angular - 根据在 mat-select 中选择的特定值禁用按钮
- python - python按substr排序列表
- javascript - JavaScript addEventListener 点击和键码
- php - 如何选择多个关键字
- sql - 在哪些工作负载中使用 MapReduce 而不是 SQL 是有意义的,反之亦然?
- math - 没有 ε 的 RE 到 FSA 的转换