# "No module named numba" while importing compas\_rhino

**URL:** <https://forum.compas-framework.org/t/no-module-named-numba-while-importing-compas-rhino/142>\
**Category:** compas\_rhino\
**Created:** [February 20, 2019, 7:39am UTC](https://forum.compas-framework.org/t/no-module-named-numba-while-importing-compas-rhino/142 "2019-02-20T07:39:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SalMo](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@SalMo](https://forum.compas-framework.org/u/SalMo)\
**Post date:** [February 20, 2019, 7:39am UTC](https://forum.compas-framework.org/t/no-module-named-numba-while-importing-compas-rhino/142/1 "2019-02-20T07:39:01Z")

</div>

While importing **compas\_rhino** or **compas.datastructures** in iron python I get the “_No module named numba_” Import Error. I used to import these a month ago without a problem. Could you please explain what the problem could be?

---

<div class="post-metadata">

**Author:** ![andrewliew](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/andrewliew/32/88_2.png) [@andrewliew](https://forum.compas-framework.org/u/andrewliew)\
**Post date:** [February 20, 2019, 8:31am UTC](https://forum.compas-framework.org/t/no-module-named-numba-while-importing-compas-rhino/142/2 "2019-02-20T08:31:32Z")

</div>

Can you confirm you have the latest pull or update of compas? If the error still exists can you paste the error line so we can trace back which import is causing this.

It is probably something slipping through the try excepts.

---

<div class="post-metadata">

**Author:** ![SalMo](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@SalMo](https://forum.compas-framework.org/u/SalMo)\
**Post date:** [February 20, 2019, 10:55am UTC](https://forum.compas-framework.org/t/no-module-named-numba-while-importing-compas-rhino/142/3 "2019-02-20T10:55:10Z")

</div>

I have just pulled the latest version. Now I get a different error.

for example:

**import compas**  
**from compas\_rhino.artists import MeshArtist**

Message: cannot import binomial\_coefficient from compas.utilities

Traceback:  
line 13, in , “C:\Users…\Documents\compas-dev\compas\src\compas\geometry\_primitives\curve.py”  
line 15, in , “C:\Users…\Documents\compas-dev\compas\src\compas\geometry\_primitives\__init_\_.py”  
line 429, in , “C:\Users…\Documents\compas-dev\compas\src\compas\geometry\__init_\_.py”  
line 7, in , “C:\Users…\Documents\compas-dev\compas\src\compas\_rhino\utilities\drawing.py”  
line 160, in , “C:\Users…\Documents\compas-dev\compas\src\compas\_rhino\utilities\__init_\_.py”  
line 29, in , “C:\Users…\Documents\compas-dev\compas\src\compas\_rhino\__init_\_.py”

or

**import compas**  
**from compas.datastructures import Mesh**

Message: cannot import binomial\_coefficient from compas.utilities

Traceback:  
line 13, in , “C:\Users…\Documents\compas-dev\compas\src\compas\geometry\_primitives\curve.py”  
line 15, in , “C:\Users…\Documents\compas-dev\compas\src\compas\geometry\_primitives\__init_\_.py”  
line 429, in , “C:\Users…\Documents\compas-dev\compas\src\compas\geometry\__init_\_.py”  
line 17, in , “C:\Users…\Documents\compas-dev\compas\src\compas\datastructures\network\_network.py”  
line 6, in , “C:\Users…\Documents\compas-dev\compas\src\compas\datastructures\network\__init_\_.py”  
line 142, in , “C:\Users…\Documents\compas-dev\compas\src\compas\datastructures\__init_\_.py”

---

<div class="post-metadata">

**Author:** ![andrewliew](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/andrewliew/32/88_2.png) [@andrewliew](https://forum.compas-framework.org/u/andrewliew)\
**Post date:** [February 21, 2019, 11:02am UTC](https://forum.compas-framework.org/t/no-module-named-numba-while-importing-compas-rhino/142/4 "2019-02-21T11:02:41Z")

</div>

Glad the first error went away.

The new error I do not get with CPython or in IronPython with Rhino.

I can run `from compas.utilities import binomial_coefficient` without problem. I suggest you make an issue as it could be a bug that might be affectiing others too, there you can provide some more information on the problem.

---

<div class="post-metadata">

**Author:** ![SalMo](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@SalMo](https://forum.compas-framework.org/u/SalMo)\
**Post date:** [February 21, 2019, 12:44pm UTC](https://forum.compas-framework.org/t/no-module-named-numba-while-importing-compas-rhino/142/6 "2019-02-21T12:44:22Z")

</div>

The problem got somehow solved after I removed a version of the _numpydoc_ folder from anaconda _site-packages_, which was causing errors while importing _sklearn_ package!!! Not sure what the relation was!
