# Module mongodb not found

**URL:** <https://forum.inductiveautomation.com/t/module-mongodb-not-found/11729>\
**Category:** 3rd Party Modules\
**Created:** [May 26, 2016, 7:45pm UTC](https://forum.inductiveautomation.com/t/module-mongodb-not-found/11729 "2016-05-26T19:45:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea.montresor](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@andrea.montresor](https://forum.inductiveautomation.com/u/andrea.montresor)\
**Post date:** [May 26, 2016, 7:45pm UTC](https://forum.inductiveautomation.com/t/module-mongodb-not-found/11729/1 "2016-05-26T19:45:17Z")

</div>

Hi,

I created a new module in the marketplace and I load it in the Ignition Gateway. This module is a module with a mongodb jar driver.  
This is my module in ignition:  
Name Version License Status  
MongoDB Driver 2.9.1 (b0) Free Loaded  
I created a script in the value changed of one tag:

`from com.mongodb import Mongo
from com.mongodb import BasicDBObject`  
But I have this error:

`Value Changed	Error executing script.
Traceback (most recent call last):
  File "<tagevent:valueChanged>", line 16, in valueChanged
ImportError: No module named mongodb ERROR`  
  
This error comes out ONLY in the value changed of one tag and in global/shared script.  
I tried also in the shared script but I have the same error (I enclose a picture)

I tried to run the same script in the "Script playgroud"in the designer and it works without any problem.  
I tried also to create one project script with the same code and call it in a Window with a button and it works.

It seems that the problem is only in the value changed of the tag and in the shared script.

Can you help me?

Thanks,  
Andrea

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [July 21, 2016, 7:58pm UTC](https://forum.inductiveautomation.com/t/module-mongodb-not-found/11729/2 "2016-07-21T19:58:29Z")

</div>

I am late to the party, but this is because of the different way the class loaders work, in the gateway and client/designer contexts. As you noticed, the class loader essentially will not allow access to each jar from different modules. You will need to expose each class as a script call to access it that way from the gateway,

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 22, 2016, 3:14pm UTC](https://forum.inductiveautomation.com/t/module-mongodb-not-found/11729/3 "2016-07-22T15:14:59Z")

</div>

I think this got solved in an email chain a while back.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [February 28, 2023, 8:08am UTC](https://forum.inductiveautomation.com/t/module-mongodb-not-found/11729/4 "2023-02-28T08:08:52Z")

</div>

Hi Andrea,

Where can I download your module?  
Is there any GitHub address for that?
