RasaHQ / rasa

💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants
https://rasa.com/docs/rasa/
Apache License 2.0
18.88k stars 4.63k forks source link

Rasa core agent not working #7976

Closed pradeepthota-ai closed 1 year ago

pradeepthota-ai commented 3 years ago

Rasa version: 0.12.3

Rasa SDK version (if used & relevant):

Rasa X version (if used & relevant):

Python version:

Operating system (windows, osx, ...): colab(windows)

Issue:--------------------------------------------------------------------------- ContextualVersionConflict Traceback (most recent call last) in () ----> 1 from rasa_core.agent import Agent 2 3 4 agent = Agent('domain.yml') 5 agent.visualize("stories.md", "story_graph.png", max_history=10)

6 frames /usr/local/lib/python3.6/dist-packages/pkg_resources/init.py in resolve(self, requirements, env, installer, replace_conflicting, extras) 775 # Oops, the "best" so far conflicts with a dependency 776 dependent_req = required_by[req] --> 777 raise VersionConflict(dist, req).with_context(dependent_req) 778 779 # push the new requirements onto the stack

ContextualVersionConflict: (tzlocal 1.5.1 (/usr/local/lib/python3.6/dist-packages), Requirement.parse('tzlocal~=2.0'),

{'APScheduler'})

Error (including full traceback):

Command or request that led to error: ContextualVersionConflict: (tzlocal 1.5.1 (/usr/local/lib/python3.6/dist-packages), Requirement.parse('tzlocal~=2.0'), {'APScheduler'}

)

Content of configuration file (config.yml) (if relevant):

Content of domain file (domain.yml) (if relevant):

sara-tagger commented 3 years ago

Exalate commented:

sara-tagger commented:

Thanks for the issue, @TyDunn will get back to you about it soon!

You may find help in the docs and the forum, too
🤗
TyDunn commented 3 years ago

Exalate commented:

TyDunn commented:

Hi @pradeepthota-ai. This is a very old version of Rasa. Can I ask why you are using it?

pradeepthota-ai commented 3 years ago

Exalate commented:

pradeepthota-ai commented:

Hi @pradeepthota-ai. This is a very old version of Rasa. Can I ask why you are using it?

Hi @TyDunn im trying build chatbot with help of Colab notebook, if you have any latest version of colab with RASA please send me the link, and thanks in advance.

TyDunn commented 3 years ago

Exalate commented:

TyDunn commented:

@koaning Can you help @pradeepmvn find the best place to get started? He would like to use a colab notebook or similar if possible

jlrpuma commented 3 years ago

Exalate commented:

jlrpuma commented:

Do you guys have any updates on this? I'm getting the same error using rasa 2.3.0

Operating system: Colab (Google Colaboratory)

!pip install rasa==2.3.0

I'm getting the error when i try to run: (the purpose of this code is execute rasa asynchronously)

import os import rasa import nest_asyncio

nest_asyncio.apply()

print("event loop ready")

The error that im getting is:

ContextualVersionConflict: (tzlocal 1.5.1 (/usr/local/lib/python3.6/dist-packages), Requirement.parse('tzlocal~=2.0'),

{'APScheduler'}

)

OthmanSerraj commented 3 years ago

Exalate commented:

OthmanSerraj commented:

I'm new to rasa, i have a "ContextualVersionConflict" problemes, could you help me, here is the code:

from rasa_core.policies import FallbackPolicy, MemoizationPolicy,KerasPolicy from rasa.core.agent import Agent #getting stuck here

agent = Agent('domain.yml', policies=[MemoizationPolicy(), KerasPolicy()])

training_data = agent.load_data('stories.md')

agent.train( training_data, validation_split=0.0, epochs=200 )

agent.persist('models/dialogue')

=> Error:

ContextualVersionConflict Traceback (most recent call last) in 1 # Import the policies and agent 2 from rasa_core.policies import FallbackPolicy, MemoizationPolicy,KerasPolicy ----> 3 from rasa.core.agent import Agent 4 5 # Initialize the model with 'domain.yml'

6 frames /usr/local/lib/python3.7/dist-packages/rasa/core/agent.py in 13 import rasa 14 import rasa.utils ---> 15 from rasa.core import jobs, training 16 from rasa.core.channels.channel import OutputChannel, UserMessage 17 from rasa.core.constants import DEFAULT_REQUEST_TIMEOUT

/usr/local/lib/python3.7/dist-packages/rasa/core/jobs.py in 2 import logging 3 ----> 4 from apscheduler.schedulers.asyncio import AsyncIOScheduler 5 from pytz import UnknownTimeZoneError, utc 6 import rasa.shared.utils.io

/usr/local/lib/python3.7/dist-packages/apscheduler/init.py in 2 3 try: ---> 4 release = get_distribution('APScheduler').version.split('')[0] 5 except DistributionNotFound: 6 release = '3.5.0'

/usr/local/lib/python3.7/dist-packages/pkg_resources/init.py in get_distribution(dist) 464 dist = Requirement.parse(dist) 465 if isinstance(dist, Requirement): --> 466 dist = get_provider(dist) 467 if not isinstance(dist, Distribution): 468 raise TypeError("Expected string, Requirement, or Distribution", dist)

/usr/local/lib/python3.7/dist-packages/pkg_resources/init.py in get_provider(moduleOrReq) 340 """Return an IResourceProvider for the named module or requirement""" 341 if isinstance(moduleOrReq, Requirement): --> 342 return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0] 343 try: 344 module = sys.modules[moduleOrReq]

/usr/local/lib/python3.7/dist-packages/pkg_resources/init.py in require(self, *requirements) 884 included, even if they were already activated in this working set. 885 """ --> 886 needed = self.resolve(parse_requirements(requirements)) 887 888 for dist in needed:

/usr/local/lib/python3.7/dist-packages/pkg_resources/init.py in resolve(self, requirements, env, installer, replace_conflicting, extras) 775 # Oops, the "best" so far conflicts with a dependency 776 dependent_req = required_by[req] --> 777 raise VersionConflict(dist, req).with_context(dependent_req) 778 779 # push the new requirements onto the stack

ContextualVersionConflict: (tzlocal 1.5.1 (/usr/local/lib/python3.7/dist-packages), Requirement.parse('tzlocal~=2.0'),

{'APScheduler'}

)

Versions:

Name: rasa-nlu => Version: 0.15.1

Name: rasa-core => Version: 0.14.5

sync-by-unito[bot] commented 1 year ago

➤ Maxime Verger commented:

:bulb: Heads up! We're moving issues to Jira: https://rasa-open-source.atlassian.net/browse/OSS.

From now on, this Jira board is the place where you can browse (without an account) and create issues (you'll need a free Jira account for that). This GitHub issue has already been migrated to Jira and will be closed on January 9th, 2023. Do not forget to subscribe to the corresponding Jira issue!

:arrow_right: More information in the forum: https://forum.rasa.com/t/migration-of-rasa-oss-issues-to-jira/56569.