<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: activegate plugin python dependency in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112976#M599</link>
    <description>&lt;P&gt;Hi Piotr,&lt;/P&gt;&lt;P&gt;I previously followed the "manual" version of the deploy instructions there, before posting this question.  now i'm trying to follow the sdk version and cannot find where or how to invoke the oneagent_build_plugin call, as it doesn't seem to be on my path as a user on the linux box where my activegate and plugin module were installed, nor does it seem to be the name of any of the files in my install path.  do you have direct knowledge of deploying plugins to linux activegates, and where i might be going wrong?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rick B&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 04 Feb 2019 13:31:00 GMT</pubDate>
    <dc:creator>rick_boyd</dc:creator>
    <dc:date>2019-02-04T13:31:00Z</dc:date>
    <item>
      <title>ActiveGate plugin Python dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112971#M594</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I've listed my plugin's dependencies in the `install_requires' element of 'source' in my ActiveGate remote plugin plugin.json, but it doesn't seem like the plugin module is installing it. Is there potentially a step I missed, or missing functionality due to this being beta? Where can i check logs for this?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Rick B&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 15:51:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112971#M594</guid>
      <dc:creator>rick_boyd</dc:creator>
      <dc:date>2023-05-18T15:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: activegate plugin python dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112972#M595</link>
      <description>&lt;PRE&gt;2019-02-01 18:46:00.992 UTC [1e7738ef] info    [native] 140664985044736(MainThread) - [report_status] new plugin status for engine ('custom.remote.python.kafka.Stats', 0) PluginFullStatus(pluginName=custom.remote.python.kafka.Stats, pluginVersion=0.003, state=ERROR_UNKNOWN, description=No module named 'avro', monitoredEntityId=0x0, stacktrace=Traceback (most recent call last):&lt;BR /&gt;   File "/var/opt/dynatrace/gateway/remotepluginmodule/agent/plugin/engine/ruxit/plugin_state_machine.py", line 270, in _execute_next_task&lt;BR /&gt;     self._engine.send(None)&lt;BR /&gt;   File "/var/opt/dynatrace/gateway/remotepluginmodule/agent/plugin/engine/ruxit/plugin_state_machine.py", line 525, in engine_generator&lt;BR /&gt;     plugin_module = importlib.import_module(plugin_engine_instance.metadata["source"]["package"])&lt;BR /&gt;   File "/var/opt/dynatrace/gateway/remotepluginmodule/agent/plugin/python3.6/importlib/__init__.py", line 126, in import_module&lt;BR /&gt;     return _bootstrap._gcd_import(name[level:], package, level)&lt;BR /&gt;   File "", line 994, in _gcd_import&lt;BR /&gt;   File "", line 971, in _find_and_load&lt;BR /&gt;   File "", line 955, in _find_and_load_unlocked&lt;BR /&gt;   File "", line 665, in _load_unlocked&lt;BR /&gt;   File "", line 678, in exec_module&lt;BR /&gt;   File "", line 219, in _call_with_frames_removed&lt;BR /&gt;   File "/var/opt/dynatrace/gateway/remotepluginmodule/plugin_deployment/kafka-pipeline-plugin/kafka-pipeline-plugin.py", line 5, in &lt;BR /&gt;     from avro.io import BinaryDecoder, DatumReader&lt;BR /&gt; ModuleNotFoundError: No module named 'avro'&lt;/PRE&gt;&lt;P&gt;with plugin.json starting:&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;   "name": "custom.remote.python.kafka.Stats",&lt;BR /&gt;   "version": "0.003",&lt;BR /&gt;   "type": "python",&lt;BR /&gt;   "entity": "CUSTOM_DEVICE",&lt;BR /&gt;   "processTypeNames": ["PYTHON"],&lt;BR /&gt;   "technologies": ["Kafka Custom Pipeline"],&lt;BR /&gt;   "favicon": "https://www.ibm.com/watson/health/favicon.ico",&lt;BR /&gt;   "source": {&lt;BR /&gt;      "package": "kafka-pipeline-plugin",&lt;BR /&gt;      "className": "KafkaPipelinePlugin",&lt;BR /&gt;      "install_requires": ["avro","timeit","kafka"],&lt;BR /&gt;      "activation": "Remote"&lt;BR /&gt;   },&lt;BR /&gt;...&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Feb 2019 19:20:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112972#M595</guid>
      <dc:creator>rick_boyd</dc:creator>
      <dc:date>2019-02-01T19:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: activegate plugin python dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112973#M596</link>
      <description>&lt;P&gt;Can you also add the output of oneagent_build_plugin?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 02 Feb 2019 12:53:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112973#M596</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2019-02-02T12:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: activegate plugin python dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112974#M597</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;have you built your plugin using&lt;/P&gt;&lt;PRE&gt;oneagent_build_plugin&lt;/PRE&gt;&lt;P&gt;command from Plugin SDK? That should build your plugin with required packages inside.&lt;/P&gt;&lt;P&gt;See Deploy via Plugin SDK: &lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/activegate-plugins/plugin-development/activegate-plugins-how-tos/deploy-an-activegate-plugin/"&gt;https://www.dynatrace.com/support/help/extend-dyna...&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;BR /&gt;&lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/activegate-plugins/plugin-development/activegate-plugins-how-tos/deploy-an-activegate-plugin/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;&lt;/H3&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2019 08:26:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112974#M597</guid>
      <dc:creator>Piotr_Meller</dc:creator>
      <dc:date>2019-02-04T08:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: activegate plugin python dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112975#M598</link>
      <description>&lt;P&gt;thanks Piotr,&lt;BR /&gt;I thought that was only for oneagent plugins, some of the documentation is a little confusing.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2019 13:00:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112975#M598</guid>
      <dc:creator>rick_boyd</dc:creator>
      <dc:date>2019-02-04T13:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: activegate plugin python dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112976#M599</link>
      <description>&lt;P&gt;Hi Piotr,&lt;/P&gt;&lt;P&gt;I previously followed the "manual" version of the deploy instructions there, before posting this question.  now i'm trying to follow the sdk version and cannot find where or how to invoke the oneagent_build_plugin call, as it doesn't seem to be on my path as a user on the linux box where my activegate and plugin module were installed, nor does it seem to be the name of any of the files in my install path.  do you have direct knowledge of deploying plugins to linux activegates, and where i might be going wrong?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rick B&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2019 13:31:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112976#M599</guid>
      <dc:creator>rick_boyd</dc:creator>
      <dc:date>2019-02-04T13:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: activegate plugin python dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112977#M600</link>
      <description>&lt;P&gt;hi, please see the comments on Piotr's answer&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2019 13:32:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112977#M600</guid>
      <dc:creator>rick_boyd</dc:creator>
      <dc:date>2019-02-04T13:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: activegate plugin python dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112978#M601</link>
      <description>&lt;P&gt;Here is the instruction how to install Plugin SDK:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/activegate-plugins/plugin-development/activegate-plugin-sdk-overview/"&gt;https://www.dynatrace.com/support/help/extend-dyna...&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2019 13:46:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112978#M601</guid>
      <dc:creator>Piotr_Meller</dc:creator>
      <dc:date>2019-02-04T13:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: activegate plugin python dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112979#M602</link>
      <description>&lt;P&gt;Hello Rick,&lt;/P&gt;&lt;P&gt;When you install the Plugin SDK, the install script will put these scripts inside the python /bin directory, side by side with pip, easy_install, etc.&lt;/P&gt;&lt;P&gt;Of course, if you do not have that directory as part of your path you will not "see" the commands. I recommend you use Python Virtual Environments (https://docs.python.org/3/library/venv.html) when developing plugins, because this will sort it our for you with no need to change your PATH environment variable or call the scripts manually from the location&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:16:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112979#M602</guid>
      <dc:creator>david_lopes</dc:creator>
      <dc:date>2019-02-04T17:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: activegate plugin python dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112980#M603</link>
      <description>&lt;P&gt;thanks, i used virtualenv locally for dev and didn't think to see that on the command line there.  i'm not able to get venv set up on the activegate server so i'll need to try to figure out where the packaged python environment is and work from there on the server.  kind of annoying and not really spelled out in the directions where certain things are done, not to mention the manual method written out in the docs doesn't work when you have required extra modules&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2019 21:49:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112980#M603</guid>
      <dc:creator>rick_boyd</dc:creator>
      <dc:date>2019-02-04T21:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: activegate plugin python dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112981#M604</link>
      <description>&lt;P&gt;Rick,&lt;/P&gt;&lt;P&gt;you don't need to install venv on ActiveGate server, it's enough to have it on your dev machine. Please install Plugin SDK inside you venv and use oneagent_build_plugin script to build the plugin. It will create a plugin package, which has to be uploaded to the server - the same script can do that if you provide server address and token. Finally you have to take this built plugin and story it in plugin_deployment dir on ActiveGate machine.&lt;/P&gt;&lt;P&gt;https://www.dynatrace.com/support/help/extend-dynatrace/activegate-plugins/plugin-development/activegate-plugin-sdk-overview/&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Feb 2019 10:03:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112981#M604</guid>
      <dc:creator>Piotr_Meller</dc:creator>
      <dc:date>2019-02-05T10:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: activegate plugin python dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112982#M605</link>
      <description>&lt;P&gt;thank you.  running into other issues now but this has resolved my dependency problem so i will open a new topic&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Feb 2019 15:38:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-plugin-Python-dependency/m-p/112982#M605</guid>
      <dc:creator>rick_boyd</dc:creator>
      <dc:date>2019-02-05T15:38:22Z</dc:date>
    </item>
  </channel>
</rss>

