# Entity Framework 2 : Error during python build phase: ERROR: Could not find a version that satisfies the requirement oracle

**URL:** <https://community.dynatrace.com/t/entity-framework-2-error-during-python-build-phase-error-could-not-find-a-version-that-satisfies-the-requirement-oracle/45983>\
**Category:** Extensions\
**Tags:** coding-assistance\
**Created:** [June 7, 2024, 2:17pm UTC](https://community.dynatrace.com/t/entity-framework-2-error-during-python-build-phase-error-could-not-find-a-version-that-satisfies-the-requirement-oracle/45983 "2024-06-07T14:17:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![duey\_hoang](https://avatars.discourse-cdn.com/v4/letter/d/a6a055/32.png) [@duey\_hoang](https://community.dynatrace.com/u/duey_hoang)\
**Post date:** [June 7, 2024, 2:17pm UTC](https://community.dynatrace.com/t/entity-framework-2-error-during-python-build-phase-error-could-not-find-a-version-that-satisfies-the-requirement-oracle/45983/1 "2024-06-07T14:17:19Z")

</div>

Using Visual Studio Code with Dynatrace extension v2.6.1 and python 3.12

when adding oracle dependency to setup.py (install\_requires=[“dt-extensions-sdk”,“oracle”]), the project cannot be built due to the above error, even the package existed inside the folder structure. The problem is not there when i add other dependency like requests (for example .&nbsp;install\_requires=[“dt-extensions-sdk”,“requests”]).

thank you.

---

<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:** [June 7, 2024, 3:15pm UTC](https://community.dynatrace.com/t/entity-framework-2-error-during-python-build-phase-error-could-not-find-a-version-that-satisfies-the-requirement-oracle/45983/2 "2024-06-07T15:15:43Z")

</div>

I think it used to be called cx\_oracle and nowadays the Python library Oracle recommends is oracledb.

---

<div class="post-metadata">

**Author:** ![duey\_hoang](https://avatars.discourse-cdn.com/v4/letter/d/a6a055/32.png) [@duey\_hoang](https://community.dynatrace.com/u/duey_hoang)\
**Post date:** [June 7, 2024, 3:22pm UTC](https://community.dynatrace.com/t/entity-framework-2-error-during-python-build-phase-error-could-not-find-a-version-that-satisfies-the-requirement-oracle/45983/3 "2024-06-07T15:22:35Z")

</div>

thank you Mike. there is one thing i forgot to add. everything built and worked as expected with oracle package on local machine. The only issue is when it is time to pack it up, build it and distribute to remote oneagent host, that is when we have to put the oracle dependency in the setup.py so that it comes along to the oneagent host. that is the time when we have that issue error.

---

<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:** [June 7, 2024, 3:26pm UTC](https://community.dynatrace.com/t/entity-framework-2-error-during-python-build-phase-error-could-not-find-a-version-that-satisfies-the-requirement-oracle/45983/4 "2024-06-07T15:26:50Z")

</div>

I don’t think “pip install oracle” is the one you’re looking for though, I assume you installed another one locally, which is why it works.

Also, make sure that you set additional environments if required to get all compiled code. See info here:&nbsp;[https://developer.dynatrace.com/extensions-v2/dynatrace-extensions-vscode/settings/#python-environment](https://developer.dynatrace.com/extensions-v2/dynatrace-extensions-vscode/settings/#python-environment)

---

<div class="post-metadata">

**Author:** ![duey\_hoang](https://avatars.discourse-cdn.com/v4/letter/d/a6a055/32.png) [@duey\_hoang](https://community.dynatrace.com/u/duey_hoang)\
**Post date:** [July 24, 2024, 7:42pm UTC](https://community.dynatrace.com/t/entity-framework-2-error-during-python-build-phase-error-could-not-find-a-version-that-satisfies-the-requirement-oracle/45983/5 "2024-07-24T19:42:50Z")

</div>

i gave up on dynatrace extension on vscode market. I just used python3.10 and dynatrace CLI on terminal. it works for me that way.

thank you Mike for the tips.
