Comments (10)
@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.
@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.
@Piteryo, and @bruce-willis are you using Python 3 or Python 2?
from botbuilder-python.
@stevengum97 python 3
from botbuilder-python.
What's the entire semver, is it at least 3.5? typing was introduced in 3.5.
from botbuilder-python.
@stevengum97, yeah, I have Python 3.5.2
from botbuilder-python.
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.
@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.
BTW: the bot from sample directory responds both on http://localhost:9000/api/messages
and http://localhost:9000
from botbuilder-python.
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.
I've updated the wiki, so I'm going to close the issue.
from botbuilder-python.
Related Issues (20)
- Remove colon (':') from keywords such as "Parameters" and "Remarks" in comments
- Advancing msrest version dependency
- `botbuilder-integration-aiohttp` incompatible with Python 3.11 due to limit on `yarl` version HOT 7
- Bump aiohttp to 3.8.5 to fix CVE-2023-37276 HOT 1
- Test - Found a bug
- botbuidler support for regex== 2022 and above HOT 6
- botbuilder incompatible with tiktoken package HOT 1
- Extensibility for Teams AI - ability to add to User Agent for Teams AI telemetry HOT 1
- Internal bot on SDK v4 does not work with New Teams HOT 3
- CloudAdapter.continue_conversation() is missing `bot_app_id` parameter
- 4.14.6 CloudAdapter fails to send Typing Activity in Teams HOT 4
- Support Single Tenant AppType HOT 5
- Update the dependency azure-cosmos > 3.2. HOT 5
- port: CertificateServiceClientCredentialsFactory
- Ability to pass BotFrameworkConnectorConfiguration into ConfigurationBotFrameworkAuthentication
- Add AllowedCallersClaimsValidator, AllowedSkillsClaimsValidator
- ESRP in build pipelines HOT 1
- aiohttp.web_exceptions.HTTPNotFound: Not Found HOT 7
- Recommended change to 3.8.6 or above HOT 2
- CloudAdapter' object has no attribute 'create_connector_client' HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botbuilder-python.