我试图在Python 3.5.2和pyttsx库中运行语音程序.但我遇到了很多问题.第一个是发动机.当我运行命令时import pyttsx,编译器给出了如下错误:
ImportError: No module named 'engine'
Run Code Online (Sandbox Code Playgroud)
然后我找到了这个答案.但它也没有用.最后,我现在有另一个 - 类似 - 如下所示的错误:
D:\Users\orcuny\Desktop\AVA>python ava.py
Traceback (most recent call last):
File "D:\Users\orcuny\AppData\Local\Continuum\Anaconda3\lib\site-packages\pyttsx\__init__.py", line 37, in init
eng = _activeEngines[driverName]
File "D:\Users\orcuny\AppData\Local\Continuum\Anaconda3\lib\weakref.py", line 131, in __getitem__
o = self.data[key]()
KeyError: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "ava.py", line 3, in <module>
engine = pyttsx.init()
File "D:\Users\orcuny\AppData\Local\Continuum\Anaconda3\lib\site-packages\pyttsx\__init__.py", line 39, in init
eng = Engine(driverName, …Run Code Online (Sandbox Code Playgroud) 我无法在JetBrain的DataGrip中看到任何查询执行时选项ORACLE DB的PL/SQL.在JetBrain的帮助页面中没有任何帮助.
任何帮助将不胜感激.
假设我有 4 个功能文件,它们是用 0.9.0 版空手道编写的。我标记特征1与@ F1,特征2与@ F2,设有3与@ F3,特征4与@ F4。
另一方面,我有一个 runner 类,它放置在所有这些功能文件的根目录中。现在我想运行@F1、@F2和@F3但不是@F4标签。
我使用 KarateOptions 如下:
@KarateOptions(tags = {"@F1", "@F2", "@F3", "~@F4"} )
Run Code Online (Sandbox Code Playgroud)
显然,我做错了什么,因为我的黄瓜-html-reports文件中没有出现任何输出。
提前致谢。
编辑 1:这是我的整个跑步类代码:
@KarateOptions(tags = {"@F1", "@F2", "@F3", "~@F4"} )
public class TestRunnerAutomation {
@Test
public void testParallel() {
Results results = Runner.parallel(getClass(), 5);
generateReport(results.getReportDir());
assertTrue(results.getErrorMessages(), results.getFailCount() == 0);
}
public …Run Code Online (Sandbox Code Playgroud)