<?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 Extension SDK - Why pyodbc doesn't get installed on ActiveGates Python runtime environment. in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292214#M6971</link>
    <description>&lt;P&gt;Unfortunately, I cannot get the Python libraries from an external repo, than the organization's repo.&lt;BR /&gt;For now, The only ODBC package available for me is &lt;STRONG&gt;pypyodbc&lt;/STRONG&gt;, for both Windows and Linux.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Dec 2025 06:03:44 GMT</pubDate>
    <dc:creator>chris_cho</dc:creator>
    <dc:date>2025-12-29T06:03:44Z</dc:date>
    <item>
      <title>Python Extension SDK - Why pyodbc doesn't get installed on ActiveGates Python runtime environment.</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292173#M6964</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am using Dynatrace Python Extension SDK to create a custom extension ingesting data from a SQL server, by using pyodbc Python library. For this I have the configuration:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;development workstation - Python 3.10&lt;/LI&gt;&lt;LI&gt;use &lt;STRONG&gt;pyodbc 5.2.0&lt;/STRONG&gt; library - this requires Python &amp;gt;= 3.9&lt;/LI&gt;&lt;LI&gt;tenant ActiveGates Python 3.6&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I added in the &lt;EM&gt;./setup.py&lt;/EM&gt; file the &lt;EM&gt;pyodbc&lt;/EM&gt;:&lt;BR /&gt;&lt;EM&gt;install_requires=["dt-extensions-sdk", "requests", "&lt;STRONG&gt;pyodbc==5.2.0&lt;/STRONG&gt;"],&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Built successfully the extension distribution package using:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;dt-sdk build&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;and uploaded it to the tenant.&lt;BR /&gt;I set a monitoring configuration, and running it I am getting the exception:&lt;BR /&gt;&lt;SPAN&gt;"&lt;STRONG&gt;&lt;EM&gt;Failed to assign monitoring configuration to ActiveGate. Reason:&lt;/EM&gt;&lt;/STRONG&gt;" -- no reason mentioned.&lt;BR /&gt;&lt;BR /&gt;I checked the log file&amp;nbsp;&lt;STRONG&gt;python3.log&lt;/STRONG&gt;&amp;nbsp;in ActiveGates, related to this extension and it looks like&lt;BR /&gt;&lt;EM&gt;[err] import pyodbc&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[err]ModuleNotFoundError: &lt;STRONG&gt;No module named 'pyodbc'&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[err]Traceback (most recent call last):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[err] File "/&lt;STRONG&gt;opt/dynatrace/remotepluginmodule/agent/res/dsruntime/python3.10&lt;/STRONG&gt;/lib/python3.10/runpy.py", line 196, in _run_module_as_main&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[err] return _run_code(code, main_globals, None,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[err] File "/opt/dynatrace/remotepluginmodule/agent/res/dsruntime/python3.10/lib/python3.10/runpy.py", line 86, in _run_code&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[err] exec(code, run_globals)&lt;BR /&gt;&lt;/EM&gt;. . .&amp;nbsp; &amp;nbsp;. . .&amp;nbsp; &amp;nbsp;. . .&lt;BR /&gt;&lt;/SPAN&gt;I checked whether the pyodbc was installed as supposed to be in the Python runtime environment&lt;BR /&gt;&lt;EM&gt;$ cd /opt/dynatrace/remotepluginmodule/agent/res/dsruntime/python3.10/bin&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;$ &lt;STRONG&gt;pip show pyodbc&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;but nothing came up.&lt;BR /&gt;Not sure why the &lt;EM&gt;&lt;STRONG&gt;pyodbc&lt;/STRONG&gt;&lt;/EM&gt; library did not get installed in the&amp;nbsp;the Python runtime environment.&lt;BR /&gt;&lt;BR /&gt;Please let me know if you have any suggestions.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2025 04:42:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292173#M6964</guid>
      <dc:creator>chris_cho</dc:creator>
      <dc:date>2025-12-26T04:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Python Extension SDK - Why pyodbc doesn't get installed on ActiveGates Python runtime environment.</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292178#M6965</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/84142"&gt;@chris_cho&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It seems OK. Please check in extension.zip if the pyodbc wheel is included?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2025 09:50:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292178#M6965</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2025-12-26T09:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python Extension SDK - Why pyodbc doesn't get installed on ActiveGates Python runtime environment.</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292199#M6966</link>
      <description>&lt;P&gt;It looks like the &lt;STRONG&gt;pyodbc&lt;/STRONG&gt; doesn't work as expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chris_cho_0-1766873522367.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31351i61DA452A8053064D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chris_cho_0-1766873522367.png" alt="chris_cho_0-1766873522367.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Instead, I tried&amp;nbsp;&lt;STRONG&gt;pypyodbc&lt;/STRONG&gt;&amp;nbsp;that was distributed to ActiveGates, but it raised other exception about not finding the files for &lt;EM&gt;{ODBC Driver 17 for SQL Server}&lt;/EM&gt; and &lt;EM&gt;{&lt;SPAN&gt;SQL Server Native Client 11.0&lt;/SPAN&gt;}&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Not sure if I am getting anywhere using the &lt;STRONG&gt;Dynatrace Python Extensions SDK&lt;/STRONG&gt; interacting with any SQL data (SQL Server, Oracle, MySQL, PostgreSQL, others).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Dec 2025 20:19:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292199#M6966</guid>
      <dc:creator>chris_cho</dc:creator>
      <dc:date>2025-12-28T20:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python Extension SDK - Why pyodbc doesn't get installed on ActiveGates Python runtime environment.</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292208#M6967</link>
      <description>&lt;P&gt;You can get anywhere you want, we do it for plenty of extensions.&lt;BR /&gt;&lt;BR /&gt;As you can see on the screenshot that you highlighted you have pyodbc for windows, that will never work on a linux AG.&lt;BR /&gt;&lt;BR /&gt;You need to either build on the same architecture or use the --extra-platform flag when building&lt;BR /&gt;&lt;BR /&gt;And of course you don't really need to mess with this because we have a SQL datasource, that can connect to any database using JDBC.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Dec 2025 23:58:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292208#M6967</guid>
      <dc:creator>david_lopes</dc:creator>
      <dc:date>2025-12-28T23:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python Extension SDK - Why pyodbc doesn't get installed on ActiveGates Python runtime environment.</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292209#M6968</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4044"&gt;@david_lopes&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;From&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/84142"&gt;@chris_cho&lt;/a&gt;&amp;nbsp;details, it's clear he has a Linux AG. But, if it were a Windows AG, it would work, right?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Dec 2025 00:38:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292209#M6968</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2025-12-29T00:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Python Extension SDK - Why pyodbc doesn't get installed on ActiveGates Python runtime environment.</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292210#M6969</link>
      <description>&lt;P&gt;Yes sorry, good catch!&lt;BR /&gt;&lt;BR /&gt;I forgot the word linux there, fixing it.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Dec 2025 23:58:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292210#M6969</guid>
      <dc:creator>david_lopes</dc:creator>
      <dc:date>2025-12-28T23:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Python Extension SDK - Why pyodbc doesn't get installed on ActiveGates Python runtime environment.</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292213#M6970</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4044"&gt;@david_lopes&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/17213"&gt;@AntonioSousa&lt;/a&gt;,&lt;BR /&gt;Thank you both for your reply.&lt;/P&gt;&lt;P&gt;Indeed, I thought it will be way easier using the Python ODBC libraries, such as &lt;EM&gt;&lt;STRONG&gt;pyodbc&lt;/STRONG&gt;&lt;/EM&gt; and &lt;EM&gt;&lt;STRONG&gt;pypyodbc&lt;/STRONG&gt;&lt;/EM&gt;, but for distributing it for Linux ActiveGates is not that simple and straightforward.&lt;BR /&gt;Additionally, there is a need installing ODBC drivers "&lt;STRONG&gt;unixODBC&lt;/STRONG&gt;", "&lt;STRONG&gt;unixODBC-devel&lt;/STRONG&gt;".&lt;BR /&gt;Besides,&amp;nbsp;connecting to MS SQL Server, &lt;STRONG&gt;pypyodbc&lt;/STRONG&gt;&amp;nbsp;needs to install &lt;EM&gt;&lt;STRONG&gt;FreeTDS&lt;/STRONG&gt;&lt;/EM&gt; (&lt;SPAN&gt;Tabular Data Stream&lt;/SPAN&gt;), included in&amp;nbsp;&lt;STRONG&gt;/etc/odbcinst.ini&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chris_cho_1-1766985632096.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31359i2695188241C7365D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chris_cho_1-1766985632096.png" alt="chris_cho_1-1766985632096.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;./setup.py&lt;/STRONG&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chris_cho_0-1766985376890.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31358i77EC531D4BF10131/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chris_cho_0-1766985376890.png" alt="chris_cho_0-1766985376890.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I used it, but now I am getting another exception message:&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;('01000', "[01000] [unixODBC][Driver Manager]Can't open lib '/usr/lib64/&lt;STRONG&gt;libtdsodbc.so&lt;/STRONG&gt;' : file not found")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Perhaps I need to move FreeTDS to &lt;EM&gt;&lt;STRONG&gt;extras_require&lt;/STRONG&gt;&lt;/EM&gt; in the &lt;STRONG&gt;./setup.py&lt;/STRONG&gt; file.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Dec 2025 06:22:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292213#M6970</guid>
      <dc:creator>chris_cho</dc:creator>
      <dc:date>2025-12-29T06:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Python Extension SDK - Why pyodbc doesn't get installed on ActiveGates Python runtime environment.</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292214#M6971</link>
      <description>&lt;P&gt;Unfortunately, I cannot get the Python libraries from an external repo, than the organization's repo.&lt;BR /&gt;For now, The only ODBC package available for me is &lt;STRONG&gt;pypyodbc&lt;/STRONG&gt;, for both Windows and Linux.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Dec 2025 06:03:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292214#M6971</guid>
      <dc:creator>chris_cho</dc:creator>
      <dc:date>2025-12-29T06:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python Extension SDK - Why pyodbc doesn't get installed on ActiveGates Python runtime environment.</title>
      <link>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292356#M6975</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4044"&gt;@david_lopes&lt;/a&gt;&amp;nbsp;and &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/17213"&gt;@AntonioSousa&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Definitely, I would prefer an out-of-the-box solution, than reinventing the wheel.&lt;BR /&gt;So far, by using SQL extension, I couldn't find the way to extract a potential large data based on &lt;STRONG&gt;batches&lt;/STRONG&gt;, neither on &lt;STRONG&gt;checkpoints&lt;/STRONG&gt;. Are there other ways to use the SQL data sources, through JDBC, than the SQL extensions?&lt;BR /&gt;&lt;BR /&gt;On the other hand, exploring Python Extensions SDK, I am a step ahead, but still not there yet.&lt;BR /&gt;For this stage, I created another question&lt;BR /&gt;&lt;A href="https://community.dynatrace.com/t5/Open-Q-A/Python-Extension-SDK-fails-connecting-to-MS-SQL-Server-by-using/td-p/292331" target="_blank" rel="noopener"&gt;Python Extension SDK fails connecting to MS SQL Server by using Windows Authentication - Linux AGs&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2025 15:53:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Python-Extension-SDK-Why-pyodbc-doesn-t-get-installed-on/m-p/292356#M6975</guid>
      <dc:creator>chris_cho</dc:creator>
      <dc:date>2025-12-31T15:53:54Z</dc:date>
    </item>
  </channel>
</rss>

