# ImportError: X, using plot\_data() or other functions in compas\_fea

**URL:** <https://forum.compas-framework.org/t/importerror-x-using-plot-data-or-other-functions-in-compas-fea/45>\
**Category:** compas\_fea\
**Created:** [February 8, 2018, 5:48pm UTC](https://forum.compas-framework.org/t/importerror-x-using-plot-data-or-other-functions-in-compas-fea/45 "2018-02-08T17:48:19Z")\
**Posts on this page:** 1\
**Page:** 1

<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 8, 2018, 5:48pm UTC](https://forum.compas-framework.org/t/importerror-x-using-plot-data-or-other-functions-in-compas-fea/45/1 "2018-02-08T17:48:19Z")

</div>

If you are using **compas\_fea** and find that using a function like `rhino.plot_data()` is giving an error that looks like:

```python
ImportError: No module named compas.package

```

This is due to **compas** (or similarly **compas\_fea** ) not being on your **system** path. Note that, some functions, especially those in **compas.utilities.functions** will use the **XFunc** method of **compas** to get access to your CPython distribution, this is independent of adding any `src` folders within Rhino’s IronPython script editor.

To add **compas** and **compas\_fea** to your system path do the following:

1. Go to **Advanced System Settings** on Windows, and then click **Environment Variables** :

![env_var](https://us1.discourse-cdn.com/flex015/uploads/compas_framework1/original/1X/7c15fc944cef07fbdec25f94298d1cec8fa2594d.png)

1. Make a variable called `PYTHONPATH`, and then make sure both your **compas** and **compas\_fea** `src` folders are put in.

 ![path](https://us1.discourse-cdn.com/flex015/uploads/compas_framework1/original/1X/45cc341fc59e0040928278bbc7738099e0768b18.png)
