Module error pycatch22

Hi @enzo in my latest run , Recently I used pycatch22 library in my code but it throws an error :

Traceback (most recent call last):
File “/context/venv/lib/python3.11/site-packages/crunch/runner/cloud_executor.py”, line 230, in start
prediction = self.process_unstructured()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/context/venv/lib/python3.11/site-packages/crunch/runner/cloud_executor.py”, line 486, in process_unstructured
return utils.smart_call(
^^^^^^^^^^^^^^^^^
File “/context/venv/lib/python3.11/site-packages/crunch/utils.py”, line 265, in smart_call
return function(**arguments)
^^^^^^^^^^^^^^^^^^^^^
File “/context/scoring/runner.py”, line 78, in train
smart_call(
File “/context/venv/lib/python3.11/site-packages/crunch/utils.py”, line 265, in smart_call
return function(**arguments)
^^^^^^^^^^^^^^^^^^^^^
File “/context/code/main.py”, line 240, in train
X_feat = extract_features(X_train)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/context/code/main.py”, line 216, in extract_features
if pycatch22 is not None:
^^^^^^^^^
NameError: name ‘pycatch22’ is not defined

I explicitly wrote “!pip install pycatch22“

Can you help me here .

The system don’t detect any !pip install, it only look for import <name> statements.

Are you importing pycatch22?
The import must not be in the train or infer function, it must be at the top level.

Yes I am importing pycatch22 . Thanks I was actually importing it inside a function hence it was throwing error .