opentap / OpenTap.Python

Python integration for OpenTAP
Apache License 2.0
20 stars 6 forks source link

A Numpy error is displayed in logs when creating a Test Plan on a Runner with a Python Instrument #182

Open bogdan-achim opened 2 months ago

bogdan-achim commented 2 months ago

Environment Staging v1.15.2-rc.18

Describe the bug An error is displayed in logs when creating a Test Plan on a Runner with a Python Instrument

To Reproduce Steps to reproduce the behavior:

Have a local Runner with a Python Instrument Create a new Test Plan on the local runner Check the logs Actual behavior An error is displayed:

12:39:24.930 ; Python ; PythonException: No module named 'numpy'
12:39:24.939 ; Python ; File "C:\Users\bogdachi\AppData\Local\Temp\opentap-images\2280FEBD18F0460F3BDC3D60D0C9D3782FC4F1EF\Packages\PythonExamples\NumpyStep.py", line 2, in <module>
12:39:24.939 ; Python ; import numpy as np
12:39:24.939 ; Python ; at Python.Runtime.PythonException.ThrowLastAsClrException()
12:39:24.939 ; Python ; at Python.Runtime.NewReferenceExtensions.BorrowOrThrow(NewReference& reference)
12:39:24.939 ; Python ; at Python.Runtime.PyModule.Import(String name)
12:39:24.939 ; Python ; at OpenTap.Python.PythonPluginProvider.Search()
12:39:24.940 ; Python ; Exception caught at:
12:39:24.942 ; Python ; at Void <StartAwaitable>b__0()
12:39:24.942 ; Python ; at Void Process()
12:39:24.942 ; Python ; at Void processQueue()
12:39:24.942 ; Python ; at Void RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
12:39:24.942 ; Python ; ...

image