Android 如何从Ruby/Cucumber-Calabash运行python脚本

Android 如何从Ruby/Cucumber-Calabash运行python脚本,android,python,cucumber,calabash,androidviewclient,Android,Python,Cucumber,Calabash,Androidviewclient,我对葫芦/黄瓜有一个问题,我需要启动一个python脚本,由culebra(androidviewclient)生成,用几句话,点击我的应用程序的外部视图。 这是我的ruby页面类: require 'calabash-android/abase' class SignUpPage < Calabash::ABase def login_google_confirm_step_1 system '/PATH/social_login_step_1.py' end 当我使

我对葫芦/黄瓜有一个问题,我需要启动一个python脚本,由culebra(androidviewclient)生成,用几句话,点击我的应用程序的外部视图。 这是我的ruby页面类:

require 'calabash-android/abase'    
class SignUpPage < Calabash::ABase

def login_google_confirm_step_1
    system '/PATH/social_login_step_1.py'
end
当我使用cucumber功能时,出现以下错误:

UiTests/features/android/pages/signup_page.rb
Failed to load 'py' programming language for file UiTests/features/android/pages/social_login_step_1.py: cannot load such file -- rubypython
* UiTests/features/android/pages/social_login_step_1.py [NOT SUPPORTED]
我已经安装了RubyPythonGem,在网上找不到任何可以帮助我的主题。
有人能帮我吗?谢谢。

好的,我解决了。。。。问题是我保存python脚本(social_login_step_1.py)的路径,我从pages/directory中删除了该文件,其中的内容是variable pages.rb,并再次运行所有脚本

UiTests/features/android/pages/signup_page.rb
Failed to load 'py' programming language for file UiTests/features/android/pages/social_login_step_1.py: cannot load such file -- rubypython
* UiTests/features/android/pages/social_login_step_1.py [NOT SUPPORTED]