Cannot get target from remote resource in python shell #1566
Replies: 3 comments 3 replies
-
Which version of labgrid are you using? |
Beta Was this translation helpful? Give feedback.
-
Hello, I am using custom version available at https://github.com/SiemaApplications-attic/labgrid/tree/dda69a2515d18396816a97f63ebcc63bcae8afe4 $ labgrid-client version
23.1a3.dev195 pip freeze output:
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately it does not work either with the vanilla version of labgrid ( I am wondering if the version of the coordinator and/or the |
Beta Was this translation helpful? Give feedback.
-
Hello,
After being away from labgrid I came back recently to integrate some labgrid features into our test environment.
I used to debug with a python shell open and test various commands with the following setup:
(from a python shell)
Nothing fancy, it comes from the online documentation https://labgrid.readthedocs.io/en/stable/usage.html#environments
the environment file looks like this
(
StLinkV3Driver
is a custom labgrid driver I implemented when I did not how to useopenocd
, it works fine for my use case and is already integrated in our pytest environment.)The issue I am having is when I hit
t = e.get_target('main')
I have the following error:I have defined and exported an
LG_CROSSBAR
environement var.I have defined and exported
no_proxy/NO_PROXY
var to set the ip of the coordinator and the exporter.When I provide a 'local' environment file (one where resources are in the file instead of a
RemotePlace
resource) the command succeeds. But as you can imagine, I need to test with the coordinator/exporter in the loop.Looking at my ipython history, it looks like I had managed to get the
get_target
to return something that I could use.It is probably something really silly that I forgot, but I cannot see what 🙁
Any help would be greatly appreciated 🙂
Beta Was this translation helpful? Give feedback.
All reactions