'LegacyVersion' Error

Hello, I have a conda env and working on it daily, today I activate it and run rasa run I got this error!

ImportError: cannot import name 'LegacyVersion' from 'packaging.version' (/home/sallax/.local/lib/python3.10/site-packages/packaging/version.py)

Also, I tried to make a new env, but got the same error!!! Any help?

Hi, what version of python are you using for the environment.

I faced a similar error and reported a bug here → [OSS-704] - Jira. I posted a workaround in that bug but its not ideal. Hoping folks on the Rasa development team can take a look at it.

Python 3.11.4

please check out this for your reference

https://rasa-open-source.atlassian.net/browse/OSS-704?focusedCommentId=12775

Hi, Is there any solution to it which does not involve changing the rasa files manually? I am running into a similar issue with python 3.10 and rasa 3.6.19 with packaging version 23.2. I have used pip or pip3 both to install rasa, but somehow it has hard dependency on packaging version lower then 22.

For those that are following this solution, I had to comment out lines 6 & 252-253 it references 250-251 but that is maybe outdated