Forums

Error when trying to run chatbot (Python)

Hello, I'm trying to run chatbot based on this, but i always get error.

Chatbot runs perfectly on my computer (Python 2.7.8)

Source code is basically the same, i just translated some words to my language (English -> Polish), so you can just inspect it in previous link.

Files are uploaded on site. link to screenshot

While i'm trying to run the main file i get this error: another link to screenshot.

Any ideas why it's not working?

Sorry for my bad English - i'm just not good at it.

It looks like your chatbot is looking for config.json in the current directory, so you always need to run it from the directory it is installed in.

Now i got this: link to screenshot

have you looked at response.content?

What do you mean?

Note: It's working on my computer without any error, and here i got error.

responce.content are used in this line: content = json.loads(response.content)

You're probably bumping into this: https://help.pythonanywhere.com/pages/403ForbiddenError/

Is there any way to avoid it without paying?

I just want to make working chatbot on *.wikia.com domain.

If there is a public api we can whitelist that url for you. Otherwise there is no way around.