# \#python

**URL:** https://forum.opentap.io/tag/python/2.md

[Latest](https://forum.opentap.io/latest.md) · [Categories](https://forum.opentap.io/categories.md) · [Tags](https://forum.opentap.io/tags.md)

---

## [Python Virtual Environments](https://forum.opentap.io/t/python-virtual-environments/2700)

<div class="topic-metadata">

**Author:** [@bice123](https://forum.opentap.io/u/bice123)\
**Replies:** 1\
**Last updated:** [September 17, 2026, 10:55pm UTC](https://forum.opentap.io/t/python-virtual-environments/2700 "2026-09-17T22:55:07Z")

</div>

I am currently having an issue with OpenTap loading the Python virtual environment correctly during sessions, but skipping over the virtual environment during global initialization. Any tap CLI command, as well as the Ru…

---

## [Ubuntu Python Environment recognition problem](https://forum.opentap.io/t/ubuntu-python-environment-recognition-problem/2656)

<div class="topic-metadata">

**Author:** [@matev03](https://forum.opentap.io/u/matev03)\
**Replies:** 0\
**Last updated:** [March 4, 2026, 4:19pm UTC](https://forum.opentap.io/t/ubuntu-python-environment-recognition-problem/2656 "2026-03-04T16:19:41Z")

</div>

Hello! I’m developing a cross-platform GUI application using Avalonia, which integrates OpenTAP to execute tests. I’m currently working on Ubuntu 24.04 with the latest versions of OpenTap, and OpenTap.Python package. I …

---

## [Running Python TestPlan/Steps with .Net Api for Custome GUI](https://forum.opentap.io/t/running-python-testplan-steps-with-net-api-for-custome-gui/2590)

<div class="topic-metadata">

**Author:** [@matev03](https://forum.opentap.io/u/matev03)\
**Replies:** 9\
**Last updated:** [February 4, 2026, 3:24pm UTC](https://forum.opentap.io/t/running-python-testplan-steps-with-net-api-for-custome-gui/2590 "2026-02-04T15:24:50Z")

</div>

I want to use a custome GUI to Run Testplans, that I make in the Editor. I have a custom Avalonia GUI. I can run example Testplans, and even Testplans, containing my own plugins that I have written in C#, from this GUI. …

---

## [Python Plugin 3.2 Released](https://forum.opentap.io/t/python-plugin-3-2-released/2589)

<div class="topic-metadata">

**Author:** [@rolf\_madsen](https://forum.opentap.io/u/rolf_madsen)\
**Replies:** 0\
**Last updated:** [December 1, 2025, 8:24am UTC](https://forum.opentap.io/t/python-plugin-3-2-released/2589 "2025-12-01T08:24:29Z")

</div>

Version 3.2 features Python versions 3.7 to 3.13 are now supported. Allow constructing objects with mixed hierarchies and without calling init explicitly. Added support for building stubs files. View more information …

---

## [Editor is not able to detect my python virtual environment](https://forum.opentap.io/t/editor-is-not-able-to-detect-my-python-virtual-environment/2584)

<div class="topic-metadata">

**Author:** [@abel1](https://forum.opentap.io/u/abel1)\
**Replies:** 0\
**Last updated:** [November 10, 2025, 8:40am UTC](https://forum.opentap.io/t/editor-is-not-able-to-detect-my-python-virtual-environment/2584 "2025-11-10T08:40:17Z")

</div>

Hi everyone, I’m developing an OpenTAP python plugin for hardware testing purposes, and the problem I face is that Editor cannot detect my venv folder no matter what I do. I tried to set venv from the CLI and also in th…

---

## [How to keep Python DUT from validating while the testplan is running](https://forum.opentap.io/t/how-to-keep-python-dut-from-validating-while-the-testplan-is-running/2582)

<div class="topic-metadata">

**Author:** [@robert.lamoreaux](https://forum.opentap.io/u/robert.lamoreaux)\
**Replies:** 0\
**Last updated:** [October 28, 2025, 9:24pm UTC](https://forum.opentap.io/t/how-to-keep-python-dut-from-validating-while-the-testplan-is-running/2582 "2025-10-28T21:24:56Z")

</div>

I have made a DUT in python that works fairly well, but is slow during running with a tapplan that references other tapplans. I’ve found part of the issue is that eveytime it gets to a referenced plan it inits the DUT, a…

---

## [Keysight Package Manager won't install requirements.txt](https://forum.opentap.io/t/keysight-package-manager-wont-install-requirements-txt/2576)

<div class="topic-metadata">

**Author:** [@schuyler.fenton](https://forum.opentap.io/u/schuyler.fenton)\
**Replies:** 1\
**Last updated:** [October 2, 2025, 5:23pm UTC](https://forum.opentap.io/t/keysight-package-manager-wont-install-requirements-txt/2576 "2025-10-02T17:23:25Z")

</div>

When installing a python plugin that specifies a file, the package manager will not run the pip install command for the requirements.txt file. OpenTAP will correctly install packages in requirements.txt when installing …

---

## [Property in Python that holds a 2D array for storing frequency and gain values](https://forum.opentap.io/t/property-in-python-that-holds-a-2d-array-for-storing-frequency-and-gain-values/2566)

<div class="topic-metadata">

**Author:** [@faissal](https://forum.opentap.io/u/faissal)\
**Replies:** 0\
**Last updated:** [September 5, 2025, 11:28am UTC](https://forum.opentap.io/t/property-in-python-that-holds-a-2d-array-for-storing-frequency-and-gain-values/2566 "2025-09-05T11:28:43Z")

</div>

Hi, I’m currently trying to create a property that allows me to copy frequency and gain data from an Excel file into the editor. While I can successfully create primitive objects like lists or Double values, I’m struggl…

---

## [How can I debug my python plugins in Visual Studio or Pycharm?](https://forum.opentap.io/t/how-can-i-debug-my-python-plugins-in-visual-studio-or-pycharm/2533)

<div class="topic-metadata">

**Author:** [@abel1](https://forum.opentap.io/u/abel1)\
**Replies:** 3\
**Last updated:** [August 8, 2025, 9:21pm UTC](https://forum.opentap.io/t/how-can-i-debug-my-python-plugins-in-visual-studio-or-pycharm/2533 "2025-08-08T21:21:24Z")

</div>

Hi everyone, I work for a small sized company and we are planning to develop python plugins for opentap to test hardware equipments. My problem is that I cannot debug my python code in any IDE. The plugins I have create…

---

## [Trouble understanding Python plugin file structure](https://forum.opentap.io/t/trouble-understanding-python-plugin-file-structure/2538)

<div class="topic-metadata">

**Author:** [@schuyler.fenton](https://forum.opentap.io/u/schuyler.fenton)\
**Replies:** 0\
**Last updated:** [August 5, 2025, 10:44pm UTC](https://forum.opentap.io/t/trouble-understanding-python-plugin-file-structure/2538 "2025-08-05T22:44:45Z")

</div>

I’m trying to develop a plugin solely using Python, but I’m having trouble understanding the rules for packaging Python modules for OpenTap. Ideally, I could use any structure that validly imports modules, but I tend to…

---

## [Python setter not recognized (property has no attribute setter)](https://forum.opentap.io/t/python-setter-not-recognized-property-has-no-attribute-setter/2476)

<div class="topic-metadata">

**Author:** [@faissal](https://forum.opentap.io/u/faissal)\
**Replies:** 3\
**Last updated:** [June 11, 2025, 12:47pm UTC](https://forum.opentap.io/t/python-setter-not-recognized-property-has-no-attribute-setter/2476 "2025-06-11T12:47:09Z")

</div>

Hi, I am having an issue defining setter for an attribute. When I try to define a setter for an attribute using @property.setter, an error is shown when the project is build stating that the property has no attribute se…

---

## [Unable to use Python plugin](https://forum.opentap.io/t/unable-to-use-python-plugin/1941)

<div class="topic-metadata">

**Author:** [@mschmidt](https://forum.opentap.io/u/mschmidt)\
**Replies:** 15\
**Last updated:** [March 1, 2025, 11:59pm UTC](https://forum.opentap.io/t/unable-to-use-python-plugin/1941 "2025-03-01T23:59:03Z")

</div>

I am having issues when using Python plugin. It cant import opentap. I have installed Python 3.12.3 And with these packages: Any idea?

---

## [Using multiple class interheritance / mixins in Python test-cases](https://forum.opentap.io/t/using-multiple-class-interheritance-mixins-in-python-test-cases/2355)

<div class="topic-metadata">

**Author:** [@gernot.hueber](https://forum.opentap.io/u/gernot.hueber)\
**Replies:** 3\
**Last updated:** [February 17, 2025, 2:31pm UTC](https://forum.opentap.io/t/using-multiple-class-interheritance-mixins-in-python-test-cases/2355 "2025-02-17T14:31:56Z")

</div>

Hi, I have a instrument class topic, I wanted to adress with either class inheritance or mixins in Python. What I’d like to achieve is the following. There are instruments A1, A2, A3, … of parent type A B1, B2, B3, …

---

## [\[python\] Accessing attributes and verdict of test plan reference](https://forum.opentap.io/t/python-accessing-attributes-and-verdict-of-test-plan-reference/2223)

<div class="topic-metadata">

**Author:** [@jb111](https://forum.opentap.io/u/jb111)\
**Replies:** 3\
**Last updated:** [December 4, 2024, 8:07am UTC](https://forum.opentap.io/t/python-accessing-attributes-and-verdict-of-test-plan-reference/2223 "2024-12-04T08:07:45Z")

</div>

I have a test plan consisting of a sequence of test plan references. I would like to access the test plan references’ name, verdict and perhaps start time. If possible, I’d prefer to access the test plan references from …

---

## [\[python\] Iterating over settings in custom ComponentSetting](https://forum.opentap.io/t/python-iterating-over-settings-in-custom-componentsetting/2216)

<div class="topic-metadata">

**Author:** [@jb111](https://forum.opentap.io/u/jb111)\
**Replies:** 3\
**Last updated:** [November 25, 2024, 1:38pm UTC](https://forum.opentap.io/t/python-iterating-over-settings-in-custom-componentsetting/2216 "2024-11-25T13:38:56Z")

</div>

I am creating a custom ComponentSetting that I want to access in a single test step. Is there a way to access the properties in an iterator-like manner? There are approximately 25 settings, so accessing them without nam…

---

## [\[python\] Creating a dialog pop-up with read-only text/string](https://forum.opentap.io/t/python-creating-a-dialog-pop-up-with-read-only-text-string/2219)

<div class="topic-metadata">

**Author:** [@jb111](https://forum.opentap.io/u/jb111)\
**Replies:** 2\
**Last updated:** [November 25, 2024, 12:38pm UTC](https://forum.opentap.io/t/python-creating-a-dialog-pop-up-with-read-only-text-string/2219 "2024-11-25T12:38:03Z")

</div>

I have created a dialog pop-up for confirming custom ComponentSettings to the test operator. I would like to make the settings show as a read-only text instead of inside an editable field. Currently, I just extract the…

---

## [Unable to use EmbedPropertiesAttribute and ResourceOpenAttribute and others in Python](https://forum.opentap.io/t/unable-to-use-embedpropertiesattribute-and-resourceopenattribute-and-others-in-python/2130)

<div class="topic-metadata">

**Author:** [@yannick.njanjo](https://forum.opentap.io/u/yannick.njanjo)\
**Replies:** 15\
**Last updated:** [October 11, 2024, 6:33pm UTC](https://forum.opentap.io/t/unable-to-use-embedpropertiesattribute-and-resourceopenattribute-and-others-in-python/2130 "2024-10-11T18:33:53Z")

</div>

Issue with ResourceOpenAttribute and EmbedPropertiesAttribute in Python Hello everyone, I am currently unable to use ResourceOpenAttribute and EmbedPropertiesAttribute in Python, even though I have the latest versions o…

---

## [Best approach and methods for serial communication (Python)](https://forum.opentap.io/t/best-approach-and-methods-for-serial-communication-python/2033)

<div class="topic-metadata">

**Author:** [@jb111](https://forum.opentap.io/u/jb111)\
**Replies:** 2\
**Last updated:** [August 22, 2024, 12:46pm UTC](https://forum.opentap.io/t/best-approach-and-methods-for-serial-communication-python/2033 "2024-08-22T12:46:36Z")

</div>

Hi, I am currently trying to create a simple instrument which opens a Serial connection to a specific COM port and baudrate. I am currently attempting to open the connection using PySerial, but I suspect it is not the b…

---

## [Multiple Instruments as same type- Comport messing up(Pyhon plugin)](https://forum.opentap.io/t/multiple-instruments-as-same-type-comport-messing-up-pyhon-plugin/2087)

<div class="topic-metadata">

**Author:** [@mschmidt](https://forum.opentap.io/u/mschmidt)\
**Replies:** 5\
**Last updated:** [August 13, 2024, 11:52am UTC](https://forum.opentap.io/t/multiple-instruments-as-same-type-comport-messing-up-pyhon-plugin/2087 "2024-08-13T11:52:56Z")

</div>

Hi All We have developed a python plugin for handling our power supply. The plugin shall be able to handle multiple plugins. For know it can adjust the voltage and power on/off. Its using the comports. The way we have…

---

## [Reading multiple test step outputs (python)](https://forum.opentap.io/t/reading-multiple-test-step-outputs-python/2048)

<div class="topic-metadata">

**Author:** [@jb111](https://forum.opentap.io/u/jb111)\
**Replies:** 12\
**Last updated:** [July 12, 2024, 12:10pm UTC](https://forum.opentap.io/t/reading-multiple-test-step-outputs-python/2048 "2024-07-12T12:10:06Z")

</div>

I couldn’t find any related issue posted here, so I’ll try in this separate post. I am having trouble trying to handling several test step outputs for a calculation in a single step (i.e., an average). Currently I’ve ba…

---

## [Python-Plugin development flow: code reloading in editor](https://forum.opentap.io/t/python-plugin-development-flow-code-reloading-in-editor/2009)

<div class="topic-metadata">

**Author:** [@bernhard.lettner](https://forum.opentap.io/u/bernhard.lettner)\
**Replies:** 2\
**Last updated:** [June 17, 2024, 6:41am UTC](https://forum.opentap.io/t/python-plugin-development-flow-code-reloading-in-editor/2009 "2024-06-17T06:41:27Z")

</div>

My development flow of new python plugins/test-steps is currently a bit cumbersome. My issue is, when I alter/change a python-file (a test-step) during my development, the changes are not in effect when I press “run” in …

---

## [Metadata with python plugin](https://forum.opentap.io/t/metadata-with-python-plugin/2007)

<div class="topic-metadata">

**Author:** [@bernhard.lettner](https://forum.opentap.io/u/bernhard.lettner)\
**Replies:** 2\
**Last updated:** [June 17, 2024, 6:39am UTC](https://forum.opentap.io/t/metadata-with-python-plugin/2007 "2024-06-17T06:39:09Z")

</div>

I am programming fully with the python-plugin and I try to add Metadata to my Result.csv - but I do not understand how, and the python-examples do not cover this topic. My goal is something similar as requested here: ht…

---

## [Python package building adds unwanted dependency](https://forum.opentap.io/t/python-package-building-adds-unwanted-dependency/1937)

<div class="topic-metadata">

**Author:** [@tmunsell10](https://forum.opentap.io/u/tmunsell10)\
**Replies:** 2\
**Last updated:** [May 8, 2024, 2:09am UTC](https://forum.opentap.io/t/python-package-building-adds-unwanted-dependency/1937 "2024-05-08T02:09:02Z")

</div>

When I build my python package with tap package create, the .TapPackage is successfully created, however a dependency is added in the created .TapPackage that is not present in the .xml. Are dependencies not fully user …

---

## [Python Plugin Creation Error:](https://forum.opentap.io/t/python-plugin-creation-error/1337)

<div class="topic-metadata">

**Author:** [@markgtr813](https://forum.opentap.io/u/markgtr813)\
**Replies:** 4\
**Last updated:** [January 5, 2024, 5:24pm UTC](https://forum.opentap.io/t/python-plugin-creation-error/1337 "2024-01-05T17:24:22Z")

</div>

I am new to OpenTAP. I am interested in converting a fully Python test sequence into the OpenTap platform. I am going through The OpenTAP Python Integration documentation. Following the instructions on Creating A New Pl…

---

## [Drop down menu with Python](https://forum.opentap.io/t/drop-down-menu-with-python/1300)

<div class="topic-metadata">

**Author:** [@schoepfel](https://forum.opentap.io/u/schoepfel)\
**Replies:** 4\
**Last updated:** [November 13, 2023, 9:27am UTC](https://forum.opentap.io/t/drop-down-menu-with-python/1300 "2023-11-13T09:27:07Z")

</div>

Hello, I am programming a test step that is supposed to set an output of an instrument either “ON” or “OFF”. I have a property called “status” , which is the deisred status that is sent to the instrument. In the tes…

---

## [Abort from step initialization](https://forum.opentap.io/t/abort-from-step-initialization/1295)

<div class="topic-metadata">

**Author:** [@tmunsell10](https://forum.opentap.io/u/tmunsell10)\
**Replies:** 3\
**Last updated:** [November 7, 2023, 10:24am UTC](https://forum.opentap.io/t/abort-from-step-initialization/1295 "2023-11-07T10:24:18Z")

</div>

Is there a way to safely abort from a step’s initialization function (specifically in Python), and not add the step to the test plan? I have tried calling : OpenTap.TapThread.Current.Abort() OpenTap.TestPlanRun.MainThr…

---

## [Use same test step for different instruments](https://forum.opentap.io/t/use-same-test-step-for-different-instruments/1283)

<div class="topic-metadata">

**Author:** [@schoepfel](https://forum.opentap.io/u/schoepfel)\
**Replies:** 1\
**Last updated:** [October 24, 2023, 12:35pm UTC](https://forum.opentap.io/t/use-same-test-step-for-different-instruments/1283 "2023-10-24T12:35:14Z")

</div>

Hello, I am working with different SCPI devices and have created a class for each SCPI device. Some methods are the same for each device., e.g. getting the ID of the insturment with "\*IDN? ". I want to create a test st…

---

## [Get step properties in Python](https://forum.opentap.io/t/get-step-properties-in-python/649)

<div class="topic-metadata">

**Author:** [@tatiana.boye](https://forum.opentap.io/u/tatiana.boye)\
**Replies:** 8\
**Last updated:** [October 23, 2023, 4:06pm UTC](https://forum.opentap.io/t/get-step-properties-in-python/649 "2023-10-23T16:06:14Z")

</div>

I’m implementing a plugin in Python. I have a base test step class (not available to UI) where I defined some properties. I created a few test steps that inherit from the base test step thus get all the declared properti…

---

## [Accessing property attributes in Python SDK](https://forum.opentap.io/t/accessing-property-attributes-in-python-sdk/1190)

<div class="topic-metadata">

**Author:** [@tatata](https://forum.opentap.io/u/tatata)\
**Replies:** 0\
**Last updated:** [August 3, 2023, 9:20am UTC](https://forum.opentap.io/t/accessing-property-attributes-in-python-sdk/1190 "2023-08-03T09:20:53Z")

</div>

Enviornment Python SDK Development OpenTAP version: 9.21.1 OpenTAP Python SDK version: 3.0.2 Question Is it possible to access the attributes of properties that are added using add\_attribute() method? Below you can se…

---

## [How to access Result Listener object properties?](https://forum.opentap.io/t/how-to-access-result-listener-object-properties/1184)

<div class="topic-metadata">

**Author:** [@geomags123](https://forum.opentap.io/u/geomags123)\
**Replies:** 4\
**Last updated:** [August 2, 2023, 10:45am UTC](https://forum.opentap.io/t/how-to-access-result-listener-object-properties/1184 "2023-08-02T10:45:41Z")

</div>

After switching to Python Plugin 3, it’s no longer possible to access Result Listener’s internal properties. It wasn’t the case in the previous version of the Python Plugin: for listener in OpenTap.ResultSettings.Curr…

[Next page](https://forum.opentap.io/tag/python/2.md?match_all_tags=true&page=1&tags%5B%5D=python)
