-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Post to Blackboard through Python Script #15
Comments
The fact that I see this twice in your log worries me: The TopicClient was intended to be a singleton object originally, but then I think something got changed late in the development of the python SDK and it was no longer a singleton to allow for multiple instances of TopicClient at once. I can't really remember if we reverted that change or not. |
try writing your code without using get_instance() ... since it looks like your getting a TopicClient instance when you call start() already. |
I recreated the issue on my MacBook. I think there are two different issues.
I found the cause of the first issue.
this refers to topics.topic_client.TopicClient, and in clients/self-python-sdk/self/topics/web_socket.py,
will refer to self.topics.topic_client.TopicClient which is different from the one above. The solution is changing the first code snippet to
|
The following version of write_blackboard.py works well on my environment. No change in Intu required. Could you try this ?
Place this in the directory /clients/self-python-sdk/, and run as follows:
If you want see diff, here is it.
|
@mhew49680 here, on a different account :) When calling the Python Script as described - no connection (onConnect) is taking place to the Blackboard. I have rebuilt self with and without plugins and all I am getting from the script is:
Then it just sits there, as there is no onConnect command taking place to send the information to the Blackboard. |
With the exact code takaomoriyama posted we are not getting the text to post to conversation or recognised by intu.
And the output from the command line is as follows:
|
Any update on this, we really need it to work and it is holding us up |
Hi, Can you confirm Conversation is working on Intu ? Let me show you again my execution log on my MacBook. Please try exactly same sequence, and let me know the result and log file.
Can you please confirm Conversation is working properly before moving into Python SDK as follows ?
Then on another terminal,
Here is Intu log file.
The following is latest version of my write_test_to_blackboard.py which include some more fixes.
|
Is there any way we can use this blackboard code from a pluggin directory and not have to copy to python-sdk. It makes the solution inappropriate and unscalable. Please can we use this without the sdk |
I hope you have successfully run the code from Python SDK directory.
Please replace <workdir> and <somewhere> with your actual directories. |
@wrobotics did you have chance to verify the method above ? |
While running a self instance, our python script is intended to post text to the Blackboard for conversation to pick up. Unfortunately, this is not occurring, resulting in the following error:
The full code of that Python script is found below:
The text was updated successfully, but these errors were encountered: