0

enter image description hereI was using python 3.6 for robot framework and selenium. As my client wants to upgrade to python 3.7.1 we did that. Now facing issue in running my automation scripts with the message as

failed: ModuleNotFoundError: No module named 'robot.parsing.populators'

Is it something as it is showing win32 when my system is 64/windows10 Please guide how to resolve this. Thanks!

Sample code:

Hi, Below is my code. Which was working absolutely fine on python 3.6. But now issue here in 3.7.1

***settings***
Library    DateTime
Library   Selenium2Library
*** Test Cases ***
    Open Browser  ${URL}   ${BROWSER}
    Maximize Browser Window
    Set Browser Implicit Wait    5
    Capture Page Screenshot   ${PATH}BrowserOpened${TYPE OF FILE}
#Login to the application     
    Input Text  id=email   &{LOGINDATA}[email]
    Input Text  id=password   &{LOGINDATA}[password]
    Capture Page Screenshot   PasswordEnter${TYPE OF FILE}
    Click Element    xpath=//*[@id="btnSubmit"]
5
  • Python is telling you the external module you're trying to import, does not exist. You need to add it using pip install, or simply downloading the source and using the setup.py for that package to install it.
    – JDM
    May 4, 2020 at 20:41
  • Thanks but getting an error. C:\Users>pip install robot.parsing.populators Collecting robot.parsing.populators Could not find a version that satisfies the requirement robot.parsing.populators (from versions: ) No matching distribution found for robot.parsing.populators
    – ADS KUL
    May 5, 2020 at 2:13
  • @ADSKUL you have to do pip install robotframework ,
    – PDHide
    May 5, 2020 at 5:51
  • Robot is the root of robotframework
    – PDHide
    May 5, 2020 at 5:51

1 Answer 1

1

https://robot-framework.readthedocs.io/en/3.0/autodoc/robot.html

robot class is the root of robotframework . So it seems like you don't have robotframework.

Just install robotframework using :

pip install robotframework --verbose 

And see if it's installing correct python site package.

Update:

The author confirmed that the issue was with RIDE , reinstalling correct ride version fixed the issue .

9
  • Thanks but still getting error like this. [ ERROR ] Taking listener 'C:\Users\AppData\Local\Temp\RobotTempDir5297880248617435274\TestRunnerAgent.py:60880' into use failed: Importing listener 'C:\Users\AppData\Local\Temp\RobotTempDir5297880248617435274\TestRunnerAgent.py' failed: ModuleNotFoundError: No module named 'robot.parsing.populators' Traceback (most recent call last):
    – ADS KUL
    May 5, 2020 at 6:26
  • @ADSKUL can you add a sample python code
    – PDHide
    May 5, 2020 at 7:26
  • Hi, Below is my code. Which was working absolutely fine on python 3.6. But now issue here in 3.7.1 settings Library DateTime Library Selenium2Library *** Test Cases *** Open Browser ${URL} ${BROWSER} Maximize Browser Window Set Browser Implicit Wait 5 Capture Page Screenshot ${PATH}BrowserOpened${TYPE OF FILE} #Login to the application Input Text id=email &{LOGINDATA}[email] Input Text id=password &{LOGINDATA}[password] Capture Page Screenshot PasswordEnter${TYPE OF FILE} Click Element xpath=//*[@id="btnSubmit"]
    – ADS KUL
    May 5, 2020 at 7:48
  • 1
    Hi, I reinstall RIDE plugin and it starts working.Thanks. Please let me know from where and which version of Autoit library should I install.? Thanks
    – ADS KUL
    May 5, 2020 at 8:55
  • 1
    Thanks, It worked and Done!
    – ADS KUL
    May 5, 2020 at 9:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.