hey, I installed rasa twise; one on python 3.7 the other on python 3.9 I created them in users\ path next to each others. Then, the path on /myDocuments created folders rasaAssist1 and rasaAssist2 folders and created rasa assist which has model and data folders. When I remove the comments from action.py, rasa_sdk and rasa_sdk.executer imports show unresolved. To fix it; I installed twice thinking python 3.9 was the issue. Nope, it still showing same error. Rasa is running on the venv
Hi,
We are no longer supporting python 3.7, please make sure you have python 3.9 added to your path for Rasa.
Thank you a bunch! I was following the rasa’s installation; PYTHON3 SUPPORTED VERSIONS on their website. Setting up your environment.
I found the video a bit outdated on youtube about rasa installation Installing Rasa Open Source 3.x: Windows 10 (64 bit) - YouTube I could not follow up with steps because anaconda she used wouldn’t be downloaded on my chrome. So, I installed python from python.org. Then created virtual env and installed rasa. On youtube video’s at 4.06; create & talk to your first assistant; she has switched to the path she created beforehand. I created folder in my local machine without any virtual env, just a simple folder. Then I switched into that simple folder, and rasa created in it rasa assistant. This rasa assistant has action folder with acton.py. The imports of rasa_sdk and other rasa related sdk imports show error yellow line, saying unable to find importing sdks. Python 3.9 installed globally, set the path in my windows 10 env variables. My question is setting folder anywhere for rasa assist was correct or not, or it supposed to be in virtual env too? Or in the same place where rasa installed ? On video she used anaconda to set up env which I couldn’t follow due no anaconda installed.
Please keep an eye on the announcements.
It seems like you have encountered some issues while working with Rasa on two different Python versions (3.7 and 3.9) in virtual environments. Let’s try to troubleshoot and resolve these issues step by step:
- Check Virtual Environments: Ensure that you have activated the correct virtual environment for each Rasa installation. For Python 3.7, activate the virtual environment created for it, and for Python 3.9, activate the virtual environment created for it.To activate a virtual environment, you can use the following commands:For Python 3.7:
bashCopy code
source /path/to/venv37/bin/activate
For Python 3.9:
bashCopy code
source /path/to/venv39/bin/activate
- Module Import Errors: If you’re getting import errors for
rasa_sdk
andrasa_sdk.executor
in youraction.py
file, it could be due to several reasons:
- Module not installed: Make sure that you have installed the
rasa-sdk
package in both of your virtual environments. You can install it using pip:
Copy code
pip install rasa-sdk
- Path Configuration: Verify that you’re working in the correct virtual environment when you’re trying to run Rasa. You should activate the virtual environment with the required Python version and then run Rasa from that environment.
- Python Version Compatibility: Ensure that the installed
rasa-sdk
version is compatible with both Python 3.7 and Python 3.9. You can check this by reviewing the package’s documentation or using a compatible version.
- Project Structure: Make sure your Rasa project structure is correct. The
action.py
file should be located in the root directory of your Rasa project, alongside thedata
andmodels
directories. - Environment Variables: Check if there are any environment variables or conflicting configurations that might be affecting the Python environment or package imports.
- Check Rasa Version: Confirm that you are using a compatible version of Rasa for both Python 3.7 and Python 3.9. You can check the compatibility of your Rasa version with your Python version by referring to Rasa’s official documentation.
- Restart Environment: Sometimes, issues can be resolved by simply restarting your virtual environment and reactivating it.
Hi,
Please install the latest Rasa version 3.6.6, please check the announcement here:Rasa Open Source 3.6.6 launched 🚀