GithubHelp home page GithubHelp logo

Comments (6)

jhoelzl avatar jhoelzl commented on June 28, 2024

After installing

pip install pyopenssl ndg-httpsclient pyasn1 cryptography

i still get this errors:

Executing merge
Traceback (most recent call last):
  File "quickstart.py", line 41, in <module>
    client.run_actions(session_id, 'weather in London', {})
  File "/media/jh/data/lm-tools/wit-ai-3.4/venv/local/lib/python2.7/site-packages/wit/wit.py", line 108, in run_actions
    message)
  File "/media/jh/data/lm-tools/wit-ai-3.4/venv/local/lib/python2.7/site-packages/wit/wit.py", line 103, in __run_actions
    user_message)
  File "/media/jh/data/lm-tools/wit-ai-3.4/venv/local/lib/python2.7/site-packages/wit/wit.py", line 67, in __run_actions
    rst = self.converse(session_id, message, context)
  File "/media/jh/data/lm-tools/wit-ai-3.4/venv/local/lib/python2.7/site-packages/wit/wit.py", line 61, in converse
    return req(self.access_token, 'POST', '/converse', params, json=context)
  File "/media/jh/data/lm-tools/wit-ai-3.4/venv/local/lib/python2.7/site-packages/wit/wit.py", line 23, in req
    ' (' + rsp.reason + ')')
wit.wit.WitError: Wit responded with status: 404 (Not Found)

from pywit.

jhoelzl avatar jhoelzl commented on June 28, 2024

Okay, got it. I have to make a new app (including the new story feature) for this example script. Now it works.

from pywit.

nkbem avatar nkbem commented on June 28, 2024

I have made a new app but can you tell me how to solve those problems?

from pywit.

jhoelzl avatar jhoelzl commented on June 28, 2024

@nkbem what errors did you get? You also have to use the client key for a wit app that contains the new story feature.

from pywit.

gsquare94 avatar gsquare94 commented on June 28, 2024

I already have an app that includes the new story feature. I still get the following error:
Traceback (most recent call last): File "examples\quickstart.py", line 44, in <module> client.interactive() File "C:\Python34\lib\site-packages\wit\wit.py", line 152, in interactive context = self.run_actions(session_id, message, context, max_steps) File "C:\Python34\lib\site-packages\wit\wit.py", line 126, in run_actions message) File "C:\Python34\lib\site-packages\wit\wit.py", line 119, in __run_actions user_message) File "C:\Python34\lib\site-packages\wit\wit.py", line 83, in __run_actions rst = self.converse(session_id, message, context) File "C:\Python34\lib\site-packages\wit\wit.py", line 75, in converse resp = req(self.access_token, 'POST', '/converse', params, json=context) File "C:\Python34\lib\site-packages\wit\wit.py", line 28, in req ' (' + rsp.reason + ')') wit.wit.WitError: Wit responded with status: 404 (Not Found)

rsp.reason() isn't showing anything. I'm using the server-access token as the only command line argument. Can anyone please specify what I'm doing wrong?

from pywit.

tanisha96 avatar tanisha96 commented on June 28, 2024

I got this error:

2017-06-23T18:02:59.574159+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=POST path="/" host=dry-caverns-55926.herokuapp.com request_id=73ced7c3-0ebb-4d50-a837-497293270f27 fwd="66.220.152.165" dyno= connect= service= status=503 bytes= protocol=https
2017-06-23T18:03:42.654025+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=POST path="/" host=dry-caverns-55926.herokuapp.com request_id=05e271c3-005e-40bb-bfc8-73a339a76924 fwd="173.252.90.91" dyno= connect= service= status=503 bytes= protocol=https
2017-06-23T18:04:19.406717+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=POST path="/" host=dry-caverns-55926.herokuapp.com request_id=4e146a9b-8b9f-42b4-aadd-85a74ec27035 fwd="66.220.152.137" dyno= connect= service= status=503 bytes= protocol=https
Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...
2017-06-23T18:02:35.349699+00:00 app[web.1]: File "/app/utils.py", line 1, in
2017-06-23T18:02:35.349699+00:00 app[web.1]: from wit import Wit
2017-06-23T18:02:35.350421+00:00 app[web.1]: ModuleNotFoundError: No module named 'wit'
2017-06-23T18:02:35.356408+00:00 app[web.1]: [2017-06-23 18:02:35 +0000] [8] [INFO] Worker exiting (pid: 8)
2017-06-23T18:02:35.585199+00:00 app[web.1]: [2017-06-23 18:02:35 +0000] [4] [INFO] Shutting down: Master
2017-06-23T18:02:35.585721+00:00 app[web.1]: [2017-06-23 18:02:35 +0000] [4] [INFO] Reason: Worker failed to boot.
2017-06-23T18:02:35.720537+00:00 heroku[web.1]: Process exited with status 3
2017-06-23T18:02:35.733864+00:00 heroku[web.1]: State changed from up to crashed

from pywit.

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.