<?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: Python Module Dependency in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95634#M328</link>
    <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I have checked and I have python 3.7, not sure if that is going to be an issue but it could be as I was initially running pip 18.0 and had to downgrade to pip 9.3 in order to validate the json schema.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also I can see that when I execute oneagent_build_plugin the package is zipped and placed into the development directory along with an archive, see below.&lt;/P&gt;&lt;P&gt;======================================== Plugin deployed successfully into C:\Program Files (x86)\dynatrace\oneagent\plugin_development\custom.python.demo_plugin&lt;/P&gt;&lt;P&gt;Plugin archive available at C:\Program Files(x86)\dynatrace\oneagent\plugin_development\custom.python.demo_plugin.zip ======================================== Restarting service Dynatrace OneAgent The Dynatrace OneAgent service is stopping.... The Dynatrace OneAgent service was stopped successfully. The Dynatrace OneAgent service was started successfully. oneagent service restarted successfully&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I will uninstall python 3.7 and go back to 3.6 to give that another go, if that does fail then I will post the log.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 02 Oct 2018 12:47:42 GMT</pubDate>
    <dc:creator>jason_jenkinson</dc:creator>
    <dc:date>2018-10-02T12:47:42Z</dc:date>
    <item>
      <title>Python module dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95632#M326</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I am creating a custom python plugin to query MSMQ stats on a windows server, the initial script is working locally but when I package and load the zip to the dynatrace server it responds with Package Not Found.&lt;/P&gt;
&lt;P&gt;Is there a dependency so the modules are present on both Dyantrace server and host server.&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 05:48:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95632#M326</guid>
      <dc:creator>jason_jenkinson</dc:creator>
      <dc:date>2023-05-19T05:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python Module Dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95633#M327</link>
      <description>&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;The Dynatrace server only cares about the plugin.json at the moment. When you did the oneagent_build_plugin command, make sure that it created a folder of the plugin in the plugin_development folder, and do not press the button to upgrade the plugin to production from within the Dynatrace GUI.&lt;/P&gt;&lt;P&gt;Make sure that you build the plugin with the same version as the Dynatrace Plugin Agent (Python 3.6 64-bit unless you have an old OneAgent, then it is Python 3.5 64-bit). Some dependencies compile native libraries during build time, and then you need them to be importable.&lt;/P&gt;&lt;P&gt;If that's done and it still doesn't work. Please attach the log file of the plugin (found at programdata/dynatrace/oneagent/log/plugin/ruxitagent_pluginagent_[PID].log).&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Oct 2018 11:42:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95633#M327</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2018-10-02T11:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python Module Dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95634#M328</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I have checked and I have python 3.7, not sure if that is going to be an issue but it could be as I was initially running pip 18.0 and had to downgrade to pip 9.3 in order to validate the json schema.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also I can see that when I execute oneagent_build_plugin the package is zipped and placed into the development directory along with an archive, see below.&lt;/P&gt;&lt;P&gt;======================================== Plugin deployed successfully into C:\Program Files (x86)\dynatrace\oneagent\plugin_development\custom.python.demo_plugin&lt;/P&gt;&lt;P&gt;Plugin archive available at C:\Program Files(x86)\dynatrace\oneagent\plugin_development\custom.python.demo_plugin.zip ======================================== Restarting service Dynatrace OneAgent The Dynatrace OneAgent service is stopping.... The Dynatrace OneAgent service was stopped successfully. The Dynatrace OneAgent service was started successfully. oneagent service restarted successfully&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I will uninstall python 3.7 and go back to 3.6 to give that another go, if that does fail then I will post the log.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Oct 2018 12:47:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95634#M328</guid>
      <dc:creator>jason_jenkinson</dc:creator>
      <dc:date>2018-10-02T12:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python Module Dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95635#M329</link>
      <description>&lt;P&gt;Hi Michael&lt;/P&gt;
&lt;P&gt;So rebuilt the code and searched through the logs and I can see the following in the attached, this is not the entire log but a snippet.&lt;/P&gt;
&lt;P&gt;creating a normal .py file on the host in question I can import the module and the query returns results successful.&lt;/P&gt;
&lt;P&gt;If needed I can attach the full log file.&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;
&lt;P&gt;Jason&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 13:19:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95635#M329</guid>
      <dc:creator>jason_jenkinson</dc:creator>
      <dc:date>2025-06-05T13:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python Module Dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95636#M330</link>
      <description>&lt;P&gt;Jason, am looking at similar feature to query/read MSMQ on windows. Maybe you can share scripts so that I don't have to write something from scratch. Many thanks&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2018 21:21:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95636#M330</guid>
      <dc:creator>boubacar_diallo</dc:creator>
      <dc:date>2018-11-07T21:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python Module Dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95637#M331</link>
      <description>&lt;P&gt;Do you have the wmi.py file in the root of your custom.python.demo_plugin directory? Did you add the install_requires into your plugin.json file? Such as this:&lt;/P&gt;&lt;P&gt;"install_requires": ["wmi==1.4.9", "pypiwin32==223", "pythonnet==2.3.0"],&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Nov 2018 08:48:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95637#M331</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2018-11-08T08:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Python Module Dependency</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95638#M332</link>
      <description>&lt;P&gt;I've tested it out locally and got it running by also copying the following files from sub directories of the built plugin into the root of it:&lt;/P&gt;&lt;P&gt;_win32sysloader.pyd&lt;/P&gt;&lt;P&gt;pythoncom36.dll&lt;/P&gt;&lt;P&gt;pywintypes.py&lt;/P&gt;&lt;P&gt;pywintypes36.dll&lt;/P&gt;&lt;P&gt;winerror.py&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Nov 2018 09:52:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-module-dependency/m-p/95638#M332</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2018-11-12T09:52:25Z</dc:date>
    </item>
  </channel>
</rss>

