E ModuleNotFoundError: No module named 'rasa_sdk'

While testing my custom actions using a make test, I am trying to import rasa_sdk in conftest.py and test_actions.py and I keep getting this error E ModuleNotFoundError: No module named ‘rasa_sdk’.

I am basically following the financial_demo project to test custom actions. Also, from actions import actions returns E ModuleNotFoundError: No module named ‘actions’

How can I solve this, please?

Can you please show the full stack traces and imports? Does pip list include the Rasa SDK?

from rasa_sdk.executor import CollectingDispatcher

from rasa_sdk import Tracker

(in test_actions.py) from actions import actions also returns error as stated in my earlier message image

Running pip list, I see both rasa and rasa_sdk (among others) image

@Tobias_Wochinger No response still? it’s been over 24 hours now

[SOLVED] I didn’t install pytest in my venv previously. installing pytest resolved the issue

Sweet! Glad you got it fixed :rocket: