# No module named 'PyPulse' Error

**URL:** <https://discourse.kitware.com/t/no-module-named-pypulse-error/996>\
**Category:** Pulse Physiology Engine\
**Created:** [March 9, 2023, 6:21pm UTC](https://discourse.kitware.com/t/no-module-named-pypulse-error/996 "2023-03-09T18:21:57Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)\
**Post date:** [February 20, 2024, 6:10pm UTC](https://discourse.kitware.com/t/no-module-named-pypulse-error/996/21 "2024-02-20T18:10:10Z")

</div>

The information you are providing is the CMake information.

You need to actually build the code base now that CMake did it’s thing.

This may be a little old, but should still help you through the build process with Visual Studio

[https://gitlab.kitware.com/physiology/engine/-/wikis/Using%20MSVC](https://gitlab.kitware.com/physiology/engine/-/wikis/Using%20MSVC)

---

<div class="post-metadata">

**Author:** ![striker](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/s/a587f6/32.png) [@striker](https://discourse.kitware.com/u/striker)\
**Post date:** [February 21, 2024, 12:52am UTC](https://discourse.kitware.com/t/no-module-named-pypulse-error/996/22 "2024-02-21T00:52:52Z")

</div>

Yes I did all that, managed to use VS and have all the files generated. Now the error is not PyPulse but another Module, which is not Found. Take a look at this error msg:

Traceback (most recent call last):  
File “C:\Users\neodl\Pulse\engine\src\python\pulse\howto\HowTo\_EngineUse.py”, line 12, in   
from pulse.engine.PulseEngine import PulseEngine, version, hash  
File “c:\users\neodl\pulse\engine\src\python\pulse\engine\PulseEngine.py”, line 10, in   
from pulse.cdm.io.engine import serialize\_actions\_to\_string,   
File “c:\users\neodl\pulse\engine\src\python\pulse\cdm\io\engine.py”, line 10, in   
from pulse.cdm.bind.Engine\_pb2 import AnyActionData,   
ModuleNotFoundError: No module named ‘pulse.cdm.bind.Engine\_pb2’

Configured pycharm to have access PYTHONPATH to the specified folders in the documentation. What else can be causing this? thank you for your much appreciated help

---

<div class="post-metadata">

**Author:** ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)\
**Post date:** [February 21, 2024, 3:25am UTC](https://discourse.kitware.com/t/no-module-named-pypulse-error/996/23 "2024-02-21T03:25:28Z")

</div>

Make sure you have this InnerBuild directory added

 ![image](https://discourse.kitware.com/uploads/default/original/1X/18812465d053e06e057e764954da0b94e0e4e1fe.png)

Looks like I need to update the graphic in the wiki

---

<div class="post-metadata">

**Author:** ![striker](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/s/a587f6/32.png) [@striker](https://discourse.kitware.com/u/striker)\
**Post date:** [February 21, 2024, 9:54am UTC](https://discourse.kitware.com/t/no-module-named-pypulse-error/996/24 "2024-02-21T09:54:30Z")

</div>

Thank you, I did that as well, but I keep getting the same error message. I am attaching screenshots for reference from the build in VS as well as the PyCharm Interpreter Paths, I did the template configuration as well under Run setting up the folder of the install/bin and made sure that was configured correctly.  
I appreciate your help in this process.

Kind regards

 ![X1.png](https://discourse.kitware.com/uploads/default/original/1X/7a17ffc6f9213977b582d43839283fea3e333d41.png)

 ![X3.png](https://discourse.kitware.com/uploads/default/original/1X/a1f8a9ba1cf066d52ef7e36d95dab1ce8db578ec.png)

 ![X2.png](https://discourse.kitware.com/uploads/default/original/1X/a6e138c3733cfd841492820494b8fda040668305.png)

 ![X4.png](https://discourse.kitware.com/uploads/default/original/1X/a38757775b2257e869af7791a3190d45fcb10b09.png)

 ![X5.png](https://discourse.kitware.com/uploads/default/original/1X/762ed330bb94f2758085a97d807b36216f6977c3.png)

---

<div class="post-metadata">

**Author:** ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)\
**Post date:** [February 21, 2024, 1:46pm UTC](https://discourse.kitware.com/t/no-module-named-pypulse-error/996/25 "2024-02-21T13:46:07Z")

</div>

Does `C:\Users\neodl\Pulse\build\pulse-engine\Innerbuild\src\python\pulse\cdm\bind\Engine_pb2.py` exist? That is where is should be getting that module definition…

Since your project is located in the Pulse source directory (as recommended), you don’t need to have `C:\Users\neodl\Pulse\src\python` in your PyCharm Python Path, but I don’t think that it will cause any problems… just redundant

I am not sure why your PYTHONPATH has `C:\Python311\Lib\site-packages` in it… you should be getting site-packages from your venv only… Make sure there is not a pulse package in there for some reason

---

<div class="post-metadata">

**Author:** ![striker](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/s/a587f6/32.png) [@striker](https://discourse.kitware.com/u/striker)\
**Post date:** [February 21, 2024, 3:04pm UTC](https://discourse.kitware.com/t/no-module-named-pypulse-error/996/26 "2024-02-21T15:04:19Z")

</div>

No, the Engine\_pb2.py is not there, no files here except for _init_.py. I am not doing something right in VS but I have followed the instructions. The procedure is after CMake I open the Pulse.sln file from the build folder and I do the Build, Build solution. After that I Build the Install from within the Innerbuild with the second Pulse.sln file. I cannot do a debug because it says Access denied. I am doing something wrong with the build process, but I cannot say. Thanks again for your help.

---

<div class="post-metadata">

**Author:** ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)\
**Post date:** [February 21, 2024, 3:13pm UTC](https://discourse.kitware.com/t/no-module-named-pypulse-error/996/27 "2024-02-21T15:13:00Z")

</div>

> [@striker](#):
>
> I open the Pulse.sln file from the build folder and I do the Build, Build solution.

Some kind of error occured when you did this… need to try to find what happened

---

<div class="post-metadata">

**Author:** ![striker](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/s/a587f6/32.png) [@striker](https://discourse.kitware.com/u/striker)\
**Post date:** [February 23, 2024, 2:48pm UTC](https://discourse.kitware.com/t/no-module-named-pypulse-error/996/28 "2024-02-23T14:48:33Z")

</div>

I finally gave up on windows and changed to Linux, the procedure worked fine. Thank you

---

<div class="post-metadata">

**Author:** ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)\
**Post date:** [February 23, 2024, 2:50pm UTC](https://discourse.kitware.com/t/no-module-named-pypulse-error/996/29 "2024-02-23T14:50:15Z")

</div>

Great!  
Pulse is pretty mobile, works where you are best comfortable

Let us know if you have any other questions!

[Previous page](https://discourse.kitware.com/t/no-module-named-pypulse-error/996.md?page=1)
