ImportError: cannot import name create_default_layout
See original GitHub issueMissing module in prompt_toolkit?
Traceback (most recent call last):
File "/usr/local/bin/pgcli", line 7, in <module>
from pgcli.main import cli
File "/usr/local/lib/python2.7/dist-packages/pgcli/main.py", line 23, in <module>
from prompt_toolkit.shortcuts import create_default_layout, create_eventloop
ImportError: cannot import name create_default_layout
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Unable to invoke factory method in class org.apache. ...
The issue was with Type value in appender.abc.type=appender. I thought it should be "appender" from elementType = "appender" .
Read more >CAT Log4J2 Appender, package name should be included ...
import org.apache.logging.log4j.core.config.plugins.Plugin; ... LOGGER.error("No name provided for CatLog4j2Appender"); ... createDefaultLayout();. }.
Read more >AbstractAppender - Source code
016 */ 017package org.apache.logging.log4j.core.appender; 018 019import ... 059 @Required(message = "No appender name provided") 060 private String name; ...
Read more >How to Fix : “ImportError: Cannot import name X” in Python
In Python "ImportError: cannot import name" error generally occurs when the imported class is not accessible, or the imported class is in a...
Read more >Log4j2 Example Tutorial - Configuration, Levels, Appenders
An instance of LoggerConfig is said to be a parent for another LoggerConfig; if there are no interleaving names between both of them....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Both pgcli and mycli now depend on the same version of
prompt_toolkit
. Please let me know if the problem still persists after an upgrade.It works great, thanks a lot