# Python Extension 1.0 : issue with Numpy on AWS

**URL:** <https://community.dynatrace.com/t/python-extension-1-0-issue-with-numpy-on-aws/45616>\
**Category:** Extensions\
**Tags:** aws, python, extensions\
**Created:** [May 16, 2024, 10:00am UTC](https://community.dynatrace.com/t/python-extension-1-0-issue-with-numpy-on-aws/45616 "2024-05-16T10:00:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MathieuB](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mathieub/32/16706_2.png) [@MathieuB](https://community.dynatrace.com/u/MathieuB)\
**Post date:** [May 16, 2024, 10:00am UTC](https://community.dynatrace.com/t/python-extension-1-0-issue-with-numpy-on-aws/45616/1 "2024-05-16T10:00:45Z")

</div>

Hi community,

I want to run an ActiveGate extension (v1.0), written in Python3, on a AWS EC2 instance.

I use the Python package **Pandas** , which requires the package **Numpy**.  
_plugin.json file :_

```auto
"install_requires": ["pandas"]

```

When I run the plugin, I get this error :

```auto
Error(Unable to import required dependencies: numpy: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there.)

```

The plugin works fine when I run it manually with the sdk simulation :

```auto
plugin_sdk simulate_plugin -p plugin

```

```auto
plugin_sdk --version
plugin_sdk 1.287.149.20240416.100607

```

```auto
Python version : 3.10.12

```

When I run this plugin on other system, no on AWS, it works. So I think the issue came from the Dynatrace-AWS couple.

 ![error_numpy.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/335cecb45818ed6cd539a28ec634e3e6c7cfa706.png)

---

<div class="post-metadata">

**Author:** ![LukaszMal](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@LukaszMal](https://community.dynatrace.com/u/LukaszMal)\
**Post date:** [May 21, 2024, 1:39pm UTC](https://community.dynatrace.com/t/python-extension-1-0-issue-with-numpy-on-aws/45616/2 "2024-05-21T13:39:32Z")

</div>

We don’t support custom plugins, but what I would recommend is to rewrite it to use the extension framework 2.0. Version 1.0 will be deprecated soon

---

<div class="post-metadata">

**Author:** ![MathieuB](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mathieub/32/16706_2.png) [@MathieuB](https://community.dynatrace.com/u/MathieuB)\
**Post date:** [May 31, 2024, 12:41pm UTC](https://community.dynatrace.com/t/python-extension-1-0-issue-with-numpy-on-aws/45616/3 "2024-05-31T12:41:01Z")

</div>

I found no other solution : I had re-written my plugin by removing the Pandas library.
