Recursive variable debug stack trace - Google Dialogflow API










-1















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.



Recursive variable



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










share|improve this question
























  • 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















-1















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.



Recursive variable



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










share|improve this question
























  • 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













-1












-1








-1


1






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.



Recursive variable



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










share|improve this question
















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.



Recursive variable



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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












1 Answer
1






active

oldest

votes


















0














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.






share|improve this answer























  • 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










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
);



);













draft saved

draft discarded


















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









0














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.






share|improve this answer























  • 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















0














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.






share|improve this answer























  • 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













0












0








0







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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



















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







這個網誌中的熱門文章

Barbados

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3