Getting the error “from robot import run_cli ImportError: No module named robot” even when robotframework was installed in the system using python?

烂漫一生 提交于 2021-01-29 07:45:53

问题


While running the command pybot --version I'm getting the error

from robot import run_cli ImportError: No module named robot

I have already installed robotframework 3.0 with python after downloading the module with its setup.py file.

I tried installing and reinstalling it multiple times.

Also I have verified the environment variables for the same which also seems to be inline with what I have installed.

I checked in the site-packages also where I am able to see robotframework 3.0 present in them.

I checked in the /usr/local/bin as well as /home/.local/bin folder I can see both robot and pybot available. But for running the command robot --version also it is showing the same error.

I really don't know what is missing.

My Environment:

  • Ubuntu 16.04
  • python 2.76
  • robotframework 3.0

Thanks in Advance!


回答1:


I have little experience on installing the ROBOT Framework in linux machine. But just check whether you have done the following:

  1. How did you install ROBOT Framework? Is it by pip command or with the downloaded source file? Have you tried with pip command if any?
  2. Set python path in your environment path/variables. Example in windows, C:\Python27\
  3. Set python scripts folder in your environment path/variables. Example in windows C:\Python27\Scripts

Last, maybe you can share the output of your 'pip list' command? So, just want to see what are the modules/packages that you have installed.



来源:https://stackoverflow.com/questions/54540608/getting-the-error-from-robot-import-run-cli-importerror-no-module-named-robot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!