<?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: Extension V2 Python dependencies ModuleNotFoundError: No module named in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Extension-V2-Python-dependencies-ModuleNotFoundError/m-p/241386#M4257</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/11520"&gt;@Mike_L&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You help me to solve my issue !&lt;/P&gt;&lt;P&gt;First of all, as you mentioned, I have edited the "setup.py" file to add my dependency as a new "install_requires".&lt;BR /&gt;But it was also mandatory in my case to update the version number :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AurelienGravier_0-1711657390206.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18564iFF47050214F20420/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AurelienGravier_0-1711657390206.png" alt="AurelienGravier_0-1711657390206.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;git hub link :&lt;/P&gt;&lt;P&gt;&lt;A href="https://dynatrace-extensions.github.io/dt-extensions-python-sdk/guides/extension_structure.html?_gl=1*emzohc*_ga*MTE1OTQyMzYzOS4xNzA2NDg3OTgx*_ga_1MEMV02JXV*MTcxMTY1NDg4Ni4xNjIuMS4xNzExNjU3NzMyLjAuMC4w#setup-py" target="_blank" rel="noopener"&gt;https://dynatrace-extensions.github.io/dt-extensions-python-sdk/guides/extension_structure.html?_gl=1*emzohc*_ga*MTE1OTQyMzYzOS4xNzA2NDg3OTgx*_ga_1MEMV02JXV*MTcxMTY1NDg4Ni4xNjIuMS4xNzExNjU3NzMyLjAuMC4w#setup-py&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;Bumping version :&lt;/P&gt;&lt;P&gt;When bumping the version of the extension in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;extension.yaml&lt;/SPAN&gt;, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;setup.py&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file must be updated as well. The two versions must match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;BR /&gt;Best regards, Aurélien.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2024 20:29:54 GMT</pubDate>
    <dc:creator>AurelienGravier</dc:creator>
    <dc:date>2024-03-28T20:29:54Z</dc:date>
    <item>
      <title>Extension V2 Python dependencies ModuleNotFoundError</title>
      <link>https://community.dynatrace.com/t5/Extensions/Extension-V2-Python-dependencies-ModuleNotFoundError/m-p/241319#M4254</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm developing an V2 python extension which works like a charm locally.&lt;BR /&gt;But when I build and upload it the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AurelienGravier_0-1711620743563.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18555iE0B4F760673FB940/image-size/large?v=v2&amp;amp;px=999" role="button" title="AurelienGravier_0-1711620743563.png" alt="AurelienGravier_0-1711620743563.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And I can found the following exception on python.exe_fastcheck/log :&lt;/P&gt;
&lt;P&gt;[err] File "C:\ProgramData\dynatrace\remotepluginmodule\agent\runtime\extensions\python_venvs\custom_reviews_0.0.9\lib\site-packages\reviews\__main__.py", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;[err] from google_play_scraper import app, Sort, reviews_all&lt;BR /&gt;[err]ModuleNotFoundError: No module named 'google_play_scraper'&lt;BR /&gt;&lt;BR /&gt;On vscode how to add the dependency to take it in charge during the building of the extension ?&lt;/P&gt;
&lt;P&gt;Thank you, regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 14:22:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Extension-V2-Python-dependencies-ModuleNotFoundError/m-p/241319#M4254</guid>
      <dc:creator>AurelienGravier</dc:creator>
      <dc:date>2024-05-10T14:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extension V2 Python dependencies ModuleNotFoundError: No module named</title>
      <link>https://community.dynatrace.com/t5/Extensions/Extension-V2-Python-dependencies-ModuleNotFoundError/m-p/241330#M4255</link>
      <description>&lt;P&gt;Inside the setup.py file in the folder of the extension, add the dependencies to the install_requires line, such as this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;install_requires=["dynatrace_extension", "requests"],&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 12:44:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Extension-V2-Python-dependencies-ModuleNotFoundError/m-p/241330#M4255</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2024-03-28T12:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Extension V2 Python dependencies ModuleNotFoundError: No module named</title>
      <link>https://community.dynatrace.com/t5/Extensions/Extension-V2-Python-dependencies-ModuleNotFoundError/m-p/241386#M4257</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/11520"&gt;@Mike_L&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You help me to solve my issue !&lt;/P&gt;&lt;P&gt;First of all, as you mentioned, I have edited the "setup.py" file to add my dependency as a new "install_requires".&lt;BR /&gt;But it was also mandatory in my case to update the version number :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AurelienGravier_0-1711657390206.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18564iFF47050214F20420/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AurelienGravier_0-1711657390206.png" alt="AurelienGravier_0-1711657390206.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;git hub link :&lt;/P&gt;&lt;P&gt;&lt;A href="https://dynatrace-extensions.github.io/dt-extensions-python-sdk/guides/extension_structure.html?_gl=1*emzohc*_ga*MTE1OTQyMzYzOS4xNzA2NDg3OTgx*_ga_1MEMV02JXV*MTcxMTY1NDg4Ni4xNjIuMS4xNzExNjU3NzMyLjAuMC4w#setup-py" target="_blank" rel="noopener"&gt;https://dynatrace-extensions.github.io/dt-extensions-python-sdk/guides/extension_structure.html?_gl=1*emzohc*_ga*MTE1OTQyMzYzOS4xNzA2NDg3OTgx*_ga_1MEMV02JXV*MTcxMTY1NDg4Ni4xNjIuMS4xNzExNjU3NzMyLjAuMC4w#setup-py&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;Bumping version :&lt;/P&gt;&lt;P&gt;When bumping the version of the extension in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;extension.yaml&lt;/SPAN&gt;, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;setup.py&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file must be updated as well. The two versions must match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;BR /&gt;Best regards, Aurélien.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 20:29:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Extension-V2-Python-dependencies-ModuleNotFoundError/m-p/241386#M4257</guid>
      <dc:creator>AurelienGravier</dc:creator>
      <dc:date>2024-03-28T20:29:54Z</dc:date>
    </item>
  </channel>
</rss>

