# How to call the FEM module in Python?

**URL:** https://discourse.itk.org/t/how-to-call-the-fem-module-in-python/4937
**Category:** Beginner Questions
**Tags:** python, module
**Created:** [April 24, 2022, 1:58pm UTC](https://discourse.itk.org/t/how-to-call-the-fem-module-in-python/4937 "2022-04-24T13:58:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![edgar](https://discourse.itk.org/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@edgar](https://discourse.itk.org/u/edgar)
#### Post date: [April 24, 2022, 1:58pm UTC](https://discourse.itk.org/t/how-to-call-the-fem-module-in-python/4937/1 "2022-04-24T13:58:35Z")

</div>

# How to use the FEM module?

I must be doing something terribly silly. Can you please help me to access the FEM module? I was just trying to translate `DeformableRegistration1.cxx` into Python. Thanks.

```
import itk

itk.fem

Traceback (most recent call last):
  File "<string>", line 19, in __PYTHON_EL_eval
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/itk/support/lazy.py", line 130, in __getattribute__
    value = types.ModuleType. __getattribute__ (self, attr)
AttributeError: module 'itk' has no attribute 'fem'

```

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [April 25, 2022, 1:44pm UTC](https://discourse.itk.org/t/how-to-call-the-fem-module-in-python/4937/2 "2022-04-25T13:44:24Z")

</div>

FEM module is not compiled by default. And it does not have Python wrapping. All because it is not frequently used. While you could add Python wrapping, that is a non-trivial task.

---

<div class="post-metadata">

### Author: ![edgar](https://discourse.itk.org/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@edgar](https://discourse.itk.org/u/edgar)
#### Post date: [April 26, 2022, 9:45am UTC](https://discourse.itk.org/t/how-to-call-the-fem-module-in-python/4937/3 "2022-04-26T09:45:47Z")

</div>

Thank you very much (:
