<?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 remote plugin python dependency - module not found in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-remote-plugin-Python-dependency-module-not-found/m-p/119232#M850</link>
    <description>&lt;P&gt;Reinhard, hello! Thanks for feedback! We actually mention it in the hands-on tutorial, but I agree this could be surfaced better. Will work on it. &lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/shortlink/activegate-extensions-tutorial#prepare-your-environment" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/activegate-extensions-tutorial#prepare-your-environment&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jarek&lt;/P&gt;&lt;P&gt;Dynatrace Doc team &lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:12:47 GMT</pubDate>
    <dc:creator>jaroslaw_orlows</dc:creator>
    <dc:date>2020-11-25T16:12:47Z</dc:date>
    <item>
      <title>ActiveGate remote plugin Python dependency - module not found</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-remote-plugin-Python-dependency-module-not-found/m-p/119228#M846</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I found various posts on python module dependencies, most of them related to OneAgent plugins and direct dependencies. I'm trying to build a AG remote plugin where the python module that the plugin depends on (ExasolDatabaseConnector) has another dependency to the &lt;STRONG&gt;pyodbc&lt;/STRONG&gt; module.&lt;/P&gt;
&lt;P&gt;In the remoteplugin logs (and the UI) I'm getting an error that the module is not found:&lt;/P&gt;
&lt;PRE&gt;2020-11-23 22:28:00.893 UTC [e4c298f2] info &amp;nbsp; &amp;nbsp;[native] 140681196791552(ThreadPoolExecutor-0_8) - [event_set_configuration] event_set_configuration, plugin: &amp;lt;RemotePluginEngine, meta_name:custom.remote.python.exasol id:0x7ff308cf7898&amp;gt; config: {'host': 'http://0.0.0.0:8769'}&lt;BR /&gt;2020-11-23 22:28:00.896 UTC [e4c298f2] severe&amp;nbsp;&amp;nbsp;[native] 140681196791552(ThreadPoolExecutor-0_8) - [set_full_status] No module named 'pyodbc'&lt;BR /&gt;&amp;nbsp;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; &amp;nbsp;File "/opt/dynatrace/remotepluginmodule/agent/plugin/engine.zip/ruxit/plugin_state_machine.py", line 340, in _execute_next_task&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;self._query_plugin()&lt;BR /&gt;&amp;nbsp; &amp;nbsp;File "/opt/dynatrace/remotepluginmodule/agent/plugin/engine.zip/ruxit/plugin_state_machine.py", line 667, in _query_plugin&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;self._plugin_run_data = self._create_plugin_run_data()&lt;BR /&gt;&amp;nbsp; &amp;nbsp;File "/opt/dynatrace/remotepluginmodule/agent/plugin/engine.zip/ruxit/plugin_state_machine.py", line 640, in _create_plugin_run_data&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;plugin_module = importlib.import_module(self.metadata["source"]["package"])&lt;BR /&gt;&amp;nbsp; &amp;nbsp;File "/opt/dynatrace/remotepluginmodule/agent/plugin/python3.6/importlib/__init__.py", line 126, in import_module&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return _bootstrap._gcd_import(name[level:], package, level)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 994, in _gcd_import&lt;BR /&gt;&amp;nbsp; &amp;nbsp;File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 971, in _find_and_load&lt;BR /&gt;&amp;nbsp; &amp;nbsp;File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 955, in _find_and_load_unlocked&lt;BR /&gt;&amp;nbsp; &amp;nbsp;File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 665, in _load_unlocked&lt;BR /&gt;&amp;nbsp; &amp;nbsp;File "&amp;lt;frozen importlib._bootstrap_external&amp;gt;", line 678, in exec_module&lt;BR /&gt;&amp;nbsp; &amp;nbsp;File "&amp;lt;frozen importlib._bootstrap&amp;gt;", line 219, in _call_with_frames_removed&lt;BR /&gt;&amp;nbsp; &amp;nbsp;File "/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.exasol/dynatrace_activegate_exasol_plugin.py", line 4, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;from ExasolDatabaseConnector import Database&lt;BR /&gt;&amp;nbsp; &amp;nbsp;File "/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.exasol/ExasolDatabaseConnector/__init__.py", line 3, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;from ExasolDatabaseConnector.ExaOdbcDriver.FindDriver &amp;nbsp;&amp;nbsp;import GetDriverName&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;File "/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.exasol/ExasolDatabaseConnector/ExaOdbcDriver/__init__.py&lt;/STRONG&gt;", line 2, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;import pyodbc&lt;BR /&gt;&amp;nbsp;&lt;STRONG&gt;ModuleNotFoundError: No module named 'pyodbc'&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regardless of if I add only the Exasol Database python module or also the pyodbc module as a requirement in the plugin.json file. The module is not found:&lt;/P&gt;
&lt;PRE&gt;"source": {&lt;BR /&gt;  "package": "dynatrace_activegate_exasol_plugin",&lt;BR /&gt;&amp;nbsp; "className": "ExasolPluginRemote",&lt;BR /&gt;&amp;nbsp; "install_requires":&amp;nbsp;["pyodbc&amp;gt;=4.0.30","ExasolDatabaseConnector&amp;gt;=0.1.7"],&lt;BR /&gt;&amp;nbsp; "activation": "Remote"&lt;BR /&gt;},&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm building the plugin in a python venv directly on the ActiveGate and the build/deployment succeeds. It seems that the pyodbc module creates some native libraries. Could that be a problem?&lt;/P&gt;
&lt;P&gt;Here is the log (&lt;A href="https://answers.dynatrace.com/storage/attachments/27376-build-plugin.txt" target="_blank" rel="noopener noreferrer"&gt;build_plugin.txt&lt;/A&gt; ) of the plugin build command.&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Reinhard&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 09:25:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-remote-plugin-Python-dependency-module-not-found/m-p/119228#M846</guid>
      <dc:creator>r_weber</dc:creator>
      <dc:date>2025-06-11T09:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Activegate remote plugin python dependency - module not found</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-remote-plugin-Python-dependency-module-not-found/m-p/119229#M847</link>
      <description>&lt;P&gt;Hi Reinhard!&lt;/P&gt;&lt;P&gt;Try building plugin on Python3.6 venv instead on Python3.7 - native dependencies are not compatible with other minor versions, and we use Python3.6 to run extensions&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Maciek&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 06:33:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-remote-plugin-Python-dependency-module-not-found/m-p/119229#M847</guid>
      <dc:creator>maciej_grynda</dc:creator>
      <dc:date>2020-11-24T06:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Activegate remote plugin python dependency - module not found</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-remote-plugin-Python-dependency-module-not-found/m-p/119230#M848</link>
      <description>&lt;P&gt;Make sure that you use the 64 bit version of Python 3.6.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 08:34:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-remote-plugin-Python-dependency-module-not-found/m-p/119230#M848</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2020-11-24T08:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Activegate remote plugin python dependency - module not found</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-remote-plugin-Python-dependency-module-not-found/m-p/119231#M849</link>
      <description>&lt;P&gt;Hi Maciej,&lt;/P&gt;&lt;P&gt;thanks! I didn't think about that! Switching to python3.6 was the solution. I've switched my build docker container to 3.6 and that worked fine. Maybe that dependency is worth a note in the AG plugin documentation, since many distros are already switching to more recent versions of python. Especially since the documentation recommends to build directly on Activegates this might not be obvious to people.&lt;/P&gt;&lt;P&gt;Thanks again! My Exasol Plugin is on the way!&lt;/P&gt;&lt;P&gt;Reinhard&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 10:27:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-remote-plugin-Python-dependency-module-not-found/m-p/119231#M849</guid>
      <dc:creator>r_weber</dc:creator>
      <dc:date>2020-11-24T10:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Activegate remote plugin python dependency - module not found</title>
      <link>https://community.dynatrace.com/t5/Extensions/ActiveGate-remote-plugin-Python-dependency-module-not-found/m-p/119232#M850</link>
      <description>&lt;P&gt;Reinhard, hello! Thanks for feedback! We actually mention it in the hands-on tutorial, but I agree this could be surfaced better. Will work on it. &lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/shortlink/activegate-extensions-tutorial#prepare-your-environment" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/activegate-extensions-tutorial#prepare-your-environment&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jarek&lt;/P&gt;&lt;P&gt;Dynatrace Doc team &lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:12:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/ActiveGate-remote-plugin-Python-dependency-module-not-found/m-p/119232#M850</guid>
      <dc:creator>jaroslaw_orlows</dc:creator>
      <dc:date>2020-11-25T16:12:47Z</dc:date>
    </item>
  </channel>
</rss>

