keiffster / program-y

Python 3.x based AIML 2.0 Chatbot interpreter, framework, related programs and knowledge files
https://keiffster.github.io/program-y/
Other
350 stars 135 forks source link

Failed to run Y-Bot #172

Closed jiaeyan closed 6 years ago

jiaeyan commented 6 years ago

Hi there! I encountered some issues when trying to run y-bot. I cloned program-y, and also cloned y-bot under the 'bots' folder, when I tried to run y-bot/scripts/xnix/y-bot.sh:

  1. it firstly reported that 'echod' command is not defined, I fixed it;
  2. I set PYTHONPATH as the wiki page mentioned, still not working, the bot only responds 'sorry I don't have an answer for that!', whose bot name and version are both shown as 'None'
  3. I commented out the checking PYTHONPATH lines in y-bot.sh file, and defined my own --bot_root path, still not working

I checked the 'config.yaml' under y-bot/config/, all paths begin with "../../", which makes me think that neither setting PYTHONPATH nor setting BOT_ROOT actually affects the config file. Then I changed all '../../' in the config file to absolute path prefix in my system, still not working.

I am just wondering how to run y-bot successfully? I worked with Mac OSX. Thank you very much!

keiffster commented 6 years ago

Replace ../../ with ./

I’ll upload the correction shortly

K

On 2 Oct 2018, at 01:15, Jiajie Yan notifications@github.com wrote:

I cloned program-y, and also cloned y-bot under the 'bots' folder, when I try to run y-bot/scripts/xnix/y-bot.sh:

it firstly reported that 'echod' command is not defined, I fixed it; I set PYTHONPATH as the wiki page mentioned, still not working, the bot only responds 'sorry I don't have an answer for that!', whose bot name and version are both shown as 'None' I commented out the checking PYTHONPATH lines in y-bot.sh file, and defined my own --bot_root path, still not working I checked the 'config.yaml' under y-bot/config/, all paths begin with "../../", which makes me think that neither setting PYTHONPATH or setting BOT_ROOT actually affects the config file. Then I changed all '../../' in the config file to absolute path prefix in my system, still not working.

I am just wondering how to run y-bot successfully? I with Mac OSX. Thank you very much!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/keiffster/program-y/issues/172, or mute the thread https://github.com/notifications/unsubscribe-auth/AEVCs3vBdr0gzpUnB2cupxFtN-IrmHbSks5ugrAwgaJpZM4XDG2o.

jiaeyan commented 6 years ago

Hi K, thank you very much for the reply, and huge thanks for this amazing project! I'm wondering should I replace all ../../ with ./ in both y-bo.sh file and config.yaml file? Do I still need to set the PYTHONPATH or BOT_ROOT?

I found that the folder architectures of other bots are quite different from y-bot, does it affect the interpreter? Thanks!

keiffster commented 6 years ago

You still need to set PYTHONPATH, but don't worry about BOT_ROOT, that is pretty much ignored for most instances and won't impact your bot

There is no defined directory structure for bots, and so creators define their own. I have significantly reworked it in v3 making it more component based, however the existing or new structure have no impact on the interpreter, its just were the data is stored before its loaded into bot memory

jiaeyan commented 6 years ago

Thank you very much K! I tried various approaches and still working on y-bot, and I use rosie-y now. I'm wondering is the rosie-y the fixed rosie now?

keiffster commented 6 years ago

Can you send me the output of the console when you try to run it and also anything in the log file that shows an error

Want to try and get you up and running with y-bot

keiffster commented 6 years ago

Take a look at the new v3 release on github and pypi

jiaeyan commented 6 years ago

Hi K, so excited that v3 is released! I will try it as soon as possible, thank you so much for the efforts!!