每次运行';生菜';VSCode中的python

每次运行';生菜';VSCode中的python,python,gherkin,lettuce,Python,Gherkin,Lettuce,我试图在莴苣(小黄瓜)中运行一个简单的测试,但我无法通过以下错误。 这就是测试: Feature: Go to google Scenario: Visit Google Given I go to "http://www.google.com/" When I fill in field with class "gsfi" with "testingbot" Then I should see "

我试图在莴苣(小黄瓜)中运行一个简单的测试,但我无法通过以下错误。 这就是测试:

Feature: Go to google  

Scenario: Visit Google  
  Given I go to "http://www.google.com/"  
  When I fill in field with class "gsfi" with "testingbot"  
  Then I should see "testingbot.com" within 2 second  
这就是错误:

PS C:\Users\\Documents\PYTHON\features\lettuce-browserstack> lettuce
Traceback (most recent call last):
  File "C:\Users\mihai.costache.DEA\AppData\Roaming\Python\Python39\Scripts\lettuce-script.py", line 33, in <module>  
    sys.exit(load_entry_point('lettuce==0.2.23', 'console_scripts', 'lettuce')())  
  File "C:\Users\mihai.costache.DEA\AppData\Roaming\Python\Python39\Scripts\lettuce-script.py", line 25, in importlib_load_entry_point
    return next(matches).load()  
  File "c:\program files\python39\lib\importlib\metadata.py", line 77, in load
    module = import_module(match.group('module'))  
  File "c:\program files\python39\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)  
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import  
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load  
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked  
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed  
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import  
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load  
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked  
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked  
  File "<frozen importlib._bootstrap_external>", line 786, in exec_module  
  File "<frozen importlib._bootstrap_external>", line 923, in get_code  
  File "<frozen importlib._bootstrap_external>", line 853, in source_to_code  
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed  
  File "C:\Users\mihai.costache.DEA\AppData\Roaming\Python\Python39\site-packages\lettuce\__init__.py", line 179  
    print "Error loading step definitions:\n", e
          ^  
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Error loading step definitions:\n", e)? 
PS C:\Users\\Documents\PYTHON\features\莴苣浏览器堆栈>莴苣
回溯(最近一次呼叫最后一次):
文件“C:\Users\mihai.costache.DEA\AppData\Roaming\Python39\Scripts\莴苣script.py”,第33行,在
sys.exit(加载入口点('莴苣==0.2.23','console\u scripts','莴苣')())
文件“C:\Users\mihai.costache.DEA\AppData\Roaming\Python39\Scripts\莴苣script.py”,第25行,在importlib\u load\u入口点
返回下一个(匹配项)。加载()
加载文件“c:\program files\python39\lib\importlib\metadata.py”,第77行
模块=导入模块(match.group('module'))
文件“c:\program files\python39\lib\importlib\\uuuuu init\uuuuu.py”,第127行,在导入模块中
return _bootstrap._gcd_import(名称[级别:],包,级别)
文件“”,第1030行,在_gcd_import中
文件“”,第1007行,在“查找”和“加载”中
文件“”,第972行,在“查找”和“加载”中解锁
文件“”,第228行,在调用中删除了帧
文件“”,第1030行,在_gcd_import中
文件“”,第1007行,在“查找”和“加载”中
文件“”,第986行,在“查找”和“加载”中解锁
文件“”,第680行,在\u加载\u解锁
exec_模块中第786行的文件“”
文件“”,第923行,get_代码
文件“”,第853行,源代码为
文件“”,第228行,在调用中删除了帧
文件“C:\Users\mihai.costache.DEA\AppData\Roaming\Python39\site packages\莴苣\\uuuuu init\uuuuu.py”,第179行
打印“加载步骤定义时出错:\n”,e
^  
SyntaxError:调用“print”时缺少括号。您是指打印(“加载步骤定义时出错:\n”,e)”吗?
有没有快速解决办法?
谢谢

莴苣是蟒蛇2-印刷品当时不需要帕伦斯。我不知道如何在python3中安装它,但如果不进行大量修改,它将无法工作。我对“behave”也有类似的问题,这让我想知道它是否也被弃用,或者我面临着同样的错误。Python上的BDD开发有可靠的东西吗?