Recursive variable debug stack trace - Google Dialogflow API
I don't know if this issue is exclusive to Google's Dialogflow API or to other Google products or whether its specific to PyCharm's debugger.
I am using Python 2.7 trying to understand why there is no sentiment_analysis_request_config
field in the QueryResult() object when the documentation says there is.
Error:
AttributeError: 'QueryResult' object has no attribute 'sentiment_analysis_result'
Whenever I debug my Dialogflow program, I get a recursive variable debug stack for a Google-specific object.
Is this some sort of intended obfuscation on Google's end? Why can't I see the variables/methods associated with this Object/Type?
Edit: Image link did not work, here it is: https://i.imgur.com/oRuKPlX.png
python google-api dialogflow
add a comment |
I don't know if this issue is exclusive to Google's Dialogflow API or to other Google products or whether its specific to PyCharm's debugger.
I am using Python 2.7 trying to understand why there is no sentiment_analysis_request_config
field in the QueryResult() object when the documentation says there is.
Error:
AttributeError: 'QueryResult' object has no attribute 'sentiment_analysis_result'
Whenever I debug my Dialogflow program, I get a recursive variable debug stack for a Google-specific object.
Is this some sort of intended obfuscation on Google's end? Why can't I see the variables/methods associated with this Object/Type?
Edit: Image link did not work, here it is: https://i.imgur.com/oRuKPlX.png
python google-api dialogflow
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
– DaImTo
Nov 15 '18 at 11:35
@DaImTo my question is not specifically about my error its rather about the behavior of the debugger. I simply added the error to provide context.
– Anas Yousef
Nov 16 '18 at 6:57
add a comment |
I don't know if this issue is exclusive to Google's Dialogflow API or to other Google products or whether its specific to PyCharm's debugger.
I am using Python 2.7 trying to understand why there is no sentiment_analysis_request_config
field in the QueryResult() object when the documentation says there is.
Error:
AttributeError: 'QueryResult' object has no attribute 'sentiment_analysis_result'
Whenever I debug my Dialogflow program, I get a recursive variable debug stack for a Google-specific object.
Is this some sort of intended obfuscation on Google's end? Why can't I see the variables/methods associated with this Object/Type?
Edit: Image link did not work, here it is: https://i.imgur.com/oRuKPlX.png
python google-api dialogflow
I don't know if this issue is exclusive to Google's Dialogflow API or to other Google products or whether its specific to PyCharm's debugger.
I am using Python 2.7 trying to understand why there is no sentiment_analysis_request_config
field in the QueryResult() object when the documentation says there is.
Error:
AttributeError: 'QueryResult' object has no attribute 'sentiment_analysis_result'
Whenever I debug my Dialogflow program, I get a recursive variable debug stack for a Google-specific object.
Is this some sort of intended obfuscation on Google's end? Why can't I see the variables/methods associated with this Object/Type?
Edit: Image link did not work, here it is: https://i.imgur.com/oRuKPlX.png
python google-api dialogflow
python google-api dialogflow
edited Nov 20 '18 at 8:33
Alex Bravo
8431434
8431434
asked Nov 15 '18 at 11:32
Anas YousefAnas Yousef
487
487
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
– DaImTo
Nov 15 '18 at 11:35
@DaImTo my question is not specifically about my error its rather about the behavior of the debugger. I simply added the error to provide context.
– Anas Yousef
Nov 16 '18 at 6:57
add a comment |
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
– DaImTo
Nov 15 '18 at 11:35
@DaImTo my question is not specifically about my error its rather about the behavior of the debugger. I simply added the error to provide context.
– Anas Yousef
Nov 16 '18 at 6:57
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
– DaImTo
Nov 15 '18 at 11:35
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
– DaImTo
Nov 15 '18 at 11:35
@DaImTo my question is not specifically about my error its rather about the behavior of the debugger. I simply added the error to provide context.
– Anas Yousef
Nov 16 '18 at 6:57
@DaImTo my question is not specifically about my error its rather about the behavior of the debugger. I simply added the error to provide context.
– Anas Yousef
Nov 16 '18 at 6:57
add a comment |
1 Answer
1
active
oldest
votes
It likely isn't obfuscation, and you are seeing the properties associated with this type. The "issue" is that one of those properties is a reference to the Descriptor, which is itself. There is nothing wrong with a circular reference, and it can be useful in some cases. It looks like you should be able to collapse the nested references and see the other properties.
Image: No Properties So I get that, but I also can't see any other properties. They are all empty when I try to expand them. This may be a limitation of PyCharm.
– Anas Yousef
Nov 15 '18 at 12:13
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53318526%2frecursive-variable-debug-stack-trace-google-dialogflow-api%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It likely isn't obfuscation, and you are seeing the properties associated with this type. The "issue" is that one of those properties is a reference to the Descriptor, which is itself. There is nothing wrong with a circular reference, and it can be useful in some cases. It looks like you should be able to collapse the nested references and see the other properties.
Image: No Properties So I get that, but I also can't see any other properties. They are all empty when I try to expand them. This may be a limitation of PyCharm.
– Anas Yousef
Nov 15 '18 at 12:13
add a comment |
It likely isn't obfuscation, and you are seeing the properties associated with this type. The "issue" is that one of those properties is a reference to the Descriptor, which is itself. There is nothing wrong with a circular reference, and it can be useful in some cases. It looks like you should be able to collapse the nested references and see the other properties.
Image: No Properties So I get that, but I also can't see any other properties. They are all empty when I try to expand them. This may be a limitation of PyCharm.
– Anas Yousef
Nov 15 '18 at 12:13
add a comment |
It likely isn't obfuscation, and you are seeing the properties associated with this type. The "issue" is that one of those properties is a reference to the Descriptor, which is itself. There is nothing wrong with a circular reference, and it can be useful in some cases. It looks like you should be able to collapse the nested references and see the other properties.
It likely isn't obfuscation, and you are seeing the properties associated with this type. The "issue" is that one of those properties is a reference to the Descriptor, which is itself. There is nothing wrong with a circular reference, and it can be useful in some cases. It looks like you should be able to collapse the nested references and see the other properties.
answered Nov 15 '18 at 12:01
PrisonerPrisoner
35.7k33361
35.7k33361
Image: No Properties So I get that, but I also can't see any other properties. They are all empty when I try to expand them. This may be a limitation of PyCharm.
– Anas Yousef
Nov 15 '18 at 12:13
add a comment |
Image: No Properties So I get that, but I also can't see any other properties. They are all empty when I try to expand them. This may be a limitation of PyCharm.
– Anas Yousef
Nov 15 '18 at 12:13
Image: No Properties So I get that, but I also can't see any other properties. They are all empty when I try to expand them. This may be a limitation of PyCharm.
– Anas Yousef
Nov 15 '18 at 12:13
Image: No Properties So I get that, but I also can't see any other properties. They are all empty when I try to expand them. This may be a limitation of PyCharm.
– Anas Yousef
Nov 15 '18 at 12:13
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53318526%2frecursive-variable-debug-stack-trace-google-dialogflow-api%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
– DaImTo
Nov 15 '18 at 11:35
@DaImTo my question is not specifically about my error its rather about the behavior of the debugger. I simply added the error to provide context.
– Anas Yousef
Nov 16 '18 at 6:57