# Extension V2 Python dependencies ModuleNotFoundError

**URL:** <https://community.dynatrace.com/t/extension-v2-python-dependencies-modulenotfounderror/44898>\
**Category:** Extensions\
**Tags:** python, extensions\
**Created:** [March 28, 2024, 10:25am UTC](https://community.dynatrace.com/t/extension-v2-python-dependencies-modulenotfounderror/44898 "2024-03-28T10:25:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agravier](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agravier/32/29303_2.png) [@agravier](https://community.dynatrace.com/u/agravier)\
**Post date:** [March 28, 2024, 10:25am UTC](https://community.dynatrace.com/t/extension-v2-python-dependencies-modulenotfounderror/44898/1 "2024-03-28T10:25:23Z")

</div>

Hello,

I’m developing an V2 python extension which works like a charm locally.  
But when I build and upload it the

 ![AurelienGravier_0-1711620743563.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/b43f82a7324afea9d5b145a1b2ba0c48bf9e6ac2.png)

And I can found the following exception on python.exe\_fastcheck/log :

[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 \<module\>  
[err] from google\_play\_scraper import app, Sort, reviews\_all  
[err]ModuleNotFoundError: No module named ‘google\_play\_scraper’

On vscode how to add the dependency to take it in charge during the building of the extension ?

Thank you, regards.

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [March 28, 2024, 12:44pm UTC](https://community.dynatrace.com/t/extension-v2-python-dependencies-modulenotfounderror/44898/2 "2024-03-28T12:44:15Z")

</div>

Inside the setup.py file in the folder of the extension, add the dependencies to the install\_requires line, such as this:

```markup
install_requires=["dynatrace_extension", "requests"],

```

---

<div class="post-metadata">

**Author:** ![agravier](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agravier/32/29303_2.png) [@agravier](https://community.dynatrace.com/u/agravier)\
**Post date:** [March 28, 2024, 8:29pm UTC](https://community.dynatrace.com/t/extension-v2-python-dependencies-modulenotfounderror/44898/3 "2024-03-28T20:29:54Z")

</div>

Thank you&nbsp;[@Mike\_L](https://community.dynatrace.com/user/11520)&nbsp;,

You help me to solve my issue !

First of all, as you mentioned, I have edited the “setup.py” file to add my dependency as a new “install\_requires”.  
But it was also mandatory in my case to update the version number :

 ![AurelienGravier_0-1711657390206.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/1/512412658015aff5d33ea6f0e3e4c08e90774f96.png)

git hub link :

> **[setup.py - Extension Structure — dt-sdk 1.0.0 documentation](https://dynatrace-extensions.github.io/dt-extensions-python-sdk/guides/extension_structure.html?_gl=1*emzohc*_ga*MTE1OTQyMzYzOS4xNzA2NDg3OTgx*_ga_1MEMV02JXV*MTcxMTY1NDg4Ni4xNjIuMS4xNzExNjU3NzMyLjAuMC4w#setup-py)**
>
> The basic bare-bone structure of an extension is as follows:

Bumping version :

When bumping the version of the extension in the&nbsp;extension.yaml, the&nbsp;setup.py&nbsp;file must be updated as well. The two versions must match.

Thank you so much.  
Best regards, Aurélien.
