-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
General information:
- OS name: Window
- OS version: 10
- OS architecture: 64 bits
- Python version: 3.7.9
- mss version: 6.1.0
- Robot Framework version: 4.1.3
- robotframework-screencaplibrary version: 1.6.0
- opencv-python: 4.5.5.64
Description of the warning/error
run a robot test with Library ScreenCapLibrary
Full message
[ ERROR ] Error in file 'C:\jenkins\workspace\Resources\Utilities\GenericActions.resource' on line 7: Importing library 'ScreenCapLibrary' failed: ImportError: Importing cv2 failed. Make sure you have opencv-python installed.
Traceback (most recent call last):
File "c:\program files\python37\lib\site-packages\ScreenCapLibrary\__init__.py", line 16, in <module>
from .library import ScreenCapLibrary
File "c:\program files\python37\lib\site-packages\ScreenCapLibrary\library.py", line 17, in <module>
from .client import Client
File "c:\program files\python37\lib\site-packages\ScreenCapLibrary\client.py", line 25, in <module>
raise ImportError('Importing cv2 failed. Make sure you have opencv-python installed.')
PYTHONPATH:
C:\Program Files\Python37\Scripts\robot.exe
c:\program files\python37\python37.zip
c:\program files\python37\DLLs
c:\program files\python37\lib
c:\program files\python37
c:\program files\python37\lib\site-packages
c:\program files\python37\lib\site-packages\win32
c:\program files\python37\lib\site-packages\win32\lib
c:\program files\python37\lib\site-packages\Pythonwin
Example
Screenshot.Robot:
*** Settings ***
Library ScreenCapLibrary
*** Test Cases ***
Get a screenshot
ScreenCapLibrary.Take Screenshot
Other details
robotframework-screencaplibrary
>pip show robotframework-screencaplibrary
Name: robotframework-screencaplibrary
Version: 1.6.0
Summary: Robot Framework test library for taking screenshots
Home-page: https://github.com/mihaiparvu/ScreenCapLibrary
Author: Mihai Pârvu
Author-email: mihai-catalin.parvu@nokia.com
License: Apache License 2.0
Location: c:\program files\python37\lib\site-packages
Requires: imageio, mss, opencv-python, pillow, pyautogui, robotframework
Required-by:
opencv-python
>pip show opencv-python
Name: opencv-python
Version: 4.5.5.64
Summary: Wrapper package for OpenCV python bindings.
Home-page: https://github.com/skvark/opencv-python
Author:
Author-email:
License: MIT
Location: c:\program files\python37\lib\site-packages
Requires: numpy
Required-by: robotframework-screencaplibrary
Metadata
Metadata
Assignees
Labels
No labels