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.

ImportError: cannot import name create_default_layout

See original GitHub issue

Missing 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:closed
  • Created 8 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
amjithcommented, Jul 4, 2016

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.

pip install -U pgcli
0reactions
gabflcommented, Jul 6, 2016

It works great, thanks a lot

Read more comments on GitHub >

github_iconTop 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 >

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