Multiple RASA versions in different conda env

Hi there, :wave:
I was recently facing some issues connecting my rasa 3.0.4 bot with my Wordpress-Website using the Botfronts Webchat & ngrok. @nik202 helped me to find out, that the error was sanic-related and how to fix it - here.
However, I would like to have different conda environments with different rasa 3.x.x versions to try out which works best with sanic. I apologize beforehand - I am sure it is a pretty basic question :expressionless: but I simply don’t know better and so far I couldn’t find a good explanation… :fearful:
So, I did the following:

  1. Created a new directory in the folder where I have my rasa projects
  2. Changed into that directory and created a new conda environment: conda create --name newvenv
  3. Activated that new environment: conda activate newvenv
  4. Installed rasa in that new directory: pip install rasa==3.0.6 (and rasa-sdk…)
  5. to my surprise he found an existing rasa-version, which was then replaced and the new rasa version was installed
  6. I checked my other virtual environment and of course the rasa version was changed to rasa 3.0.6

    Isn’t the whole point of a virtual environment that the packages are installed there and not globally. :face_with_raised_eyebrow:
    What did I missunderstand? Where did I mess up? Could someone help me understand?

Thanks :slightly_smiling_face:

@vio_lovis quite a strange and unique issue :frowning:

Confirm with me please:

This is the command you had used for creating the environment or did you also mention the python version with the above command?

conda create -n newvenv python=3.8

Thanks.

Hi @nik202 ,

I did mention the pyhton version as well. conda create --name newvenv python==3.8.10… I use the same python version in both of the environments, could that be an issue?

@vio_lovis I don’t think, this will be an issue…hmmm let me think. But, I never get this issue :frowning:

@vio_lovis can you create an environment like this and test?

conda create -n yourenvname python==x.x anaconda

@vio_lovis your system is Mac or Window or Ubuntu?

Do update me please.

Hi @nik202,
I have a test tomorrow and I don’t want to mess up things before that. I will try tomorrow.

I use Windows 10.

Thanks for helping me! I will let you know when I tested your suggestion.

@vio_lovis no worries and good luck for you test :+1:

Hi @nik202,

It worked! :grinning: I did everything as usual and just changed the command to create the virtual environment from
conda create -n nameofvenv python==x.x.x to
conda create -n nameofvenv python==x.x.x anaconda
as you suggested. Thank you :pray:
Ciao, Vio

@vio_lovis Great! Happy to help you always, as I can sense your enthusiasm for learning :slight_smile:

Have a great day ahead Violetta!

@vio_lovis Hope your test went well? :100: / :100:

1 Like

Hi @nik202 - I just saw your questions… well, it’s still a prototype… so failing gracefully was the goal I aimed for :smile:
How goes the saying? Building a prototype is not that hard, the hard part show up, when you try to get it ready for production… - so that’s my current feeling :sweat_smile:

@vio_lovis no worries, If you need any help in this context, I’m more then happy to help!

Hi @nik202,
actually, I could need some guidance. :upside_down_face: Can I contact you via Mail, LinkedIn or whatever works for you and describe my project and my challanges? Maybe you have the time to give some advice or maybe you know somebody that could accompany our project?
Thanks a lot in advance for offering to help!
Ciao :wave: Vio