# ModuleNotFoundError: No module named 'Cython'

**URL:** <https://forum.ansible.com/t/modulenotfounderror-no-module-named-cython/37845>\
**Category:** AWX Project\
**Tags:** awx, ee\
**Created:** [April 3, 2023, 2:54pm UTC](https://forum.ansible.com/t/modulenotfounderror-no-module-named-cython/37845 "2023-04-03T14:54:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AWX\_Project2](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@AWX\_Project2](https://forum.ansible.com/u/AWX_Project2)\
**Post date:** [April 3, 2023, 2:54pm UTC](https://forum.ansible.com/t/modulenotfounderror-no-module-named-cython/37845/1 "2023-04-03T14:54:15Z")

</div>

Hi,

We are using AWX 20.1.0. We create Custom EE images. It was creating fine until 2 months back. Now it has started throwing below error saying: ModuleNotFoundError: No module named ‘Cython’.  
I have explicitly pip3 installed Cython on image still error is persisting.  
Please help! Thanks in advance.

**Error:**  
File “/usr/local/lib/python3.8/site-packages/pip/\_vendor/pep517/in\_process/\_in\_process.py”, line 345, in main

json\_out[‘return\_val’] = hook(\*\*hook\_input[‘kwargs’])  
File “/usr/local/lib/python3.8/site-packages/pip/\_vendor/pep517/in\_process/\_in\_process.py”, line 164, in prepare\_metadata\_for\_build\_wheel  
return hook(metadata\_directory, config\_settings)  
File “/usr/lib/python3.8/site-packages/setuptools/build\_meta.py”, line 156, in prepare\_metadata\_for\_build\_wheel  
self.run\_setup()  
File “/usr/lib/python3.8/site-packages/setuptools/build\_meta.py”, line 142, in run\_setup  
exec(compile(code, **file** , ‘exec’), locals())  
File “setup.py”, line 18, in   
from Cython.Build import cythonize # noqa: E402  
ModuleNotFoundError: No module named ‘Cython’  
[end of output]  
note: This error originates from a subprocess, and is likely not a problem with pip.  
error: metadata-generation-failed  
× Encountered error while generating package metadata.  
╰─\> See above for output.

Thanks & Regards,  
Ahmed

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [April 5, 2023, 7:01pm UTC](https://forum.ansible.com/t/modulenotfounderror-no-module-named-cython/37845/2 "2023-04-05T19:01:48Z")

</div>

Hi,  
Can you paste the exact commands you’re running to install packages (the pip3 command I assume) and then how you’re creating the EE?  
Thanks,

- AWX Team
