Open NeolithEra opened 5 years ago
Which solution do you prefer, 1 or 2? @jonathanferreiras Please let me know your choice. I can submit a PR to solve this issue.
Hello @NeolithEra ! Thank you for your help!
May be choice 1!
Olá, estou com uma tremenda dificuldade em resolver esse erro. mport os import time import re import requests import sys import json
from selenium import webdriver from chatterbot.trainers import ListTrainer from chatterbot import ChatBot
class wppbot:
dir_path = os.getcwd()
print(self.dir_path)
#o costrutor vai ter o nome do noss bot
def __init__(self, nome_bot):
#setamos o bot e a forma com que ele vai treinar
self.bot = ChatBot(nome_bot)
self.bot.set_trainer(ListTrainer)
#Setamos onde está nosso chromedriver
saída é:
E:\bot\botpython>python bot.py File "bot.py", line 21 self.bot = ChatBot(nome_bot) ^ IndentationError: expected an indented block
Hi, users are unable to run whats-bot due to dependency conflict with pyyaml package. As shown in the following full dependency graph of whats-bot, whats-bot requires pyyaml>=4.2b1,while chatterbot-corpus==1.1.4 requires PyYAML>=3.12,<4.0.
According to pip’s “first found wins” installation strategy, pyyaml 5.1.2 is the actually installed version. However, pyyaml 5.1.2 does not satisfy PyYAML>=3.12,<4.0.
Dependency tree
Solution
Thanks for your help. Best, Neolith