Giter VIP home page Giter VIP logo

Comments (10)

bruce-willis avatar bruce-willis commented on May 20, 2024 1

@stevengum97 managed to run using python 3.6.4. However, I had some problems with sample in the wiki, but sample in sample directory works well.

Exception text:

Exception happened during processing of request from ('127.0.0.1', 20773)
Traceback (most recent call last):
File "C:\Anaconda3\lib\socketserver.py", line 317, in _handle_request_noblock
self.process_request(request, client_address)
File "C:\Anaconda3\lib\socketserver.py", line 348, in process_request
self.finish_request(request, client_address)
File "C:\Anaconda3\lib\socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Anaconda3\lib\socketserver.py", line 696, in init
self.handle()
File "C:\Anaconda3\lib\http\server.py", line 418, in handle
self.handle_one_request()
File "C:\Anaconda3\lib\http\server.py", line 406, in handle_one_request
method()
File ".\main.py", line 58, in do_POST
self._adapter = BotFrameworkAdapter(APP_ID, APP_PASSWORD)
TypeError: __init__() takes 2 positional arguments but 3 were given.

If it matter - I left APP_ID and APP_PASSWORD blank and tried to connect both on http://localhost:9000/api/messages and http://localhost:9000

from botbuilder-python.

stevengum avatar stevengum commented on May 20, 2024 1

@bruce-willis, I'm looking at the wiki sample now and it looks like it is in need of some revisions. For starters, as indicated by that TypeError, the BotFrameworkAdapter actually takes just one parameter from the user; an instantiated BotFrameworkAdapterSettings. When you ping the bot it should respond on http://localhost:9000, not http://localhost:9000/api/messages

from botbuilder-python.

stevengum avatar stevengum commented on May 20, 2024

@Piteryo, and @bruce-willis are you using Python 3 or Python 2?

from botbuilder-python.

bruce-willis avatar bruce-willis commented on May 20, 2024

@stevengum97 python 3

from botbuilder-python.

stevengum avatar stevengum commented on May 20, 2024

What's the entire semver, is it at least 3.5? typing was introduced in 3.5.

from botbuilder-python.

spolezhaev avatar spolezhaev commented on May 20, 2024

@stevengum97, yeah, I have Python 3.5.2

from botbuilder-python.

stevengum avatar stevengum commented on May 20, 2024

Sorry about that, this syntax only became valid in 3.6. Can you upgrade to a Python version greater than 3.6? We're targeting 3.6 and greater.

    classifiers=[
        'Programming Language :: Python :: 3.6',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Development Status :: 3 - Alpha',
        'Topic :: Scientific/Engineering :: Artificial Intelligence',
    ]

from botbuilder-python.

bruce-willis avatar bruce-willis commented on May 20, 2024

@stevengum97, yeah. it's really seems like that the wiki simple needs to be updated. And his description too 😄:

In your local terminal you should see the message 'Started http server on localhost:9000'
Start the Bot Framework Emulator, connect to your bot by using http://localhost:9000/api/messages.

image

BTW: the bot from sample directory responds both on http://localhost:9000/api/messages and http://localhost:9000

from botbuilder-python.

stevengum avatar stevengum commented on May 20, 2024

Then it probably responds to POST requests from any route, which is a little amusing in itself. 😃

I'm going to leave this issue open for now until we get the wiki updated, if you run into any unrelated issues, please feel free to open up a new issue.

from botbuilder-python.

stevengum avatar stevengum commented on May 20, 2024

I've updated the wiki, so I'm going to close the issue.

from botbuilder-python.

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.