Action Server cv2-module not found but open-cv is installed. conda cloned environment

I have opencv package installed and i can run opencv code without no problem at all. i need to use opencv for a custom action. but when i am running “rasa run actions” i keep getting cv2 module not found error

i am using anaconda and it’s virtual environment

@tanvir_ishraq I’d highly recommend deleting all environments and creating and installing a new.

2 Likes

As @nik202 said.

From what I understood from your comments in red, you probably just copied the venv folder. Don’t do that, there are some configuration files that rely on the path.

hello

I didn’t copy any venv folder. I don’t use venv. I used anaconda navigator’s “clone environment” feature which comes with conda

I always keep a fresh rasa installed environment (because rasa sometimes stops working out of nowhere). Then I clone a new environment from that environment.

This is weird cloning engineering on conda’s part.