Giter Site home page Giter Site logo

Comments (4)

hotzenklotz avatar hotzenklotz commented on August 22, 2024

Which Core version are you running? Version 0.11.x is still incompatible until we merge PR #43

Further there seems to be a typo in from bot_server_channel import BotServerInputChanne. The L is missing from BotServerInputChannel

from chatroom.

azizullah2017 avatar azizullah2017 commented on August 22, 2024

I am using rasa_core 0.13.1
Do I have to downgrade my rasa version?

python -m rasa_utils.bot -d models/current/dialogue -u models/nlu/Auto/Auto
/usr/local/lib/python2.7/dist-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/user/Documents/Ui Bot/rasa_utils/bot.py", line 10, in
from rasa_core.agent import Agent
File "rasa_core/agent.py", line 40, in
from bot_server_channel import BotServerInputChannel
ImportError: No module named bot_server_channel

I have pasted this code in agent.py

from bot_server_channel import BotServerInputChannel

# Creating the Interpreter and Agent
def load_agent(): ...

# Creating the server
def main_server():
    agent = load_agent()
    channel = BotServerInputChannel(agent)
    agent.handle_channel(channel)

main_server()

from chatroom.

azizullah2017 avatar azizullah2017 commented on August 22, 2024

withour pasting the code in agent.py

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/user/Documents/Ui Bot/rasa_utils/bot.py", line 61, in <module>
    agent.handle_channel(channel, message_preprocessor=preprocessor)
AttributeError: 'Agent' object has no attribute 'handle_channel'

from chatroom.

hotzenklotz avatar hotzenklotz commented on August 22, 2024

Check out my answer here: #47 (comment) That should help. The Rasa Core interface has changed.

I have since updated the readme.

from chatroom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.