ModuleNotFoundError: No module named 'Cython'

,

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

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