# ImportError: No module named gridfs

**URL:** <https://community.blockcerts.org/t/importerror-no-module-named-gridfs/1314>\
**Category:** Support\
**Created:** [September 1, 2018, 3:00pm UTC](https://community.blockcerts.org/t/importerror-no-module-named-gridfs/1314 "2018-09-01T15:00:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlhaddadM](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@AlhaddadM](https://community.blockcerts.org/u/AlhaddadM)\
**Post date:** [September 1, 2018, 3:00pm UTC](https://community.blockcerts.org/t/importerror-no-module-named-gridfs/1314/1 "2018-09-01T15:00:32Z")

</div>

i’m installing cert-viewer…" [https://github.com/blockchain-certificates/cert-viewer](https://github.com/blockchain-certificates/cert-viewer) "

when i run this command " python run.py -c conf\_local.ini "

this error came … when i googled it … mongodb was not installed … i installed it but same error

---

<div class="post-metadata">

**Author:** ![Hugo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.blockcerts.org/hugo/32/449_2.png) [@Hugo](https://community.blockcerts.org/u/Hugo)\
**Post date:** [September 3, 2018, 6:40am UTC](https://community.blockcerts.org/t/importerror-no-module-named-gridfs/1314/2 "2018-09-03T06:40:47Z")

</div>

Can you show us the full error that is displayed?

---

<div class="post-metadata">

**Author:** ![AlhaddadM](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@AlhaddadM](https://community.blockcerts.org/u/AlhaddadM)\
**Post date:** [September 3, 2018, 3:19pm UTC](https://community.blockcerts.org/t/importerror-no-module-named-gridfs/1314/3 "2018-09-03T15:19:12Z")

</div>

![Image](https://us1.discourse-cdn.com/flex016/uploads/blockcerts/original/1X/60113ecf7bb1e8054183e874d3c985f28065109f.png)  
this is the error

---

<div class="post-metadata">

**Author:** ![Hugo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.blockcerts.org/hugo/32/449_2.png) [@Hugo](https://community.blockcerts.org/u/Hugo)\
**Post date:** [September 3, 2018, 3:24pm UTC](https://community.blockcerts.org/t/importerror-no-module-named-gridfs/1314/4 "2018-09-03T15:24:05Z")

</div>

That has not happened to me, but you can try installing that module with:

`pip install gridfs`

---

<div class="post-metadata">

**Author:** ![Hugo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.blockcerts.org/hugo/32/449_2.png) [@Hugo](https://community.blockcerts.org/u/Hugo)\
**Post date:** [September 5, 2018, 7:16pm UTC](https://community.blockcerts.org/t/importerror-no-module-named-gridfs/1314/5 "2018-09-05T19:16:53Z")

</div>

@AlhaddadM: I just got that error when running cert-viewer today.

I had to run again: `pip install .`  
So it rebuilt the dependencies again, and it worked.  
Just make sure you run it in the cert-viewer folder, and that you are using a virtualenv.

If you get stucked make sure you follow the Install and Run steps here: [https://github.com/blockchain-certificates/cert-viewer](https://github.com/blockchain-certificates/cert-viewer)

Cheers  
Hugo

---

<div class="post-metadata">

**Author:** ![AlhaddadM](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@AlhaddadM](https://community.blockcerts.org/u/AlhaddadM)\
**Post date:** [September 7, 2018, 5:43pm UTC](https://community.blockcerts.org/t/importerror-no-module-named-gridfs/1314/6 "2018-09-07T17:43:41Z")

</div>

Sorry i didn’t responed … i solved the problem … i wasn’t in virtualenv…
