question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'TextArea' object has no attribute 'get_children'

See original GitHub issue

I’m running the latest HEAD of python-prompt-toolkit.

The stack trace is:

Traceback (most recent call last):
  File "xpub_lib_termz.py", line 126, in <module>
    run()
  File "xpub_lib_termz.py", line 112, in run
    focused_element=command_prompt
  File "/home/decentral1se/.local/share/virtualenvs/xpub-lib-termz-Dd1FRwsF/lib/python3.6/site-packages/prompt_toolkit/layout/layout.py", line 49, in __init__
    self.focus(focused_element)
  File "/home/decentral1se/.local/share/virtualenvs/xpub-lib-termz-Dd1FRwsF/lib/python3.6/site-packages/prompt_toolkit/layout/layout.py", line 126, in focus
    for c in walk(value, skip_hidden=True):
  File "/home/decentral1se/.local/share/virtualenvs/xpub-lib-termz-Dd1FRwsF/lib/python3.6/site-packages/prompt_toolkit/layout/layout.py", line 380, in walk
    for i in walk(c, skip_hidden=skip_hidden):
  File "/home/decentral1se/.local/share/virtualenvs/xpub-lib-termz-Dd1FRwsF/lib/python3.6/site-packages/prompt_toolkit/layout/layout.py", line 380, in walk
    for i in walk(c, skip_hidden=skip_hidden):
  File "/home/decentral1se/.local/share/virtualenvs/xpub-lib-termz-Dd1FRwsF/lib/python3.6/site-packages/prompt_toolkit/layout/layout.py", line 378, in walk
    for c in container.get_children():
  File "/home/decentral1se/.local/share/virtualenvs/xpub-lib-termz-Dd1FRwsF/lib/python3.6/site-packages/prompt_toolkit/layout/containers.py", line 2110, in get_children
    return self.get_container().get_children()
AttributeError: 'TextArea' object has no attribute 'get_children'

Looks like this is the culprit:

https://github.com/jonathanslenders/python-prompt-toolkit/blob/c37cc6e805ff3df9ea79ae0b1bbc95995ba0e5b8/prompt_toolkit/layout/containers.py#L2110

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
decentral1secommented, Jul 11, 2018

Oh yes, thank you very much, that works perfectly!

0reactions
jonathanslenderscommented, Jul 11, 2018

Well, thank you for reporting the bug!

Read more comments on GitHub >

github_iconTop Results From Across the Web

xml.etree.ElementTree.Element' object has no attribute ...
Change hasgame.getchildren() into list(hasgame).
Read more >
"AttributeError: 'xml.etree.ElementTree.Element' object has no ...
Element' object has no attribute 'getchildren'" on Subversion working copy. I'm getting an error every time I run meld . in a Subversion...
Read more >
1884607 – s3cmd crashes with AttributeError: 'xml.etree ...
Bug 1884607 - s3cmd crashes with AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'.
Read more >
Perspective .getChildren - Ignition - Inductive Automation Forum
We have not exposed the “type” of a component at this time, ... on doing except AttributeError: # child had no "path" property/attribute, ......
Read more >
roblox lua get children Code Example - Grepper
Generic for-loop example local children = workspace:GetChildren() for i, ... AttributeError: module 'jwt' has no attribute 'encode' · flutter navigate to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found