# Module mongodb not found

**URL:** <https://forum.inductiveautomation.com/t/module-mongodb-not-found/11732>\
**Category:** Ignition\
**Created:** [May 26, 2016, 7:48pm UTC](https://forum.inductiveautomation.com/t/module-mongodb-not-found/11732 "2016-05-26T19:48:09Z")\
**Posts on this page:** 5\
**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:48pm UTC](https://forum.inductiveautomation.com/t/module-mongodb-not-found/11732/1 "2016-05-26T19:48:09Z")

</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:** ![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:** [May 26, 2016, 7:51pm UTC](https://forum.inductiveautomation.com/t/module-mongodb-not-found/11732/2 "2016-05-26T19:51:02Z")

</div>

Into what scopes are you adding the Mongo jar?

---

<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:58pm UTC](https://forum.inductiveautomation.com/t/module-mongodb-not-found/11732/3 "2016-05-26T19:58:30Z")

</div>

I don’t know what scopes I added Mongo jar.  
I created the module with the mongodb driver jar and I load it in the Ignition broswer.  
I need to do more thing?

In the script playgroud in the designer I don’t have any problem and I read from Mongo with the script.

Can you help me? You need more information?

Andrea

---

<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:** [May 26, 2016, 8:07pm UTC](https://forum.inductiveautomation.com/t/module-mongodb-not-found/11732/4 "2016-05-26T20:07:19Z")

</div>

What does your module.xml file look like?

---

<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, 8:12pm UTC](https://forum.inductiveautomation.com/t/module-mongodb-not-found/11732/5 "2016-05-26T20:12:36Z")

</div>

I enclose a picture to show the file and this is my xml file:

[code]\<?xml version="1.0" encoding="UTF-8"?\>

MongoJavaDriver

MongoDB Driver

The MongoDB Java Driver.

2.9.1.0

7.7.0

6

license.html

true

true

mongo-2.9.1.jar

[/code]

You need more information?

Thank you so much
